If you just add a
Field('uuid','string',default=str(uuid.uuid4()), writable=False)
It should do what you ask and you can use db.export_as_csv_field to
sync remote dbs.
On Aug 4, 6:59 am, vihang <[email protected]> wrote:
> yes, its like a federated id. but the emails are used for a different
> purpose (avatars which inturn use auth).. hence we need to have a uuid
> to unify them all... maybe the issue I am facing is too specific to my
> problem and but uuid (or similar global identifiers) would be
> interesting addition as it is becoming a necessity for most
> distributed systems
>
> On Aug 4, 12:53 pm, mdipierro <[email protected]> wrote:
>
> > If it helps.
> > db.export_as_csv_file and db.import_as_csv_file can use uuid to sync
> > distinct databases.
>
> > But I am not sure what you need to do. Are you looking for federated
> > id?
>
> > Why not use email as uuid?
>
> > On Aug 4, 2:30 am, vihang <[email protected]> wrote:
>
> > > Hello,
>
> > > I am currently working on an app which is distributed between
> > > different nodes. The issue is that when it comes to app related dbs, I
> > > am managing (somehow) using a seperate UUID column. But the Auth which
> > > comes with web2py does not. any ideas... I want 'building my own auth'
> > > as a last resort.
>
> > > Vihang
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---