Re: [Zope] User with Properties?
Is there an easy way to create users that have properties? Eg. if I want to assign an integer value to a user.
I did this by writing a python method... see my how-to:
This creates a user from python - nice, but doesn't solve my problem. I want to be able to assign a property sheet of some sort to each user I create, so I can store his/her local preferences on my site. Does anybody have a clue on how to accomplish this? Thanks for the suggestion, though. Alexander.
Is there an easy way to create users that have properties? Eg. if I want to assign an integer value to a user.
I did this by writing a python method... see my how-to:
This creates a user from python - nice, but doesn't solve my problem. I want to be able to assign a property sheet of some sort to each user I create, so I can store his/her local preferences on my site.
Does anybody have a clue on how to accomplish this?
Would it work for you to create a folder for each user with id same as the username? You get a propertysheet with the folder for free. You could also make good use of acquisition to display pages based on preferences. Shalabh
Thanks for the suggestion, though.
Alexander.
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (2)
-
Alexander Limi -
Shalabh Chaturvedi