Em Quinta 01 Junho 2006 00:09, Jorge Vargas escreveu:
> Hi I have been playing around with the internals of identity and now I plan
> to go to the outside :D
>
> and I just notice there is no std. way of registering people from the web,
> even though this is a app specific task I think this can be simplified with
> a complex widget. I'm not sure if this should be a core widget....
>
> if anyone has something like this that will like to contribute please say
> so
>
> So far I see it as follow.
>
> when creating the widget will accept a couple of things.
> #1 a FormWidget which will be what will be displayed
> #2 some callable with the action to execute (for example send an email with
> one of the tg email packages out there)
>
> maybe #1 could be autogenerated from the model.py/User class but I'm not
> sure if that's a good idea, specially if more thing have to be added.
>
> in the internals it will keep a log of all pending requests (probably in
> {so|sa}object like identity does)
> and ones something is trigger (like a confirmation number) it will move
> that person to the identity tables.
>
> comments?Two separate tables, one for requests and one for identity itself. Once the record is in the request "pool", it doesn't matter the order for it to get out of there (unless your system explicitly makes it important and uses some ordering condition). The acceptance, then, would just be a matter of copying one record from the requests table to the identity table (or splitting request data into several tables as needed). This is really very specific to your application and I just see a very very very simple situation covering a lot of applications... But then, those would probably like to expand on this simple implementation and would start with custom widgets or avoiding the proposed widget at all. -- Jorge Godoy <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears -~----------~----~----~----~------~----~------~--~---

