[Zope-DB] Re: Zope-DB Digest, Vol 56, Issue 2

Cu Vinh Loc cvloc at cit.ctu.edu.vn
Wed Mar 12 22:53:58 EDT 2008


Dear friends,

Please show me how to query user table of zope and control (using python)
that.

Thanks,
Cu Vinh Loc.


> Send Zope-DB mailing list submissions to
> 	zope-db at zope.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://mail.zope.org/mailman/listinfo/zope-db
> or, via email, send a message with subject or body 'help' to
> 	zope-db-request at zope.org
>
> You can reach the person managing the list at
> 	zope-db-owner at zope.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Zope-DB digest..."
>
>
> Today's Topics:
>
>    1. Re: Help me. (Charlie Clark)
>    2. Re: Zope-DB Digest, Vol 56, Issue 1 (Cu Vinh Loc)
>    3. Re: Re: Zope-DB Digest, Vol 56, Issue 1 (Charlie Clark)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 11 Mar 2008 17:06:38 +0100
> From: "Charlie Clark" <charlie at egenix.com>
> Subject: Re: [Zope-DB] Help me.
> To: "Cu Vinh Loc" <cvloc at cit.ctu.edu.vn>, zope-db at zope.org
> Message-ID: <op.t7u0bglsy861uf at fuchsia.local>
> Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8
>
> Am 11.03.2008, 16:13 Uhr, schrieb Cu Vinh Loc <cvloc at cit.ctu.edu.vn>:
>
>>   Dear friends,
>>  I am using plone for deploying the website, but I have some problems
>> such as:
>>    - Using relational (internal) database "Gadfly database": I do not
>> know
>> where the database is stored in the Zope. Can I manipulate directly
>> this database "visual"?
>>    - Users and groups: How to assign this permissions to my website.
>>  Could you show me how to implement that easily.
>
> Dear Cu Vin Loc,
>
> you have simply reposted your e-mail to the Archetypes list this morning
> apparently without looking at the documentation I suggested.
>
> While you are reading up on the basics of using Zope and relational
> databases it might be an idea to let us know exactly what you want to do.
> As a kick-start on using Zope you might also wish to look at my
> presentation at EuroPython last year. It covers the very basics of using
> ZSQL in Zope and there is a download with code for your to play with.
>
> http://www.egenix.com/library/presentations/EuroPython2007-Zope-and-RDBMS/
>
> Good luck!
>
> Charlie
> --
> Charlie Clark
> eGenix.com
>
> Professional Python Services directly from the Source
>>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
> ________________________________________________________________________
>
> :::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! ::::
>
>      eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
>      D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
>             Registered at Amtsgericht Duesseldorf: HRB 46611
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 12 Mar 2008 09:50:09 +0700 (ICT)
> From: "Cu Vinh Loc" <cvloc at cit.ctu.edu.vn>
> Subject: [Zope-DB] Re: Zope-DB Digest, Vol 56, Issue 1
> To: zope-db at zope.org
> Message-ID:
> 	<22281.123.20.5.103.1205290209.squirrel at mail.cit.ctu.edu.vn>
> Content-Type: text/plain;charset=utf-8
>
> Dear friends,
>
> In my website, there are many user groups and each group will have
> different persission but I do not know how to assign permission for
> certain users. Assume that I have a form that including some functions
> such as: view, update, insert, delete. In this case, if users have normal
> permission they are only view but users have hight permission they can
> update, insert, delete,...
>
> I use gadfly DB to create own database. In this case, can I combine this
> DB with users table of the system?
>
> Please show me how to perfome that in plone and zope.
>
> Thank you very much,
>
> Cheers,
> Cu Vinh Loc.
>
>> Send Zope-DB mailing list submissions to
>> 	zope-db at zope.org
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> 	http://mail.zope.org/mailman/listinfo/zope-db
>> or, via email, send a message with subject or body 'help' to
>> 	zope-db-request at zope.org
>>
>> You can reach the person managing the list at
>> 	zope-db-owner at zope.org
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Zope-DB digest..."
>>
>>
>> Today's Topics:
>>
>>    1. Help me. (Cu Vinh Loc)
>>    2. Re: Help me. (robert rottermann)
>>    3. Re: Help me. (Andreas Jung)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Tue, 11 Mar 2008 22:13:29 +0700 (ICT)
>> From: "Cu Vinh Loc" <cvloc at cit.ctu.edu.vn>
>> Subject: [Zope-DB] Help me.
>> To: zope-db at zope.org
>> Message-ID:
>> 	<1717.118.68.134.185.1205248409.squirrel at mail.cit.ctu.edu.vn>
>> Content-Type: text/plain;charset=utf-8
>>
>>   Dear friends,
>>
>>   I am using plone for deploying the website, but I have some problems
>> such as:
>>    - Using relational (internal) database "Gadfly database": I do not
>> know
>> where the database is stored in the Zope. Can I manipulate directly
>> this database "visual"?
>>    - Users and groups: How to assign this permissions to my website.
>>
>>   Could you show me how to implement that easily.
>>
>>   Cheers,
>>   Cu Vinh Loc.
>>
>>
>>
>>
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Tue, 11 Mar 2008 16:29:48 +0100
>> From: robert rottermann <robert at redcor.ch>
>> Subject: Re: [Zope-DB] Help me.
>> To: Cu Vinh Loc <cvloc at cit.ctu.edu.vn>
>> Cc: zope-db at zope.org
>> Message-ID: <47D6A56C.7000908 at redcor.ch>
>> Content-Type: text/plain; charset=UTF-8
>>
>> Cu Vinh Loc schrieb:
>>>   Dear friends,
>>>
>>>   I am using plone for deploying the website, but I have some problems
>>> such as:
>>>    - Using relational (internal) database "Gadfly database": I do not
>>> know
>>> where the database is stored in the Zope. Can I manipulate directly
>>> this database "visual"?
>>>    - Users and groups: How to assign this permissions to my website.
>>>
>>>   Could you show me how to implement that easily.
>>>
>>>   Cheers,
>>>   Cu Vinh Loc.
>>>
>>>
>>>
>>> _______________________________________________
>>> Zope-DB mailing list
>>> Zope-DB at zope.org
>>> http://mail.zope.org/mailman/listinfo/zope-db
>>>
>>>
>> gadfly is stored in the var directory of your zope instance.
>> however I belive it is not supported anymore.
>>
>> user and groups:
>> in your instance go to confiration  (using your browser to access a
>> running plone).
>> there you find users ang groups.
>>
>> for every object (a document, a folder) you can define who (what
>> user/group) has what permission. this you do using the sharing tab.
>>
>> robert
>>
>>
>> ------------------------------
>>
>> Message: 3
>> Date: Tue, 11 Mar 2008 16:37:18 +0100
>> From: Andreas Jung <lists at zopyx.com>
>> Subject: Re: [Zope-DB] Help me.
>> To: Cu Vinh Loc <cvloc at cit.ctu.edu.vn>, zope-db at zope.org
>> Message-ID: <[email protected][192.168.0.24]>
>> Content-Type: text/plain; charset="utf-8"
>>
>>
>>
>> --On 11. M??rz 2008 22:13:29 +0700 Cu Vinh Loc <cvloc at cit.ctu.edu.vn>
>> wrote:
>>
>>>   Dear friends,
>>>
>>>   I am using plone for deploying the website, but I have some problems
>>> such as:
>>>    - Using relational (internal) database "Gadfly database": I do not
>>> know
>>> where the database is stored in the Zope.
>>
>> Please forget Gadfly. If you are seriously thinking about using a RDBMS
>> for
>> whatever reason then consider using a real database like Mysql,
>> Postgres...
>> There are various ways for interacting with a RDBMS in Zope:
>>
>>  - using ZSQL methods (check "THe Zope Book 2.7 edition RDBMS Chapter")
>>  - wrappers based on SQLAlchemy: collective.lead or z3c.sqlalchemy or
>>    ZSQLAlchemyDA
>>
>> -aj
>> -------------- next part --------------
>> A non-text attachment was scrubbed...
>> Name: not available
>> Type: application/pgp-signature
>> Size: 194 bytes
>> Desc: not available
>> Url :
>> http://mail.zope.org/pipermail/zope-db/attachments/20080311/688f6595/attachment-0001.bin
>>
>> ------------------------------
>>
>> _______________________________________________
>> Zope-DB mailing list
>> Zope-DB at zope.org
>> http://mail.zope.org/mailman/listinfo/zope-db
>>
>>
>> End of Zope-DB Digest, Vol 56, Issue 1
>> **************************************
>>
>
>
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Wed, 12 Mar 2008 08:48:14 +0100
> From: "Charlie Clark" <charlie at egenix.com>
> Subject: Re: [Zope-DB] Re: Zope-DB Digest, Vol 56, Issue 1
> To: "Cu Vinh Loc" <cvloc at cit.ctu.edu.vn>, zope-db at zope.org
> Message-ID: <op.t7v7yofxy861uf at fuchsia.local>
> Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8
>
> Am 12.03.2008, 03:50 Uhr, schrieb Cu Vinh Loc <cvloc at cit.ctu.edu.vn>:
>
>> Dear friends,
>
>> In my website, there are many user groups and each group will have
>> different persission but I do not know how to assign permission for
>> certain users. Assume that I have a form that including some functions
>> such as: view, update, insert, delete. In this case, if users have
>> normal
>> permission they are only view but users have hight permission they can
>> update, insert, delete,...
>
> In Zope itself you do not assign permissions directly to individual users
> rather to roles. There are extensions which allow groups and Plone
> includes groups.
>
>> I use gadfly DB to create own database. In this case, can I combine this
>> DB with users table of the system?
>
> Yes, but not with Gadfly. Zope has it's own object oriented database which
> is usually sufficient for most things. If you wish to integrate Zope with
> an external database for user management then you need to look at PAS
> (Pluggable Authentication Service) or exUserFolder.
>
>> Please show me how to perfome that in plone and zope.
>
> Based on the information you've given us so far we can't do much. It is
> not clear whether you actually need to work with an external data system.
> If you only need to divide your users into groups then the user management
> in Plone should be sufficient. Look at the Plone Control Panel.
>
> And please try to use some of the abundant documentation on these topics.
>
> Charlie
> --
> Charlie Clark
> eGenix.com
>
> Professional Python Services directly from the Source
>>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
> ________________________________________________________________________
>
> :::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! ::::
>
>      eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
>      D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
>             Registered at Amtsgericht Duesseldorf: HRB 46611
>
>
> ------------------------------
>
> _______________________________________________
> Zope-DB mailing list
> Zope-DB at zope.org
> http://mail.zope.org/mailman/listinfo/zope-db
>
>
> End of Zope-DB Digest, Vol 56, Issue 2
> **************************************
>




More information about the Zope-DB mailing list