Hi everyone,
First thing first, i'm not a real programmer, i'm only a lazy
sysadmin. so when i write a script, normally it'd be no longer than 20
lines. just now trying to scratch my own itch by writing a web app.
i've finished reading pyramid's narrative documentation, but there is
always a possibilty i've overlook something obvious, or my brain just
can't wrap programming behaviours yet.
After reading the documentation, i think the easiest way for me is
using view handlers. but then for every handlers i'd need two
configurations:
config.add_handlers('something_index', '/something',
'apps.handlers.something:SomethingHandler', action='index')
config.add_handlers('something', '/something/{action}',
'apps.handlers.something:SomethingHandler')
So my question is, is there a way to make every handlers have it's own
default action, so i don't need the first line? so when '/something'
is requested, it will call the default action on 'SomethingHandler'?
if it's currently not possible, is it too early to file a feature
request? or is there a better way? or do i need to lessen my laziness
a bit? :)
thanks in advance,
--
-jamal-
ps. writing in english totally sucks my energy...
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.