[web2py] Re: plugin_wiki suggestions

2011-02-09 Thread villas
If you just want to print the variable 'heading' that you've defined, put this in your page: `` {{ =header }} ``:template On Feb 9, 12:53 am, Plumo richar...@gmail.com wrote: OK I assume there is not. I placed the following in meta-code: heading = 'abc' But the wiki pages throw an error

[web2py] Re: plugin_wiki suggestions

2011-02-09 Thread blackthorne
Would you consider the idea of putting plugin_wiki source code in a (git?) repository for versioning? On Feb 7, 2:26 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: If you are in mode 3 (code allowed) you can do ``{{=response.title}} ``:template On Feb 7, 12:29 am, Plumo

[web2py] Re: plugin_wiki suggestions

2011-02-09 Thread Massimo Di Pierro
It is in google code, inside the example app: http://code.google.com/p/cube2py/ On Feb 9, 8:36 am, blackthorne francisco@gmail.com wrote: Would you consider the idea of putting plugin_wiki source code in a (git?) repository for versioning? On Feb 7, 2:26 pm, Massimo Di Pierro

Re: [web2py] Re: plugin_wiki suggestions

2011-02-09 Thread Albert Abril
The WATCH THE VIDEO link is broken at Google Code. I guess it should link to this one: http://vimeo.com/13485916 Regards! On Wed, Feb 9, 2011 at 4:17 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: It is in google code, inside the example app: http://code.google.com/p/cube2py/

[web2py] Re: plugin_wiki suggestions

2011-02-09 Thread villas
Massimo, Regarding the problem with the reserved SQL words, I entered it as an issue on cube2py (issue 6). Regards, D On Feb 9, 3:17 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: It is in google code, inside the example app: http://code.google.com/p/cube2py/ On Feb 9, 8:36 am,

[web2py] Re: plugin_wiki suggestions

2011-02-09 Thread Plumo
yes of course. Unfortunately that throws an error that heading is undefined. What is defined in meta-code or other models is not available.

Re: [web2py] Re: plugin_wiki suggestions

2011-02-08 Thread Plumo
OK I assume there is not. I placed the following in meta-code: heading = 'abc' But the wiki pages throw an error that heading is undefined. I also tried: {{ heading = 'abc' }} and: `` {{ heading = 'abc' }} ``:template but heading is still undefined. The editor level is set to

[web2py] Re: plugin_wiki suggestions

2011-02-07 Thread Massimo Di Pierro
If you are in mode 3 (code allowed) you can do ``{{=response.title}} ``:template On Feb 7, 12:29 am, Plumo richar...@gmail.com wrote: I also made this change to set the page title. How can I access the page title from within a wiki page? response.title is empty

[web2py] Re: plugin_wiki suggestions

2011-02-07 Thread Plumo
yes mode 3, but as mentioned response.title is empty (None). Where do I need to define response.title for the plugin to use it? I tried models/menu.py and controllers/plugin_wiki.py without success. views/layout.html is able to use response.title.

Re: [web2py] Re: plugin_wiki suggestions

2011-02-07 Thread Bruno Rocha
You can do that in meta-code page, create a wiki page called meta-code, this code will be executed before the execution of any page. 2011/2/7 Plumo richar...@gmail.com yes mode 3, but as mentioned response.title is empty (None). Where do I need to define response.title for the plugin to use

Re: [web2py] Re: plugin_wiki suggestions

2011-02-07 Thread Plumo
that would require an additional database request and replicating the logic from controllers/plugin_wiki.py - is there no way to reuse the data from the controller?

Re: [web2py] Re: plugin_wiki suggestions

2011-02-06 Thread Plumo
I also made this change to set the page title. How can I access the page title from within a wiki page? response.title is empty

[web2py] Re: plugin_wiki suggestions

