[Newbies] Best practice for very simple objects

2007-06-26 Thread Norbert Hartl
Hi, I'm thinking right now about some role and permission stuff for my webapp. But I'm asking myself what will be a good approach for this. At first I created a lot of classes like AdminRole, MemberRole, CreatePermission, ModifyPermission etc. I used the class objects for this. These only carry

Re: [Newbies] Best practice for very simple objects

2007-06-26 Thread Michael Rueger
Norbert Hartl wrote: At first I created a lot of classes like AdminRole, MemberRole, CreatePermission, ModifyPermission etc. I used the class objects for this. These only carry some state like index, label. The role objects also carry a set of permissions. I'm a big fan of instances :-)

Re: [Newbies] Best practice for very simple objects

2007-06-26 Thread Michael Rueger
Norbert Hartl wrote: Hi, I'm thinking right now about some role and permission stuff for my webapp. But I'm asking myself what will be a good approach for this. P.S. have you looked at the SmallWiki permission and role implementation? ___ Beginners

Re: [Newbies] Best practice for very simple objects

2007-06-26 Thread Norbert Hartl
On Tue, 2007-06-26 at 15:45 +0200, Michael Rueger wrote: Norbert Hartl wrote: At first I created a lot of classes like AdminRole, MemberRole, CreatePermission, ModifyPermission etc. I used the class objects for this. These only carry some state like index, label. The role objects also

Re: [Newbies] Best practice for very simple objects

2007-06-26 Thread Norbert Hartl
On Tue, 2007-06-26 at 15:46 +0200, Michael Rueger wrote: Norbert Hartl wrote: Hi, I'm thinking right now about some role and permission stuff for my webapp. But I'm asking myself what will be a good approach for this. P.S. have you looked at the SmallWiki permission and role