[web2py] Re: auth.wiki : Value already in database or empty

2025-06-09 Thread Dave S
On Monday, April 7, 2025 at 11:09:23 PM UTC-7 A3 wrote: As I wrote before, I created a completely new site with default sqlite database. I tried to use auth.wiki(resolve=False) to see whats happening in the database. actually when I try to update a record of the db.wiki_page table I get the

[web2py] Re: auth.wiki : Value already in database or empty

2025-04-10 Thread Clemens
Hi, just a quick guess — are you using another web2py instance that’s accessing the same database? If so, try renaming the database folder of the new web2py instance (to avoid deleting it), and then create a new one. Regards Clemens On Monday, April 7, 2025 at 5:15:41 PM UTC+2 A3 wrote: > I up

[web2py] Re: auth.wiki : Value already in database or empty

2025-04-07 Thread A3
As I wrote before, I created a completely new site with default sqlite database. I tried to use auth.wiki(resolve=False) to see whats happening in the database. actually when I try to update a record of the db.wiki_page table I get the same error on Fields Slug and Titel. Op maandag 7 april

[web2py] Re: auth.wiki markmin extra not working?

2015-09-24 Thread Leonel Câmara
I think this is a quite subtle bug. It's caused because auth only instantiates Wiki on the first call to auth.wiki. Later when you make a second call with extra set it doesn't do anything. To fix it open gluon/tools.py in your web2py installation and then where it says: else:

[web2py] Re: auth.wiki markmin extra not working?

2015-09-24 Thread A3
I made a new application and only added the code to the index: and now it works. Then I tried to do the same in my earlier application. Replaced index: Replaced view/index Replaced model/db This had no effect. Op donderdag 24 september 2015 16:18:22 UTC+2 schreef Leonel Câmara: > > Do you have

[web2py] Re: auth.wiki markmin extra not working?

2015-09-24 Thread Leonel Câmara
Do you have any call to auth.wiki before this one? Say in the models? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because yo

[web2py] Re: auth.wiki search generates error 'exceptions.AttributeError'

2015-09-21 Thread Leonel Câmara
It was already fixed in trunk by Niphlod! In the next release it should be fixed. In the meantime you can fix it yourself like I described. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2p

[web2py] Re: auth.wiki search generates error 'exceptions.AttributeError'

2015-09-21 Thread Leonel Câmara
> I think it's a bug. It is. There's a typo in tools.py in line 6935 where you have this: db.wiki_page.can_read, db.wiki+page.can_edit] When you should have db.wiki_page.can_read, db.wiki_page.can_edit] I will submit a pull request to fix it but in the

[web2py] Re: auth.wiki search generates error 'exceptions.AttributeError'

2015-09-21 Thread Daniel Vogel
Hi, This issue is new, I used the auth.wiki with older web2py versions, no problems. I updated my auth.wiki to web2py 2.12.3. Now the same problem (xceptions.AttributeError) with search. I think it's a bug. I run web2py locally. Am Montag, 14. September 2015 12:16:47 UTC+2 schrieb A3: > > Hi,

[web2py] Re: auth.wiki deployment issue

