[Zope-CMF] auto generate the username on the join form

J Cameron Cooper jccooper@jcameroncooper.com
Wed, 18 Jun 2003 13:17:56 -0500


>
>
>is there a way to change the join_form so that the username is generated
>from a sequenced number, that is incremened with every new joining?
>  
>
1) Keep a property somewhere (like the membership tool or properties 
tool) that keeps your count. This can be done through the ZMI or by 
subclassing the membership tool.
2) Display that as the default on your login form (customize the skin.)
3) Increment that property every time a member is added, either through 
the appropriate skin script or via subclassing the membership tool.

The subclass-ing the membership tool keeps things closer together, 
although you may find the initial work easier if you go TTW using mostly 
the skins.

          --jcc