List Info

Thread: Class nesting or subclassing controllers




Class nesting or subclassing controllers
country flaguser name
United States
2007-05-25 14:29:10
Is it possible to nest classes in a controller class? A way
to use
subclassed contollers would interest me too

Thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "pylons-discuss" group.
To post to this group, send email to pylons-discussgooglegroups.com
To unsubscribe from this group, send email to
pylons-discuss-unsubscribegooglegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Class nesting or subclassing controllers
user name
2007-05-26 01:49:32
On 5/25/07, voltron <nhytrogooglemail.com> wrote:
> Is it possible to nest classes in a controller class?

Routes knows how to look at a URL and try to figure out the
matching
controller module -> controller class -> method name. 
If you deviate
from this too much, you will probably not find joy.  Of
course, once
you're inside the controller, you can do whatever you want,
including
call local classes.

> A way to use
> subclassed contollers would interest me too

One controller class can subclass another.  No prob.  Is
that what
you're asking?

Best Regards,
-jj

-- 
http://jjinux.blogspot.co
m/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "pylons-discuss" group.
To post to this group, send email to pylons-discussgooglegroups.com
To unsubscribe from this group, send email to
pylons-discuss-unsubscribegooglegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Class nesting or subclassing controllers
country flaguser name
United States
2007-05-28 02:17:51
Hmm, thats sad, I was just trying to find a way to logically
separate
and group link hierarchies by calling:

Controller.function
Controller.SubClass.func

and so on

Oh well, I stick to creating controllers and imports

Thanks!

On May 26, 8:49 am, "Shannon -jj Behrens"
<jji...gmail.com> wrote:
> On 5/25/07, voltron <nhy...googlemail.com> wrote:
>
> > Is it possible to nest classes in a controller
class?
>
> Routes knows how to look at a URL and try to figure out
the matching
> controller module -> controller class -> method
name.  If you deviate
> from this too much, you will probably not find joy.  Of
course, once
> you're inside the controller, you can do whatever you
want, including
> call local classes.
>
> > A way to use
> > subclassed contollers would interest me too
>
> One controller class can subclass another.  No prob. 
Is that what
> you're asking?
>
> Best Regards,
> -jj
>
> --http://jjinux.blogspot.co
m/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "pylons-discuss" group.
To post to this group, send email to pylons-discussgooglegroups.com
To unsubscribe from this group, send email to
pylons-discuss-unsubscribegooglegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Class nesting or subclassing controllers
user name
2007-05-28 14:55:28
Just move you subclass into a different module, and it'll be
fine.  By
the way, I'm a little bit confused about "logically
separate and group
link hierarchies".  Naturally, your link hierarchies
don't have to
match the code.  Maybe I'm just understand what you mean.

Happy Hacking!
-jj

On 5/28/07, voltron <nhytrogooglemail.com> wrote:
> Hmm, thats sad, I was just trying to find a way to
logically separate
> and group link hierarchies by calling:
>
> Controller.function
> Controller.SubClass.func
>
> and so on
>
> Oh well, I stick to creating controllers and imports
>
> Thanks!
>
> On May 26, 8:49 am, "Shannon -jj Behrens"
<jji...gmail.com> wrote:
> > On 5/25/07, voltron <nhy...googlemail.com> wrote:
> >
> > > Is it possible to nest classes in a
controller class?
> >
> > Routes knows how to look at a URL and try to
figure out the matching
> > controller module -> controller class ->
method name.  If you deviate
> > from this too much, you will probably not find
joy.  Of course, once
> > you're inside the controller, you can do whatever
you want, including
> > call local classes.
> >
> > > A way to use
> > > subclassed contollers would interest me too
> >
> > One controller class can subclass another.  No
prob.  Is that what
> > you're asking?
> >
> > Best Regards,
> > -jj
> >
> > --http://jjinux.blogspot.co
m/
>
>
> >
>


-- 
http://jjinux.blogspot.co
m/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "pylons-discuss" group.
To post to this group, send email to pylons-discussgooglegroups.com
To unsubscribe from this group, send email to
pylons-discuss-unsubscribegooglegroups.com
For more options, visit this group at h
ttp://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )