That way, you can use URL() to pass args [] and vars {} under the
web2py way. Have to test it though...On Jan 4, 12:24 pm, mdipierro <[email protected]> wrote: > but why not simply > > url:homepage/plugin_wiki/index > > or > > localurl:homepage/plugin_wiki/index > > and no quotes? > > On Jan 4, 6:00 am, blackthorne <[email protected]> wrote: > > > > > instead of having common strings ready to be passed as arguments, you > > would get strings that contain quotes in it. I guess... > > > Consider my example: > > home url:'homepage','plugin_wiki','index' > > > you will get: > > In [9]: url="url:\'homepage\',\'plugin_wiki\',\'index\'" > > > In [10]: [part.strip('\'') for part in url[4:].split(',')] > > Out[10]: ['homepage', 'plugin_wiki', 'index'] > > > In [11]: [part for part in url[4:].split(',')] > > Out[11]: ["'homepage'", "'plugin_wiki'", "'index'"] > > > Best regards > > > On Jan 4, 11:49 am, mdipierro <[email protected]> wrote: > > > > Why > > > > + elif url.lower().startswith('url:'): > > > + url=URL(*[part.strip('\'') for part in > > > url[4:].split(',')]) > > > > and not > > > > + elif url.lower().startswith('url:'): > > > + url=URL(*[part for part in > > > url[4:].split(',')]) > > > > Why the quotes? > > > > On Jan 3, 9:07 pm, blackthorne <[email protected]> wrote: > > > > > Because it may not be obvious that the previous message includes a > > > > patch, here is from another > > > > source:http://www.speedyshare.com/files/26051957/download/patch.plugin%20wik... > > > > > thank you > > > > > On Jan 4, 2:51 am, Francisco Gama <[email protected]> wrote: > > > > > > this patch allows you to define custom links using the URL() helper > > > > > in the meta-menu of plugin_wiki, so you should apply it to: > > > > > models/plugin_wiki.py > > > > > > the syntax used is "Title url:URL_args" > > > > > > example: > > > > > home url:'homepage','plugin_wiki','index' > > > > > Articles page:articles > > > > > Links url:'homepage','default','links' > > > > > > notice that after "url:" you shall not leave white spaces. This is a > > > > > must not to touch in the regex currently being used to match that > > > > > > Other idea, would be to bring this power to markmin links... > > > > > > Leave comments, > > > > > Best regards > > > > > > Francisco Gama Tabanez Ribeiro > > > > > > E-mail: [email protected] > > > > > Twitter: blackthorne

