Posted yet another version. Fixed some minor issues and now when you
edit "configure/procedures" you can do:
## for example:
def add(a,b): return a+b
## or define rss feeds
def news():
return dict(title='news',
link=settings.host_url,
description='bla '*100,
created_on=self.now,
entries=[dict(title='news item',
link=settings.host_url,
description='bla '*100,
created_on=self.now)])
## make is accessible as /app/default/rss/news
settings.rss_procedures.append('news')
## or expose funtions
def date_future(days=0):
import datetime
return str(datetime.date.today()+datetime.timedelta(int(days)))
## make is accessible as /app/default/run/date_future/1
## make is accessible as /app/default/run/date_future?days=1
settings.exposed_procedures.append('date_future')
## as json at /app/default/json/date_date_future/1
## as json at /app/default/json/date_future?days=1
settings.json_procedures.append('date_future')
## or as xmlrpc service at /app/default/xmlrpc/date_future
settings.xmlrpc_procedures.append('date_future')
Massimo
On Dec 7, 7:39 am, BearXu <[EMAIL PROTECTED]> wrote:
> Yes, T3 is like Django's Admin, but the difference is T3 combines two
> interface(Front and Admin) into one.It's more easy to use.
>
> 2008/12/7 Jonathan Benn <[EMAIL PROTECTED]>
>
>
>
> > Hi Massimo,
>
> > On Dec 5, 10:26 am, mdipierro <[EMAIL PROTECTED]> wrote:
> > >http://web2py.appspot.com/t3
>
> > Wow, this is pretty cutting edge stuff. So if I understand correctly,
> > T3 is a web2py application that lets you interactively transform it
> > into whatever application you want. This seems really handy for quick-
> > starting projects, and I'd see it as especially useful to help
> > beginners get started and for students.
>
> > Nice job!
>
> > --Jonathan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---