[Zope] Exporting zodb data (Urgent)
Paul Winkler
pw_lists@slinkp.com
Tue, 1 Jul 2003 02:40:25 -0400
On Tue, Jul 01, 2003 at 11:35:17AM -0700, Sukhwinder Singh wrote:
> I have already wrtten that icon of person-at-desk shows word "specialist"
ok, sorry, i missed that.
> There are many products listed here. Product I am interested in is named
> school with icon of an open box.
> Other products are with closed box icon. Here is the complete list:
>
> ArmTriggersHack (Installed product ArmTriggersHack) 2001-12-13 11:33
hmm, I have no idea what that one is, or if it's relevant.
> -->School 2003-03-17 16:49
ok...
> ZPatterns (Installed product ZPatterns
> (ZedPatterns-0-4-3p2-transactionagents)) 2001-12-13 11:33
hmm. ZPatterns is a rather complex system which I've never used.
If your application uses it, i'm afraid I can't help with that.
everything else looks like standard stuff.
> > This means that in order for you to use an attribute of
> > a result object, the catalog must be configured to keep this data
> > about this object. This is done on the Metadata tab of the catalog
> > instance.
> > So, go to one of these Catalogs, click on it, then click the
> > Metadata tab. You should see that there is a Metadata entry for
> > all the attributes that are accessed in the external method.
>
> Is cataloge an object which represents the zodb (data.fs) file? How can I
> access this in catalog ZMI?
ZCatalog is described here:
http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/SearchingZCatalog.stx
There is evidently at least one instance of ZCatalog catalog in your
zope site somewhere, named Catalog, because it's referred to by
that name in the External Method you posted. So search for things
with the id "Catalog".
> >Is there one Catalog for Employees, one for Students, etc.?
>
> Unless I know what catalog is, I can't answer this question?
see above.
> >def extract_employees(self):
> > catalog = self.path.to.where.the.catalog.lives.Catalog
>
> example path?
yes, it was an example. I don't know where this Catalog is in your site.
It's evidently in or above the folder that contains the External Method
you posted.
> >e_id = employee.id
>
> How do you know that there was id attribute?
I copied that from the external method you posted!
> >certainly not! for that kind of job, acquisition is your friend.
> >You could have one external method that calls several functions,
> >one for each kind of data to export (employees, etc.), much like
> >you have now. Put the external method at the top of the application
> >folder tree.
>
> OK I put that external method in root folder then? What external method
> should look like? Like that example above?
something like that. I can't be more specific because I don't
have your application in front of me.
> I think you will eventually solve my problem.
Hmmm. I've actually given a lot more help than I planned on already.
I don't mind helping but I am starting to wonder why you are being
paid for this and I am not :)
--
Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's PICO-CRANK IN YOUR BRAIN!
(random hero from isometric.spaceninja.com)