Re: turbogears style

2007-09-07 Thread Andrey Gladilin
Thank you guys for this discussion. I've received much usefull information regarding both frameworks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylo

Re: turbogears style

2007-09-06 Thread Mike Orr
On 9/6/07, Andrey Gladilin <[EMAIL PROTECTED]> wrote: > What are the main differencies between TG2 dispatcher pylons one? Is there any > documentation regarding TG dispatcher? In a Pylons application the URL sitemap and the controller+action structure are completely independent from each other.

Re: turbogears style

2007-09-06 Thread gasolin
On 9月6日, 下午3時36分, Andrey Gladilin <[EMAIL PROTECTED]> wrote: > What are the main differencies between TG2 dispatcher pylons one? Is there any > documentation regarding TG dispatcher? > Pylons use routes as dispatcher. TG2 dispatcher is a cherrypy style "object dispatcher", which has similar beha

Re: turbogears style

2007-09-06 Thread Andrey Gladilin
What are the main differencies between TG2 dispatcher pylons one? Is there any documentation regarding TG dispatcher? Thanks. Regards, skyogre Andrey Gladilin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "pylo

Re: turbogears style

2007-09-05 Thread Mark Ramm
On 9/3/07, skyogre <[EMAIL PROTECTED]> wrote: > > Hi. > > I liked the turbogears style of templates usage. Decorators are used > to specify the template and function flash() or exceptions are used to > display the result of the operation. > > Is there a way to g

Re: turbogears style

2007-09-05 Thread Mark Ramm
> This means you can substitute a TG 2 controller or any other WSGI > application instead of a Pylons controller. TG 2 does not have an > "action" method; instead it parses the remaining URL to find an > @expose'd method. TG's base controller then converts the return dict > to a WSGI response, a

Re: turbogears style

2007-09-05 Thread Mark Ramm
> Frankly speaking I'm afraid a little. It seems to me that turbogears > guys are going to break everything in the next milestone and make a > completely new framework. Though they will try to leave the same API > as in 1.0 it will relatevely be broken and the code style will change. > So it will

Re: turbogears style

2007-09-04 Thread Florent Aide
Mike Orr a écrit : > > The peripherals are things like ToscaWidgets, the CRUD and admin > systems, etc. I'm not sure how much TG will keep a distinct database > interface and authentication system vs how much those will merge into > SQLAlchemy and AuthKit. > > We had a discussion in tg-trunk

Re: turbogears style

2007-09-04 Thread Mike Orr
One thing that may not be obvious: we normally say that Routes chooses the controller and action but that's not quite true. Routes merely matches named variables we've called "controller" and "action". Pylons uses "controller" to find the controller, whose .__call__ method is a WSGI application.

Re: turbogears style

2007-09-04 Thread Contact 42
> 2) TG is spinning off several components which were bundled in TG 1. > These will be Pylons-compatible and/or WSGI-compatible, making them > accessible both to Pylons applications as well as TG applications. > What exactly is TG once this happens, the individual components ? or the combinat

Re: turbogears style

2007-09-04 Thread Mike Orr
On 9/3/07, skyogre <[EMAIL PROTECTED]> wrote: > > > > On 4 сент, 01:57, Florent Aide <[EMAIL PROTECTED]> wrote: > > skyogre a crit :> Hi. > > > > > I liked the turbogears style of templates usage. Decorators are used > > > to specify th

Re: turbogears style

2007-09-03 Thread skyogre
Although tepmlates specified in decorators is not a big problem. Is it possible implements an exception to automatically redirect to previous or manually defined page where the error or success message is shown in a beautiful rectangle instead of the standard pylons error page. Sorry for the stup

Re: turbogears style

2007-09-03 Thread skyogre
On 4 сент, 01:57, Florent Aide <[EMAIL PROTECTED]> wrote: > skyogre a crit :> Hi. > > > I liked the turbogears style of templates usage. Decorators are used > > to specify the template and function flash() or exceptions are used to > > display the result of th

Re: turbogears style

2007-09-03 Thread Ben Bangert
On Sep 3, 2007, at 2:16 PM, skyogre wrote: I liked the turbogears style of templates usage. Decorators are used to specify the template and function flash() or exceptions are used to display the result of the operation. Is there a way to get the similar usage in pylons-based code

Re: turbogears style

2007-09-03 Thread Florent Aide
skyogre a écrit : > Hi. > > I liked the turbogears style of templates usage. Decorators are used > to specify the template and function flash() or exceptions are used to > display the result of the operation. > > Is there a way to get the similar usage in pylons-based code?

turbogears style

2007-09-03 Thread skyogre
Hi. I liked the turbogears style of templates usage. Decorators are used to specify the template and function flash() or exceptions are used to display the result of the operation. Is there a way to get the similar usage in pylons-based code