should be

def index():
    redirect(URL('plugin_wiki','page',args='home'))

On Feb 9, 3:04 pm, villas <villa...@gmail.com> wrote:
> If routes are a problem,  then one idea is to simply create a wiki
> page named for example 'home' and then alter the default controller
> index function:
>
> def index():
>     redirect(URL(c='plugin_wiki',f='home'))
>
> On Feb 8, 12:58 am, Offray Vladimir Luna Cárdenas <off...@riseup.net>
> wrote:
>
>
>
>
>
>
>
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
>
> > Hi all,
>
> > I'm trying to use plugin_wiki as my first approach to having a
> > functional web2py site and using it to publish easily some info. I tried
> > also Instant Press but it doesn't installed because a time out error a
> > got no feedback on the Spanish or English list and I would like to test
> > more plugin_wiki for a more techie approach to publishing in web2py even
> > making a blog on it (but I plan to go to Instant Press again for some
> > not technical inclined friends who I want to introduce to web2py).
>
> > Anyway I'm trying to make a page in plugin_wiki a default page when
> > people load the web2py powered site, so I modified the routes.example.py
> > naming it routes.py and restarted cherokee. My change was this:
>
> > - --->
> > default_application = 'welcome'    # ordinarily set in base routes.py
> > default_controller = 'plugin_wiki'  # ordinarily set in app-specific
> > routes.py
> > default_function = 'page'   # ordinarily set in app-specific..
> > <---
>
> > and it shows the page for pages creation with all the created ones. If I
> > tryed adding parenthesis to "page" function, making it "page()" and it
> > shows a more specif message for page creation. When I tried
> > "page(test)", using a previously created "test" page, web2py send me an
> > error message of the form:
>
> > invalid function (plugin_wiki/page(test))
>
> > May be I'm understanding wrong about how to use routes.py or calling a
> > specific pages as an argument of page function. Any advice about how to
> > make a specific plugin_wiki default home page will be appreciated.
>
> > Thanks in advance,
>
> > Offray
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.11 (GNU/Linux)
> > Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/
>
> > iQEcBAEBAgAGBQJNUJUvAAoJEGiex2828ICwAQUH/jDyi+ppJ/B35IJqeHfp8VGK
> > wpOhXLRldBqq2UfEQJfnR1YqIRYAeJX2kgGuyo0A4L8emF+ELeld1/de86R51E/2
> > M+IvMTtovfoCfA0mQf+hiHQU/vHLgX+IEv6LPJXvvSK2BoFnNq5mT9Fs9LA/ukdv
> > 3x8Vor5jfANW9CHEndDZzUf34UrB0ZkmPJSYyOypkpdOvoVP/vzufBmWwbE1G1n5
> > lhusdbdauHagiKDx9ZpnvKXduMQSeX2yWbAreo59mUaaQ+w4jGUwx+vUAXZDqik8
> > NoleBeGsCXvuQzYH4RZCg0cG43ODI/K6o24v/mrB/dTdEKgg0wOPwopOkg5ZuOA=
> > =ZiUF
> > -----END PGP SIGNATURE-----

Reply via email to