2010-08-04 Thread mdipierro
Yes you can: [[my reference #id1]] [[id1]] referenced material On Aug 3, 11:56 pm, Bruno Rocha rochacbr...@gmail.com wrote: Useful suggestion: markmin currently does not allow the creation of references to links, this is very useful when the written material might be used for printing as

[web2py] Re: plugin_wiki suggestions

2010-08-04 Thread mdipierro
Please check the cube2py on google code. I did not fix the problem with the error but now template=None should not appear anymore. On Aug 3, 10:48 pm, Bruno Rocha rochacbr...@gmail.com wrote: Thanks Massimo, template function is very well, but raises an error ticket when passing 'None'  in

Re: [web2py] Re: plugin_wiki suggestions

2010-08-04 Thread Bruno Rocha
Sorry, I am so stupid... I forgotten about anchors Thanks again 2010/8/4 mdipierro mdipie...@cs.depaul.edu Yes you can: [[my reference #id1]] [[id1]] referenced material On Aug 3, 11:56 pm, Bruno Rocha rochacbr...@gmail.com wrote: Useful suggestion: markmin currently does not allow

[web2py] Re: plugin_wiki suggestions

2010-08-03 Thread mdipierro
Done. please check it. On Aug 1, 2:03 am, Bruno Rocha rochacbr...@gmail.com wrote: One more suggestion for today. It will be great to create new pages from template, as creating a template page with standard texts, widgets and other stuff, we have any way to duplicate that page. actually

[web2py] Re: plugin_wiki suggestions

2010-08-03 Thread mdipierro
`` name: comment table: [page] record_id: 1 ``:comment not sure this is a good idea but for now it should work. On Aug 1, 9:33 am, rochacbruno rochacbr...@gmail.com wrote: I mean that THISPAGE should be a shortcut to {{=request.args(0)}} THISPAGE =  '{{=request.args(0)}}' name: comments

[web2py] Re: plugin_wiki suggestions

2010-08-03 Thread mdipierro
fixed too. This was a markmin bug. On Aug 2, 8:23 am, Bruno Rocha rochacbr...@gmail.com wrote: Another BUG in markmin render paragraph with **bold**, ''italic'' and ``code``.but: **text** renders as btext/b **text:** renders as p**text:**/p the same happens if we put any mark, point

[web2py] Re: plugin_wiki suggestions

2010-08-03 Thread mdipierro
I am not convinced this is a good idea. On Aug 2, 2:11 pm, Bruno Rocha rochacbr...@gmail.com wrote: Another suggestion: title/title should be the page.title field of plugin_wiki_page just including response.title = page.title to page controller def page():         shows a page        

[web2py] Re: plugin_wiki suggestions

2010-08-03 Thread mdipierro
I never though somebody sould have more than 1000 revisions. Let's think about a good solution. The one you propose may be ok. On Aug 2, 3:54 pm, Bruno Rocha rochacbr...@gmail.com wrote: - Page History page history does not works on

[web2py] Re: plugin_wiki suggestions

2010-08-03 Thread Timmie
Hello, where can we see these changes? Do you intend to upload? Thanks.

[web2py] Re: plugin_wiki suggestions

2010-08-03 Thread mdipierro
I just did On Aug 3, 6:06 am, Timmie timmichel...@gmx-topmail.de wrote: Hello, where can we see these changes? Do you intend to upload? Thanks.

Re: [web2py] Re: plugin_wiki suggestions

2010-08-03 Thread Bruno Rocha
Thanks, Massimo I have no doubt, I will keep the markmin as markup language for my site, I did a comparison and I write much faster with markmin than with LaTeX, markdown, html Or Another. I'll do everything possible to contribute on issues that I have knowledge. if I get some success will send

[web2py] Re: plugin_wiki suggestions

2010-08-03 Thread mdipierro
And I did send you the markmin2latex.py the book chap13 I posted is pure markmin2latex output without any manual edit. On Aug 3, 7:46 am, Bruno Rocha rochacbr...@gmail.com wrote: Thanks, Massimo I have no doubt, I will keep the markmin as markup language for my site, I did a comparison and I

Re: [web2py] Re: plugin_wiki suggestions

2010-08-03 Thread Bruno Rocha
Useful suggestion: markmin currently does not allow the creation of references to links, this is very useful when the written material might be used for printing as well. thus present a list of links referenced in the footnote. with markdown, we can do: This is [an example] [id] reference-style

Re: [web2py] Re: plugin_wiki suggestions

2010-08-02 Thread Bruno Rocha
Error on select widget, trying to fetch non UTF-8 text records, People wrote a message in portuguese, a lot of accents, [ á, é, ã, ê, í] , to insert with createwidget no problem, then I can view the records on GAE admin. But when I try to select the accentuated records with selectwidget its

Re: [web2py] Re: plugin_wiki suggestions

2010-08-02 Thread Bruno Rocha
Another BUG in markmin render paragraph with **bold**, ''italic'' and ``code``.but: **text** renders as btext/b **text:** renders as p**text:**/p the same happens if we put any mark, point or accent as the last in Markup **text()** renders as p**text()**/p where should render as

Re: [web2py] Re: plugin_wiki suggestions

2010-08-02 Thread Bruno Rocha
Another suggestion: title/title should be the page.title field of plugin_wiki_page just including response.title = page.title to page controller def page(): shows a page slug = request.args(0) or 'index' w = db.plugin_wiki_page page = db(w.slug==slug).select().first()

Re: [web2py] Re: plugin_wiki suggestions

2010-08-02 Thread Bruno Rocha
- Page History page history does not works on GAE, http://web2pybrasil.appspot.com/init/plugin_wiki/page_history/home Fails and raises a ticket There is a limit to history entries per page? I mean, if I edit a page too many times this will create too many entries in plugin_wiki_page_history I

Re: [web2py] Re: plugin_wiki suggestions

2010-08-01 Thread Bruno Rocha
One more suggestion for today. It will be great to create new pages from template, as creating a template page with standard texts, widgets and other stuff, we have any way to duplicate that page. actually just creating a way to duplicate certain page will do that work. {{=thanks}} 2010/8/1

[web2py] Re: plugin_wiki suggestions

2010-08-01 Thread qqsaqq
Concerning Your THISPAGE idea: I think what You mean can be achieved simply by writing [[this page #]] I tried it, works great. On Aug 1, 6:54 am, Bruno Rocha rochacbr...@gmail.com wrote: I am developing and writing a lot with plugin_wiki (cube2py). I already have some suggestions,

[web2py] Re: plugin_wiki suggestions

2010-08-01 Thread qqsaqq
Concerning Your THISPAGE idea: You can achieve this simply by writing [[this page #]] in the markmin editor. This will create a Link with the name this page and it links to http://127.0.0.1:8000/cube2py/plugin_wiki/page/home# (mind the # in the end!) On Aug 1, 7:22 am, Bruno Rocha

Re: [web2py] Re: plugin_wiki suggestions

2010-08-01 Thread rochacbruno
No I was talking about an alias to {{= request.args(0)}} used in :widget and :template Sent from my iPhone On 01/08/2010, at 05:40, qqsaqq sla...@gmx.net wrote: Concerning Your THISPAGE idea: I think what You mean can be achieved simply by writing [[this page #]] I tried it, works

Re: [web2py] Re: plugin_wiki suggestions

2010-08-01 Thread rochacbruno
I mean that THISPAGE should be a shortcut to {{=request.args(0)}} THISPAGE = '{{=request.args(0)}}' name: comments table: THISPAGE record_id: 1 :comments or {{=THISPAGE}} :template Sent from my iPhone On 01/08/2010, at 05:40, qqsaqq sla...@gmx.net wrote: Concerning Your THISPAGE idea:

Re: [web2py] Re: plugin_wiki suggestions

2010-08-01 Thread Bruno Rocha
Page Attachments does not works on GAE 2010/8/1 Bruno Rocha rochacbr...@gmail.com I am developing and writing a lot with plugin_wiki (cube2py). I already have some suggestions, observations and have also found some bugs. As I'm finding more issues, I will posting here in this thread. If

Re: [web2py] Re: plugin_wiki suggestions

2010-08-01 Thread Bruno Rocha
SlideShow widget also does not runs on GAE. try it; http://web2pybrasil.appspot.com/init/plugin_wiki/page/images the code: http://web2pybrasil.appspot.com/init/plugin_wiki/page.code/images Given an image saved as BLOB in GAE, how to retrieve this image URL to put it on Wiki Page body? 2010/8/1

[web2py] Re: plugin_wiki suggestions

2010-07-31 Thread mdipierro
Not yet. You can post here for now. Not sure it needs a new place. If you have comments please send them asap since I am about to make some changes and write a book chapter about it tomorrow. On 1 Ago, 04:55, Bruno Rocha rochacbr...@gmail.com wrote: Sorry again, I am creating a new thread about

[web2py] Re: plugin_wiki suggestions

2010-07-31 Thread mdipierro
Fornow you can post here.Please send your comments asap because I am about to revise it and write a book chapter about it. On 1 Ago, 04:55, Bruno Rocha rochacbr...@gmail.com wrote: Sorry again, I am creating a new thread about plugin_wiki. I wonder if there is any public place where we can

Re: [web2py] Re: plugin_wiki suggestions

2010-07-31 Thread Bruno Rocha
I Just found one more thing: take this page by example: http://web2pybrasil.appspot.com/cursoweb2py/plugin_wiki/page/curso-web2py-002 now add a .code to he action http://web2pybrasil.appspot.com/cursoweb2py/plugin_wiki/page.code/curso-web2py-002 even logged out, you can see the code behind the

Re: [web2py] Re: plugin_wiki suggestions

2010-07-31 Thread Bruno Rocha
But the .code thing, is usefull for editors, so there is a way to .code output be available only to logged in editor users? its usefull to check the code as in http://web2pybrasil.appspot.com/cursoweb2py/plugin_wiki/page.code/meta-code 2010/8/1 Bruno Rocha rochacbr...@gmail.com I Just found