Re: [ZODB-Dev] [Zope-DB] How to extract users info from ZODB?

2012-01-25 Thread smita kamdar
Hi,

Thanks a lot for your response.

My exact query is when i open ZMI, there is 1 folder named
'acl_users'. When i open that folder , there is a list of users
defined there. I want to extract the details of those users in the
list. How do I extract those details? Here I am not sure that those
user details exist in ZODB or some other location.

Request you to please help me here . Any help from you is appreciated.

Regards,
Smita Kamdar

On 1/25/12, Norman Khine nor...@khine.net wrote:
 you will have to write a python script in the root of your zope
 instance something like detailed on this post:
 http://stackoverflow.com/questions/2843441/zope-plone-3-1-2-export-all-users-with-email-addresses

 hope this helps

 On Wed, Jan 25, 2012 at 10:24 AM, smita kamdar smita.kamda...@gmail.com
 wrote:
 Respected Sir/Madam,

 I am Smita Kamdar.

 I am using zope of the below specifications -

 Zope Version   (Zope 2.6.2 (binary release, python 2.1, linux2-x86),
 python 2.1.3, linux2)

 Python Version 2.1.3 (#3, Dec 13 2003, 05:04:19) [GCC 3.3.2 20031022
 (Red Hat Linux 3.3.2-1)]

 System Platform linux2


 I support an application developed  deployed on zope server. There
 are some users who are using that application. I want the details of
 those
 users. How do I extract those details from zope?

 Also, my application is using Postgresql Database. I checked all the
 database tables by connecting to the DB from my linux server. But none
 of the tables has user info. I think the user info is in the Zope Object
 Database. How do I extract the users info from ZODB?

 Request you to please help me here, as I am new to zope. Please help me.

 Thanks  Regards,
 Smita kamdar
 ___
 Zope-DB mailing list
 zope...@zope.org
 https://mail.zope.org/mailman/listinfo/zope-db



 --
 % .join( [ {'*':'@','^':'.'}.get(c,None) or
 chr(97+(ord(c)-83)%26) for c in ,adym,*)uzq^zqf ] )

___
For more information about ZODB, see http://zodb.org/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] [Zope-DB] How to extract users info from ZODB?

2012-01-25 Thread smita kamdar
Hi,

You mean to say, i click 'acl_users'  then click export ?

On 1/25/12, Malthe Borch mbo...@gmail.com wrote:
 On 25 January 2012 10:56, smita kamdar smita.kamda...@gmail.com wrote:
 My exact query is when i open ZMI, there is 1 folder named
 'acl_users'. When i open that folder , there is a list of users
 defined there. I want to extract the details of those users in the
 list. How do I extract those details? Here I am not sure that those
 user details exist in ZODB or some other location.

 Select e.g. source_users, then click export. You can choose
 XML-format if you wish.

 \malthe

___
For more information about ZODB, see http://zodb.org/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] [Zope-DB] How to extract users info from ZODB?

2012-01-25 Thread Malthe Borch
On 25 January 2012 11:14, smita kamdar smita.kamda...@gmail.com wrote:
 You mean to say, i click 'acl_users'  then click export?

That might work you as well – but if you've got something like a
pluggable authentication storage, then there's any number of plugins
inside your acl_users folder. You might want to export a particular
plugin's data instead of trying to export the whole thing.

That said, it might be better for you to start up the instance's debug
console and work with your application root object:

  $ bin/instance debug

This gets you into Python; try playing around with the app object:

   app
  ...

\malthe
___
For more information about ZODB, see http://zodb.org/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] [Zope-DB] How to extract users info from ZODB?

2012-01-25 Thread smita kamdar
Hi,

I have exported the acl_users file in zexp format. But the file is
unreadable. How can i make that file readable? i.e. In which format
should i open the zexp file?


On 1/25/12, Malthe Borch mbo...@gmail.com wrote:
 On 25 January 2012 11:14, smita kamdar smita.kamda...@gmail.com wrote:
 You mean to say, i click 'acl_users'  then click export?

 That might work you as well – but if you've got something like a
 pluggable authentication storage, then there's any number of plugins
 inside your acl_users folder. You might want to export a particular
 plugin's data instead of trying to export the whole thing.

 That said, it might be better for you to start up the instance's debug
 console and work with your application root object:

   $ bin/instance debug

 This gets you into Python; try playing around with the app object:

app
   ...

 \malthe

___
For more information about ZODB, see http://zodb.org/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] [Zope-DB] How to extract users info from ZODB?

2012-01-25 Thread Jim Fulton
On Wed, Jan 25, 2012 at 5:56 AM, smita kamdar smita.kamda...@gmail.com wrote:
 Hi,

 I have exported the acl_users file in zexp format. But the file is
 unreadable. How can i make that file readable? i.e. In which format
 should i open the zexp file?

Try using the xml export format instead.

This thread is about Zope, not ZODB. Please move the discussion to zope-dev.

Jim

-- 
Jim Fulton
http://www.linkedin.com/in/jimfulton
___
For more information about ZODB, see http://zodb.org/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev