widget="text_wiki" not fully supported in web client

Bug #910527 reported by esamyn
100
This bug affects 20 people
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
Won't Fix
Wishlist
OpenERP R&D Web Team

Bug Description

The widget="text_wiki" is not working in web client (no proper html formated output)

Tested module : wiki
Problem : wiki pages are displayed with markdown tags, not with proper html output
Version trunk (code updated on 2011/12/31)
Tested on chrome and firefox
Platform ubuntu 10.10

Tags: maintenance
affects: openobject-server → openerp-web
summary: - widget="text_wiki" not working
+ [6.1]widget="text_wiki" not Supported.
Changed in openerp-web:
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Jignesh Rathod(OpenERP) (jir-openerp) wrote : Re: [6.1]widget="text_wiki" not Supported.

Hello ,

Currently the widget="text_wiki" does not supported in for Trunk 6.1 web client.
So if you or any community member wants to work on it so they can contribute this
as a web_wiki module for new web client with implemented this feature.

Thank you!

Revision history for this message
Ferdinand (office-chricar) wrote :

this means a feature loss which is available since (at least) version 5

IMHO this is not the way to handle certified modules !

at least this stops my migrations plans immediately!!!

Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

Added very basic support for text_wiki in page view. Basic markup works, OpenERP-specific actions don't, neither do images, tables or OpenERP attachments.

Wiki rendering provided by wiky: https://github.com/tanin47/wiky.js

affects: openerp-web → openobject-addons
summary: - [6.1]widget="text_wiki" not Supported.
+ widget="text_wiki" not fully supported in web client
Revision history for this message
Ferdinand (office-chricar) wrote :

Looks promising

but it does not conform to the convention found here
http://goessner.net/articles/wiky/
= H1 =
...
====== H6 ======
should turn into
<h1> H1 </h1<
...
<h6> H6 </h6>

but IMHO juest does the oposite

= H1 = is not recognized and as many "=" are added the size of the letters increase

Revision history for this message
Stuart Longland (redhatter) wrote :

I've been facing this issue myself, and initially thought it to be permissions, and so after going insane trying to figure out what was wrong, I'm somewhat relieved to see this bug report, but a bit concerned that it's considered an almost "non-issue".

Probably the worst aspect of this particular bug, is that I find the wiki markup does not wrap, it just creates a very wide text field which is all but unreadable.

Is there a patch somewhere for OpenERP 6.1rc1 that we can pull? In comment #3 apparently "very basic support" was "added", but without sifting through each and every commit in bzr, I can't seem to find it.

Could someone point the way to where this "very basic support" was allegedly "added" please?

Amit Parik (amit-parik)
affects: openobject-addons → openerp-web
Revision history for this message
Stuart Longland (redhatter) wrote :

We've just rolled back to 6.0 after discovering that the 6.1's Wiki module is not compatible with table formatting in 6.0.

On further inspection, it would seem that there are two versions of "wiky". The one Ferdinand referenced in comment #4, and the one actually implemented in OpenERP 6.1, whose syntax is described at https://github.com/tanin47/wiky.js (the link given in comment #3).

The former looks to be the more feature-complete of these. I'll have a look and see if we can swap the two.

Revision history for this message
Stuart Longland (redhatter) wrote :

Attached is a patch that integrates this alternate "Wiky" library, and creates some stub functions that handle [[Wiki Page]] links.

I think with some work, this will do what we want. What we need is suitable implementations for the relevant mark-up components that form the old Wiki syntax.

In particular, links to other pages, and to other objects. Right now I get a page name, and I have no idea how to, from the client JavaScript, translate that to a hyperlink.

At present, the Wiky API uses a synchronous interface, where a regex is matched, then a function is called with the components from the regex; the return value being substituted for the matched text.

I suspect it'll need to be a javascript: URL that calls one of the openerp.* functions to achieve the necessary steps. No idea exactly how to achieve this bit yet though.

tags: added: maintenance
Revision history for this message
Nhomar - Vauxoo (nhomar) wrote :

How it is comming.

Im planning use 6.1 in all my customers, but i base almost all documentation of the project in wiki and rst (to build several formats), what will be the future of thi feature.??

Revision history for this message
Stuart Longland (redhatter) wrote :

Well, I've seen absolutely 0 documentation on how the web client works.
So I've written absolutely 0 lines of JavaScript that implement the features that were in 6.0.

We've migrated to 6.1 at my work, and are just putting up with the poor Wiki support for now, I did manage to come up with a patch (attached in comment 7) that improves the situation somewhat, it at least gives us tables, but more work is needed.

Specifically, suppose someone writes

[[Some Wiki Page]]

I know enough to translate that to:

<a href="$something">Some Wiki Page</a>

What I can't figure out is what $something is. Or rather, I don't know how to translate "Some Wiki Page" into the actual wiki page ID from client-side JavaScript. If someone on the OpenERP team could enlighten me, that'd be greatly appreciated.

Alternatively, what I have should be a great starting point for them to take on the project and carry it forward. The ball is no longer in my court. :-)

Revision history for this message
Stuart Longland (redhatter) wrote :

Hi all...

I hate to bring this old bug up again, but is there any desire from the OpenERP team to get this issue fixed?

I've been waiting patiently for some documentation on the JavaScript client-side API of OpenERP, so that I can write some code that fixes this problem. (see comment 9).

It has been brought up today at my workplace. I am happy to do the work on behalf of, and for, the OpenERP team, and contribute the patch back. I need some guidance on how the web client works behind the scenes in order to do this.

If someone could enlighten me, I'd greatly appreciate it.

Revision history for this message
Nicolas Vanhoren (OpenERP) (niv-openerp) wrote :

Hello.

I would like to clarify some points:

- In 6.0, we didn't used markdown as I've read in some thread, we used the wiki media syntax (the same as wikipedia), with some additional tags to handle OpenERP-related stuff (like internal links).
- In 6.1, with the re-implementation of the web client, the wiky syntax was used. The wiky syntax is, mostly, incompatible with the wiki media syntax.
- In 7.0, we took the decision to completely remove any wiki implementation in OpenERP. That feature will be replaced by the html field (a new type of field that allows to write and display html).

So, the solution I would recommend to display html in 6.1 is to use the text_wiki field because it can also contain pure html and display it (you don't have to use the wiky syntax). Then, when migrating to 7.0, you will only need to replace the text_wiki field by the html field.

So, since OpenERP does not plan to support any wiki markup any more, and switch to simple html, I'll set this bug to "Won't Fix".

Have a great day.

Changed in openerp-web:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.