2015-09-09 Thread pj00016
In addition to putting auth.wiki(resolve=False) in db.py, I have a refresh function as follows (because I couldn't get auth.wiki.get_renderer to work.) import string @auth.requires_membership('administrator') def refreshWiki(): print "\n" for row in db(db.wiki_page).select(): newh

[web2py] Re: auth.wiki deployment issue

2015-09-09 Thread pj00016
Upgrading didn't change the problem. But I found this link: http://www.web2pyslices.com/slice/show/1565/wikifying-web2py-apps I added the line: auth.wiki(resolve=False) to my db.py document and then I was able to reference the db.wiki_page object. So the issue is resolved. Thanks all for helping.

[web2py] Re: auth.wiki deployment issue

2015-09-07 Thread 黄祥
please tried web2py latest version in your local first, after it's running well then please update the web2py in pythonanywhere please backup your application first before doing the update and for pythonanywhere update please check this link http://www.web2pyslices.com/slice/show/1942/upgrade-web

[web2py] Re: auth.wiki deployment issue

2015-09-07 Thread pj00016
Thanks for responding. Pythonanywhere.com has 2.9.12 installed. That is what I have installed on my local host as well. I do not see how to change versions on the pythonanywhere site. Peter On Monday, September 7, 2015 at 1:28:02 AM UTC-4, 黄祥 wrote: > > had you already tried the web2py latest v

[web2py] Re: auth.wiki deployment issue

2015-09-06 Thread 黄祥
had you already tried the web2py latest version? best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because y

[web2py] Re: auth.wiki deployment issue

2015-09-06 Thread pj00016
Thanks very much for the response. Nothing seems to work. The force_render option didn't make any difference. The auth.wiki.get_renderer caused an error. Here is my controller with some debugging code. I am simply trying to access the wiki_page table: # -*- coding: utf-8 -*- def index(): return

[web2py] Re: auth.wiki deployment issue

2015-08-20 Thread Massimo Di Pierro
The wiki caches the rendered pages in HTML for speed. So when the app moves the cached pages contain the wrong links. the auth.wiki(...) method has a force_render which you can set to True auth.wiki(force_render=True) which will re-create the cached content when pages are called. or you can do

[web2py] Re: auth.wiki deployment issue

2015-08-20 Thread pj00016
I have the same problem as Andrew W. When deployed to pythonanywhere.com the pages still point to the local host. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issu

Re: [web2py] Re: auth.wiki()

2015-04-26 Thread Alex Glaros
yes, Ben, your idea of adding tags worked for me also. Will try to add that info to ticket. thanks, Alex -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --

Re: [web2py] Re: auth.wiki()

2015-04-25 Thread Ben Lawrence
It works now for me. All I had to do was add a tag to one of the pages. Seems search doesn't work for empty tag table. On Tuesday, April 21, 2015 at 8:26:44 AM UTC-7, Alex Glaros wrote: > > no, did not get it to work, but submitted bug report. You can follow > progress of bug report here: > > h

Re: [web2py] Re: auth.wiki()

2015-04-21 Thread Alex Glaros
no, did not get it to work, but submitted bug report I have not gotten back to working on it but it's pretty for even a beginner to write their own search On Mon, Apr 20, 2015 at 6:13 PM, Ben Lawrence wrote: > Hi, did you manage to get the search to work? I have the same problem on > 2.10.3-sta

[web2py] Re: auth.wiki()

2015-04-21 Thread Ben Lawrence
Hi, did you manage to get the search to work? I have the same problem on 2.10.3-stable+timestamp.2015.04.02.21.42.07 (Running on Apache/2.4.7 (Ubuntu), Python 2.7.6) On Wednesday, April 8, 2015 at 3:23:48 PM UTC-7, Alex Glaros wrote: > > just looked at auth.wiki(). > > Not sure if I understand

[web2py] Re: auth.wiki()

2015-04-10 Thread Massimo Di Pierro
On Wednesday, 8 April 2015 17:23:48 UTC-5, Alex Glaros wrote: > > just looked at auth.wiki(). > > Not sure if I understand well enough to ask these questions but: > > >1. Should a note in documentation state that migration must be set to >"True" when auth.wiki function is first added t

[web2py] Re: auth.wiki() - accessing the tables created (wiki_media, wiki_page, wiki_tag)

2015-03-03 Thread Niphlod
read here about it On Tuesday, March 3, 2015 at 6:06:21 PM UTC+1, Andres Orjuela wrote: > > Hi! > > I just found web2py 2 weeks ago and am now working through the book, the > video tutorials an

[web2py] Re: auth.wiki how to align and resize images

2013-08-20 Thread Simon Carr
I found the solution myself here is how to do it [[The Road [This is a picture of the road] @1/road.jpg left 150px]] I found the answer on http://www.web2py.com/init/static/markmin.html [[alt-string for the image [the image title] http://www.web2py.com/examples/static/web2py_logo.png right

[web2py] Re: auth.wiki() allow guests to view the wiki

2013-08-20 Thread Simon Carr
Very sorry, I know now what I was doing. I changed the name of the page from index to "Hello World", so when I tried to visit the page it was asking me to create the index page, which of course required me to login. Thanks Simon On Monday, 19 August 2013 21:36:20 UTC+1, Alan Etkin wrote: > > H

[web2py] Re: auth.wiki() allow guests to view the wiki

2013-08-19 Thread Alan Etkin
> > Hi, > > I am trying to make use of auth.wiki() but I am finding that to even a > view a wiki page I have to be logged in. I want visitors to be able to view > the wiki pages without having to first register an account. > > Are you using the default settings? AFAIK, wikis are public by defaul

[web2py] Re: auth.wiki and components error:list index is out of range

2013-08-05 Thread Alan Etkin
> > Great to know that there are others out there to assist. > Good to know it worked. IMO the book is the best reference for those starting but you can always ask for help in case your're stuck. -- --- You received this message because you are subscribed to the Google Groups "web2py-users"

[web2py] Re: auth.wiki and components error:list index is out of range

2013-08-05 Thread Philip Lutz
> > Excellent. > This worked like a dream. As this is my first week with Web2Py, I am struggling a little. Great to know that there are others out there to assist. Thanks again, Phil -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. T

[web2py] Re: auth.wiki and components error:list index is out of range

2013-08-05 Thread Alan Etkin
> @{component:LOAD('default','post.load',args=['merlin'],target='spec',ajax=True)} I belive that line should be @{component:default/post.load/merlin} Alternatively you could use @{component:URL('default','post.load',args=['merlin'])} -- --- You received this message because you are subscri

Re: [web2py] Re: auth.wiki and the menu

2013-02-28 Thread Philip Kilner
Hi Alan, On 28/02/13 10:32, Alan Etkin wrote: Mind that if this is run in the same action as the app wiki, you'll duplicate the menu item. For solving this, add a conditional statement to the model so the menu item is appended only if it's not a wiki. Thanks for responding. Yes, I think that

[web2py] Re: auth.wiki and the menu

2013-02-28 Thread Alan Etkin
> That's fine, except that my original link to the wiki is redundant - > what is the intended way (if any) to add the wiki menu as an item in the > web2py menu? I'm not sure this is the best way currently (I posted this a time ago but the wiki api might have changed). You could instantiate a Wi

Re: [web2py] Re: auth.wiki how to format all fields

2013-01-30 Thread paolo.vall...@gmail.com
for me is ok too. Paolo 2013/1/30 Massimo Di Pierro > I am suggesting the opposite. Not wrapping any field in XML. > > > On Wednesday, January 30, 2013 1:50:40 PM UTC-6, Paolo valleri wrote: > >> I agree too in breaking the backward compatibility as soon as is marked >> experimental, however

Re: [web2py] Re: auth.wiki how to format all fields

2013-01-30 Thread Massimo Di Pierro
I am suggesting the opposite. Not wrapping any field in XML. On Wednesday, January 30, 2013 1:50:40 PM UTC-6, Paolo valleri wrote: > > I agree too in breaking the backward compatibility as soon as is marked > experimental, however I don't see any other field that can be wrapped > around XML. >

Re: [web2py] Re: auth.wiki how to format all fields

2013-01-30 Thread paolo.vall...@gmail.com
I agree too in breaking the backward compatibility as soon as is marked experimental, however I don't see any other field that can be wrapped around XML. Paolo 2013/1/30 Alan Etkin > > I have applied the patch. I am uneasy with the fact that only one field > is wrapped around XML and the othe

Re: [web2py] Re: auth.wiki how to format all fields

2013-01-30 Thread Alan Etkin
> I have applied the patch. I am uneasy with the fact that only one field is wrapped around XML and the others are not. Agree. I would make any change necessary to have a more clean api while it is an experimental feature. -- --- You received this message because you are subscribed to the G

Re: [web2py] Re: auth.wiki how to format all fields

2013-01-30 Thread Massimo Di Pierro
I have applied the patch. I am uneasy with the fact that only one field is wrapped around XML and the others are not. Perhaps none of them should. This will break wiki but not a big deal since it experimental. Users can then put the XML(content) in the views. What do you think? On Wednesday, Ja

Re: [web2py] Re: auth.wiki how to format all fields

2013-01-30 Thread paolo.vall...@gmail.com
Hi Massimo, I would avoid to write explicit code, please find attached a potential patch. what about that? Paolo 2013/1/30 Massimo Di Pierro > db.auth_wiki(slug=slug).title ? > > > On Sunday, 27 January 2013 11:46:47 UTC-6, Paolo valleri wrote: > >> The problem is that with the current appr

Re: [web2py] Re: auth.wiki how to format all fields

2013-01-30 Thread Massimo Di Pierro
db.auth_wiki(slug=slug).title ? On Sunday, 27 January 2013 11:46:47 UTC-6, Paolo valleri wrote: > > The problem is that with the current approach i set the title field but i > have not found yer the possibility to render it :-( > > Looking to the code a very dirty but working workaround is to uns

Re: [web2py] Re: auth.wiki how to format all fields

2013-01-27 Thread paolo.vall...@gmail.com
The problem is that with the current approach i set the title field but i have not found yer the possibility to render it :-( Looking to the code a very dirty but working workaround is to unset the current.request.extension. get the wiki and set extension as before. In this way i get all fields se

[web2py] Re: auth.wiki how to format all fields

2013-01-27 Thread Massimo Di Pierro
I agree that is what it does and that is what is suposed to do. Paolo tells us it should work differently. I think that would be best done with a different API. Massimo > def wiki(): > return auth.wiki() # no "render" argument > > The output is: > > {'content': } > > I guess this is the no

[web2py] Re: auth.wiki how to format all fields

2013-01-27 Thread Alan Etkin
> > Hi Massimo, the point is that, if I define the following code in a > controller: I just tested an old welcome app with: def wiki(): return auth.wiki() # no "render" argument The output is: {'content': } I guess this is the normal behavior for all .wiki calls (just the content). --

[web2py] Re: auth.wiki how to format all fields

2013-01-27 Thread Paolo valleri
Hi Massimo, the point is that, if I define the following code in a controller: def wiki(): return auth.wiki(render='html') In the corresponding view I will have only the 'content' field. As a result I will be able to format the wiki page by its content only no other fields can be retrieved;

[web2py] Re: auth.wiki how to format all fields

2013-01-27 Thread Massimo Di Pierro
I do not fully understand the issue. Can you post more code as an example? On Friday, 25 January 2013 08:32:55 UTC-6, Paolo valleri wrote: > > Dear all, I've just came across the fact that with the following code: > def wiki(): > return auth.wiki(render='html') > and visiting something like ap

[web2py] Re: auth.wiki how to format all fields

2013-01-27 Thread Paolo valleri
to keep track of that, I have opened an issue http://code.google.com/p/web2py/issues/detail?id=1303 On Friday, January 25, 2013 3:32:55 PM UTC+1, Paolo valleri wrote: > > Dear all, I've just came across the fact that with the following code: > def wiki(): > return auth.wiki(render='html') > a

[web2py] Re: auth.wiki how to format all fields

2013-01-25 Thread Alan Etkin
> > Dear all, I've just came across the fact that with the following code: A workaround: (in the model) auth.wiki(resolve=False) page = db(db.wiki_page.slug==request.function).select().first() (in the view) {{=page.title}} --

Re: [web2py] Re: auth.wiki doesn't find pages without tags

2013-01-20 Thread Massimo Di Pierro
This opens a can of worms. We cannot efficiently check if the user has access before selecting the page. So the solution as a compromise. We allow searching for all page but content is only shown if user is allowed. massimo On Sunday, 20 January 2013 14:45:18 UTC-6, Alan Etkin wrote: > > > Sho

Re: [web2py] Re: auth.wiki doesn't find pages without tags

2013-01-20 Thread Alan Etkin
> Should all pages be searchable? If a user cannot read a wiki page, he shouldn't get the slug in results either, I suppose --

Re: [web2py] Re: auth.wiki doesn't find pages without tags

2013-01-20 Thread Massimo Di Pierro
You can find them using the manage pages option. That allows the editors and authors to search by title or content. The problem is about the public search pages. Should all pages be searchable? Without fill text search we can use belong but it may be slow. On Sunday, 20 January 2013 12:58:28 UT

Re: [web2py] Re: auth.wiki doesn't find pages without tags

2013-01-20 Thread Vinicius Assef
On Fri, Jan 18, 2013 at 5:42 PM, Massimo Di Pierro wrote: > The issue to be considered is that this will not work on Google App Engine > and it may considerable slow down searches for many wiki pages. Massimo, I think there's another issue, because Auth.wiki() allows me to save a page without any

Re: [web2py] Re: auth.wiki doesn't find pages without tags

2013-01-18 Thread Massimo Di Pierro
The issue to be considered is that this will not work on Google App Engine and it may considerable slow down searches for many wiki pages. Should we make this optional? Or always on? Or make it conditional to non-GAE? Should we break request.var.q in tokens and search that each of them is in tag

Re: [web2py] Re: auth.wiki doesn't find pages without tags

2013-01-18 Thread Vinicius Assef
Massimo, in Wiki.search() method, there is this code: if query is None: query = (db.wiki_page.id == db.wiki_tag.wiki_page) &\ (db.wiki_tag.name.belongs(tags)) query = query | db.wiki_page.title.contains(request.vars.q) So, search touc

[web2py] Re: auth.wiki doesn't find pages without tags

2013-01-18 Thread Massimo Di Pierro
RIght now wiki search only searches by tag. Perhaps you should also search by title? On Thursday, 17 January 2013 19:19:58 UTC-6, viniciusban wrote: > > I've had a problem today, trying to search auth.wiki pages without > tags, but they aren't found. > > As tags aren't required to save a page,

Re: [web2py] Re: auth.wiki menu

2013-01-16 Thread Alan Etkin
> > yep, this fix the problem but it is something ad-hoc, a general procedure > would be better. > I proposed a change to auth.wiki for enabling the menu with keword arguments: http://code.google.com/p/web2py/issues/detail?id=1281 --

Re: [web2py] Re: auth.wiki menu

2013-01-16 Thread paolo.vall...@gmail.com
yep, this fix the problem but it is something ad-hoc, a general procedure would be better. 2013/1/16 Andrew W > I just tried something like this: > > if request.function != 'wiki': >response.menu += Wiki(auth).menu(controller="**default", function= > "wiki") > > > > On Wednesday, January 16

Re: [web2py] Re: auth.wiki menu

2013-01-16 Thread Andrew W
I just tried something like this: if request.function != 'wiki': response.menu += Wiki(auth).menu(controller="default", function="wiki") On Wednesday, January 16, 2013 10:07:06 PM UTC+13, Paolo valleri wrote: > > Hi Alan, thank for the tip :-), it seems to work correctly. > The only issue is

Re: [web2py] Re: auth.wiki menu

2013-01-16 Thread paolo.vall...@gmail.com
Hi Alan, thank for the tip :-), it seems to work correctly. The only issue is that when I call the function 'wiki' I get two menu, one from the ad-hoc import, the other one from the common wiki. What shoud be nice is to explicitly tell auth.wiki when it has to populate the response.menu and when no

[web2py] Re: auth.wiki menu

2013-01-15 Thread Alan Etkin
> Now I want to have response.menu populated with the wiki pages too in every page I have, is there a way to populate it calling > somehow auth.wiki or I have to do that by hand, updating each time menu.py? If you put this on top of the controller (or model), you get the wiki menu from gluon.

[web2py] Re: auth.wiki deployment issue

2013-01-12 Thread Massimo Di Pierro
I do not understand. The source says wiki_editor and wiki_author everywhere. On Saturday, 12 January 2013 13:28:14 UTC-6, wwwgong wrote: > > the group name shipped with 2.3.2 is 'wiki_editor', I changed it to > 'wiki-editor' > I also add 'wiki-author' and assign both to myself. Now I can add pag

[web2py] Re: auth.wiki deployment issue

2013-01-12 Thread wwwgong
the group name shipped with 2.3.2 is 'wiki_editor', I changed it to 'wiki-editor' I also add 'wiki-author' and assign both to myself. Now I can add page and media --

[web2py] Re: auth.wiki deployment issue

2013-01-12 Thread wwwgong
Hi, Alan, following your recipe: http://www.web2pyslices.com/slice/show/1565/wikifying-web2py-apps I got '401 UNAUTHORIZED' when accessing /mywiki/default/wiki/_editmedia/index I am using 2.3.2 stable on localhost, tried the same at pythonanywhere.com same error --

[web2py] Re: auth.wiki deployment issue

2013-01-09 Thread Alan Etkin
> Just a little bit of a pain. It is only a one off task, but would a Submit All button be appropriate on the Manage Pages page ? A workaround could be: # content setup (after changing the app url) for wiki in db(..).select() wiki.update_record(html=MARKMIN(wiki.body).xml()) --

[web2py] Re: auth.wiki deployment issue

2013-01-09 Thread Andrew W
and again: I edited each page and submitted. All OK.Just a little bit of a pain. It is only a one off task, but would a Submit All button be appropriate on the Manage Pages page ? On Thursday, January 10, 2013 8:42:34 AM UTC+13, Andrew W wrote: > > I'll answer my own questions :) : > It

[web2py] Re: auth.wiki deployment issue

2013-01-09 Thread Andrew W
I'll answer my own questions :) : It's because the wiki page saves the body (user entered content) and the generated html separately. The html has not been regenerated. How do I get it to regenerate all of the pages after deployment in the new environment ? Thanks Andrew W On Thursday, Janu

[web2py] Re: auth.wiki deployment issue

2013-01-09 Thread Andrew W
Another Big Issue that I only just found after stopping my local rocket server: None of the Page Images are displaying. They are obviously looking for the localhost reference, which was looking great when I was also running locally. Looking at the html I see the following in the menu (Looks O

[web2py] Re: auth.wiki menugroups not working

2013-01-02 Thread Alan Etkin
El miércoles, 2 de enero de 2013 07:38:04 UTC-3, Andrew W escribió: > Trunk. > However, just figured it out. > From an earlier post, I added the following to models so that the wiki > tables were displayed in the Database Administration; > auth.wiki(resolve=False) > >> This is probably because au

[web2py] Re: auth.wiki menugroups not working

2013-01-02 Thread Andrew W
Trunk. However, just figured it out. >From an earlier post, I added the following to models so that the wiki tables were displayed in the Database Administration; auth.wiki(resolve=False) In my controller I added return auth.wiki(render='markmin', menugroups = ['wiki-editor','wiki-author']). Th

[web2py] Re: auth.wiki menugroups not working

2012-12-31 Thread Massimo Di Pierro
Which web2py version? On Monday, 31 December 2012 13:02:57 UTC-6, Andrew W wrote: > > I have this in my controller function > > return auth.wiki(render='markmin', menugroups = > ['wiki-editor','wiki-author']) > > but [Wiki] still appears in the menu when not logged in. > > > > --

Re: [web2py] Re: Auth.wiki() classes in tags

2012-12-29 Thread Andrew W
Thanks. That worked, although the speck one doesn't. Worth adding to the book I think. On Sunday, December 30, 2012 5:38:06 AM UTC+13, Massimo Di Pierro wrote: > > def index(): return auth.wiki(render='html') > > in index.html > > {{extend 'layout'}} > http://js.nicedit.com/nicEdit-latest.js"

Re: [web2py] Re: Auth.wiki() classes in tags

2012-12-29 Thread Massimo Di Pierro
def index(): return auth.wiki(render='html') in index.html {{extend 'layout'}} http://js.nicedit.com/nicEdit-latest.js"; type="text/javascript"> jQuery(function(){bkLib.onDomLoaded(nicEditors.allTextAreas);}); {{=content}} On Saturday, 29 December 2012 01:35:34 UTC-6, Andrew W wrote: > >

Re: [web2py] Re: Auth.wiki() classes in tags

2012-12-28 Thread Andrew W
P.S. I'm talking about using it with auth.wiki On Saturday, December 29, 2012 8:35:34 PM UTC+13, Andrew W wrote: > > "you just attach it to the textarea...": > > I don't quite follow. Can you expand please, do I add the code > to layout.html, do I need to actually download the plugin as the sr

Re: [web2py] Re: Auth.wiki() classes in tags

2012-12-28 Thread Andrew W
"you just attach it to the textarea...": I don't quite follow. Can you expand please, do I add the code to layout.html, do I need to actually download the plugin as the src points to the website ? This could be worth adding to the book as anyone using render='html' would want to add an editor

Re: [web2py] Re: Auth.wiki() classes in tags

2012-12-15 Thread Massimo Di Pierro
In default MAKRMIN mode you can create blocks with classes with ``hello``:classname (standard markmin class) To switch from markmin to HTML you do: auth.wiki(render='html') (assuming you don't have data already in db) Then if you have a wysiwyg plugin you just attach it to the textarea. Fo

Re: [web2py] Re: Auth.wiki() classes in tags

2012-12-15 Thread Andrew W
On developers forum, Massimo mentioned: > auth.wiki() supports html tags (float divs, tables, image uploading, etc.)? "yes. " How do I enter a generic tag like a div with a class? Also, "Notice that auth.wiki() can use wysiwyg if you simply set it up that way and including an appropriate js

Re: [web2py] Re: Auth.wiki() documentation

2012-12-15 Thread Massimo Di Pierro
I can do that. On Friday, 14 December 2012 19:24:26 UTC-6, Alan Etkin wrote: > > > El viernes, 14 de diciembre de 2012 13:00:37 UTC-3, Massimo Di Pierro > escribió:Thanks. Can I use it for the book? > > Of course, but it would need some rewriting to fit with the book style > (and perhaps a more

Re: [web2py] Re: Auth.wiki() documentation

2012-12-14 Thread Alan Etkin
> El viernes, 14 de diciembre de 2012 13:00:37 UTC-3, Massimo Di Pierro escribió:Thanks. Can I use it for the book? Of course, but it would need some rewriting to fit with the book style (and perhaps a more complete info on the wiki API) --

Re: [web2py] Re: Auth.wiki() classes in tags

2012-12-14 Thread Andrew W
Thanks, but how do I specify the class in the wiki page? --

Re: [web2py] Re: Auth.wiki() documentation

2012-12-14 Thread Andrew W
I hope to have a website up and running soon where I have done the following (If you have a better idea, then please let me know) in layout.html, or in default/index.html {{if request.args==['index'] or request.args==[]: }} # The Main Page .other stuff # Or

Re: [web2py] Re: Auth.wiki() documentation

2012-12-14 Thread Massimo Di Pierro
Thanks. Can I use it for the book? On Thursday, 13 December 2012 15:15:11 UTC-6, Alan Etkin wrote: > > El jueves, 13 de diciembre de 2012 11:42:02 UTC-3, viniciusban escribió: >> >> Agree in part, Massimo. >> >> This feature is very good. Really! >> >> > I have posted a slice about auth.wiki >

Re: [web2py] Re: Auth.wiki() classes in tags

2012-12-14 Thread villas
Try class: clearfix http://twitter.github.com/bootstrap/components.html#misc On Friday, December 14, 2012 1:56:12 AM UTC, Andrew W wrote: > > Also, with Images I can do left , right, center. > Can I do something like a css clear / clear: both ? > > > On Friday, December 14, 2012 6:35:11 AM UT

Re: [web2py] Re: Auth.wiki() documentation

2012-12-14 Thread Alan Etkin
> Would you wrap something like this example (from the slice) in an if > clause ? Or, I imagine you could use this scenario for boilerplate text in > your view for all web pages, with slugs like "header", "footer", > "standard_text". > > content = db(db.wiki_page.slug=="index").select().fir

Re: [web2py] Re: Auth.wiki() classes in tags

2012-12-13 Thread Andrew W
Also, with Images I can do left , right, center. Can I do something like a css clear / clear: both ? On Friday, December 14, 2012 6:35:11 AM UTC+13, viniciusban wrote: > > I need to identify images by its location. When they're inside a > table, it's easier because I can attach a class to the ta

Re: [web2py] Re: Auth.wiki() documentation

2012-12-13 Thread Andrew W
Hi Alan, I have been checking out auth.wiki to see what can be done, in particular how to get different page layouts within the one "index" controller and view. Would you wrap something like this example (from the slice) in an if clause ? Or, I imagine you could use this scenario for boilerplat

Re: [web2py] Re: Auth.wiki() documentation

2012-12-13 Thread Vinicius Assef
Thank you, Alan. Really useful. On Thu, Dec 13, 2012 at 7:15 PM, Alan Etkin wrote: > El jueves, 13 de diciembre de 2012 11:42:02 UTC-3, viniciusban escribió: >> >> Agree in part, Massimo. >> >> This feature is very good. Really! >> > > I have posted a slice about auth.wiki here. It covers a co

Re: [web2py] Re: Auth.wiki() documentation

2012-12-13 Thread Alan Etkin
El jueves, 13 de diciembre de 2012 11:42:02 UTC-3, viniciusban escribió: > > Agree in part, Massimo. > > This feature is very good. Really! > > I have posted a slice about auth.wiki here. It covers a couple of features not docum

Re: [web2py] Re: Auth.wiki() classes in tags

2012-12-13 Thread Vinicius Assef
I need to identify images by its location. When they're inside a table, it's easier because I can attach a class to the table. I'll refine it a bit more. I just watched a talk about responsive web design with some ideias I think will help me. BTW, is there a way to type HTML tags inside my Markmi

Re: [web2py] Re: Auth.wiki() classes in tags

2012-12-13 Thread Massimo Di Pierro
I agree with that and think it is a good idea. You can make the CSS device dependent but that is outside the markup language scope. Perhaps I am missing something. On Thursday, 13 December 2012 08:51:35 UTC-6, viniciusban wrote: > > Yes, you're right, Massimo. > > So, let's try to solve this k

Re: [web2py] Re: Auth.wiki() classes in tags

2012-12-13 Thread Vinicius Assef
Yes, you're right, Massimo. So, let's try to solve this kind of situation I'm facing right now: I have a page with images that must be seen among different devices (pc, tablet and smartphone). I can fix image length inside its tag (in markmin), but its size will vary, proportionally, according to

Re: [web2py] Re: Auth.wiki() reporting 401 unauthorized

2012-12-13 Thread Vinicius Assef
Thank you for clarifying. I think it's important to mention that in docs. On Thu, Dec 13, 2012 at 12:36 PM, Massimo Di Pierro wrote: > The fist registered use is auth_editor automatically but you login with a > previous user (created before enabling auth_wiki) you have to use appadmin > to make

Re: [web2py] Re: Auth.wiki() documentation

2012-12-13 Thread Vinicius Assef
Agree in part, Massimo. This feature is very good. Really! We'll change documentation scenario soon. :-) On Thu, Dec 13, 2012 at 12:35 PM, Massimo Di Pierro wrote: > The docs is not there yet. A good reason not to congratulate yet. :-( > > > On Thursday, 13 December 2012 04:53:31 UTC-6, vinic

[web2py] Re: Auth.wiki() classes in tags

2012-12-13 Thread Massimo Di Pierro
I do not doubt this would be useful but do we want to transform the wiki syntax in a markup language? I think of the purpose of the wiki syntax is make sure the user has no freedom in messing up style info. If the user can set the class of tags they can break the page presentation. On Thursday,

[web2py] Re: Auth.wiki() reporting 401 unauthorized

2012-12-13 Thread Massimo Di Pierro
The fist registered use is auth_editor automatically but you login with a previous user (created before enabling auth_wiki) you have to use appadmin to make the user editor. On Thursday, 13 December 2012 07:16:59 UTC-6, viniciusban wrote: > > SOLVED. > > I registered a new user but, for some re

[web2py] Re: Auth.wiki() documentation

2012-12-13 Thread Massimo Di Pierro
The docs is not there yet. A good reason not to congratulate yet. :-( On Thursday, 13 December 2012 04:53:31 UTC-6, viniciusban wrote: > > I want to congratulate who implemented the Auth.wiki() feature. It's > really amazing and powerful. \o/ > > Where's its documentation? I'm folowing plugin_wi

[web2py] Re: Auth.wiki() reporting 401 unauthorized

2012-12-13 Thread Vinicius Assef
SOLVED. I registered a new user but, for some reason, Auth.wiki() didn't authorized me in "wiki_editor" group. I'll try to reproduce this in localhost. On Thu, Dec 13, 2012 at 9:58 AM, Vinicius Assef wrote: > Again, about auth.wiki(). > > It's woking like a charm in localhost, but I'm gettin

[web2py] Re: auth.wiki() writes apsolute links for wiki pages. Can I change it to write only relative url?

2012-12-07 Thread Alan Etkin
> On Friday, December 7, 2012 8:46:12 AM UTC-3, Dragan Matic wrote:Currently if I write markmin link in auth.wiki() like this: [[Some > link text @some-wiki-page]] - link is written as absolute URL. If I move my database to another site all the links in wiki pages > break. Can I change this

[web2py] Re: auth.wiki( extra=dict() )

2012-11-28 Thread Andrew W
Just an update to the group. It's not a bug, just (me) typing it incorrectly. This is a very good feature when you want to allow a website editor to add some style to their content. I've got a few simple things in mind. Hopefully to add to the auth.wiki documentation, here is an example: I w

[web2py] Re: auth.wiki( extra=dict() )

2012-11-18 Thread Massimo Di Pierro
Should work the same. Perhaps this is a bug. Please open a ticket and I will look asap. On Saturday, 17 November 2012 19:21:52 UTC-6, Andrew W wrote: > > > I'm assuming it works differently to the markmin document.I can see is > adds a class called "custom", but I don't see the lambda fun

[web2py] Re: auth.wiki( extra=dict() )

2012-11-17 Thread Andrew W
I'm assuming it works differently to the markmin document.I can see is adds a class called "custom", but I don't see the lambda function working as in: >>> markmin2html("‘‘aaa‘‘:custom", extra=dict(custom=lambda text: ’x’+text+’x’ generates ’xaaax’ (the ‘‘...‘‘:custom block i

[web2py] Re: auth.wiki( extra=dict() )

2012-11-16 Thread Andrew W
Yes, it's broken: AttributeError: 'Wiki' object has no attribute 'extra' I made the change below and it works. On Saturday, November 17, 2012 12:54:14 AM UTC+13, villas wrote: > > Hi Massimo, > I've just been checking it. > I think you need to change this... > > Wiki __init__() > > This

[web2py] Re: auth.wiki( extra=dict() )

2012-11-16 Thread villas
Hi Massimo, I've just been checking it. I think you need to change this... Wiki __init__() This line: self.extra = self.extra or {} should be: self.extra = extra or {} --

[web2py] Re: auth.wiki( extra=dict() )

2012-11-15 Thread villas
That's great! I'll check it out tomorrow. Thanks. On Thursday, November 15, 2012 8:34:15 PM UTC, Massimo Di Pierro wrote: > > In trunk. Please check it. > > On Wednesday, 14 November 2012 15:16:32 UTC-6, villas wrote: >> >> There is this really long thread, but as far as I can see, no one seem

  1   2   >