Mailing List Archive

Re: [ZODB-Dev] How to extract users info from ZODB?
Hi,

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

On 1/25/12, Malthe Borch <mborch@gmail.com> wrote:
> On 25 January 2012 10:56, smita kamdar <smita.kamdar00@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
>
_______________________________________________
Zope-DB mailing list
Zope-DB@zope.org
https://mail.zope.org/mailman/listinfo/zope-db
Re: [ZODB-Dev] How to extract users info from ZODB? [ In reply to ]
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 <mborch@gmail.com> wrote:
> On 25 January 2012 11:14, smita kamdar <smita.kamdar00@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
>
_______________________________________________
Zope-DB mailing list
Zope-DB@zope.org
https://mail.zope.org/mailman/listinfo/zope-db
Re: [ZODB-Dev] How to extract users info from ZODB? [ In reply to ]
Hiya,

Am 25.01.2012, 11:56 Uhr, schrieb smita kamdar <smita.kamdar00@gmail.com>:

> 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?

I'm sorry but it's obvious that you are new top Zope. You should probably take the time to read the basic documentation:

http://docs.zope.org/zope2/zope2book/

Documentation of the ZODB:

http://www.zodb.org/

Malthe suggested that your "export as XML" and not as ZEXP. ZEXP is a binary format native to Zope. You can read it with Python but then you can read the ZODB directly with Python as well.

Just because your application also keeps application data in Postgres does not mean that all data such as your users is kept in Postgres. One would hope that your application is sufficiently well documented to explain which data is not stored in the ZODB as, except in rare cases such as RelStorage, the majority of data of a Zope server will be stored in the ZODB.

Finally, I must point out that Zope 2.6 is a very old and no longer supported release.

Charlie Clark
--
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 our new mxODBC.Connect Python Database Interface 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
http://www.egenix.com/company/contact/
_______________________________________________
Zope-DB mailing list
Zope-DB@zope.org
https://mail.zope.org/mailman/listinfo/zope-db