Re: [Zope] Auto Cataloging my ZCatalog

2007-06-22 Thread Joerg Baach
Hi Kamal,

 I tried to follow the tutorial to in the read me file building
 contact-database for PropertyTools.

Also have a look at the demo.zexp in the PropertyTools folder, import it
and look around. It quite nicely gives an idea of how the validation and
the workflow engine works...

 a.. Go to the Manage-Tab: Set Object-Type = Contact, Unlock Extensible
 Properties.

Did you also set the name of the catalog in the Catalog field? In your
example it should be 'Catalog'.

Cheers,

  Joerg
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Auto Cataloging my ZCatalog

2007-06-21 Thread kamal hamzat

Hi Joerg,

Thank you for the tips to install Abracadabra. I have also installed 
PropertyTools.
I tried to follow the tutorial to in the read me file building 
contact-database for PropertyTools.


a.. Create a folder called contacts.
a.. Create a standard_object_folder in contacts.
a.. Enter the standard_object_folder, add a PropertyTools-Object and edit 
the property-sheet. Add new properties email, homepage and phone as 
string-types.
a.. Go to the Manage-Tab: Set Object-Type = Contact, Unlock Extensible 
Properties.

a.. Enter your contacts folder.
a.. Create a Catalog with id=Catalog.
a.. Add some contacts with the AbracadabraObject.

At this point i was expecting that the contacts i added to auto catalog. But 
nothing like that happened.


Is there something i was missing out.

What i want is this:

I have 2 Zcatalogs current_catalog and archive _catalog.
I use current_catalog to store only current articles. What I do everyday is 
to create the articles (DTML Doc), clear the current_catalog and catalog the 
new artcles using the article_id. My problem here is that even if I am 
succeeded in making the articles to auto catalog, how do i handle the issue 
of clearing the catalog before cataloging the new ones. I have about 13,000 
articles in one of the sections and this is reason behind having 2 
Zcatalogs. The site displays the current articles to visitors therefore i 
have to streamline the number of records in the current_catalog.


Having it in mind that just few visitors want to view the old or previous 
artcles, the archive_catalog is use to serve it.


I will appreciate any assistance you could render to me.

thanks


- Original Message - 
From: Joerg Baach [EMAIL PROTECTED]

To: kamal hamzat [EMAIL PROTECTED]
Sent: Monday, June 18, 2007 4:38 PM
Subject: Re: [Zope] Auto Cataloging my ZCatalog



Hi Kamal,


I have a ZCatalog that my users use to catalog there news articles which
are (DTML Documents). I have already explained it to them to always
input the id for the new DTML Documents under with ids section on the
Find Objects tab on the ZMI to catalog new articles. But most time they
will not and they end up cataloging the entire articles which runs to
13,000 records.


I am a big fan of PropertyTools and Abracadabra, to be found on

http://iungo.org/products

PropertyTool allows you to define Objects (e.g. Text documents) that are
catalog-aware, e.g. index themselfes, without doing any coding.

Your users would then copy such template objects into the folders where
the content is to be stored. Abracadabra helps a lot with this 'copy and
paste' machinery.

Cheers,

 Joerg






___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Auto Cataloging my ZCatalog

2007-06-19 Thread Joerg Baach
Hi Kamal,

 I have a ZCatalog that my users use to catalog there news articles which
 are (DTML Documents). I have already explained it to them to always
 input the id for the new DTML Documents under with ids section on the
 Find Objects tab on the ZMI to catalog new articles. But most time they
 will not and they end up cataloging the entire articles which runs to
 13,000 records.

I am a big fan of PropertyTools and Abracadabra, to be found on

http://iungo.org/products

PropertyTool allows you to define Objects (e.g. Text documents) that are
catalog-aware, e.g. index themselfes, without doing any coding.

Your users would then copy such template objects into the folders where
the content is to be stored. Abracadabra helps a lot with this 'copy and
paste' machinery.

Cheers,

  Joerg




___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Auto Cataloging my ZCatalog

2007-06-18 Thread Jonathan



- Original Message - 
From: kamal hamzat [EMAIL PROTECTED]

To: zope@zope.org
Sent: Friday, June 15, 2007 12:51 PM
Subject: [Zope] Auto Cataloging my ZCatalog


Hello,

I have a ZCatalog that my users use to catalog there news articles which 
are (DTML Documents). I have already explained it to them to always input 
the id for the new DTML Documents under with ids section on the Find 
Objects tab on the ZMI to catalog new articles. But most time they will 
not and they end up cataloging the entire articles which runs to 13,000 
records.


What i want is either to be able to display error when the with ids is 
missing on Find Objects form or to be able to automate it. For example 
use a python code. I am new to python but very eager to learn.




One possible approach:

- I would not allow end-users access to the ZMI.

- Have users interact with the application through a menu driven 
interface


- Use a series of forms to collect data, then use python scripts/external 
methods to create/store objects (eg. your DTML Documents) and update the 
ZCatalog(s).




This sound interesting, but i do not have an idea of how to use python/ 
external method to create/store objects.
I will appreciate if you can point me to links or articles that have 
treated something similar.


You should read the ZopeBook chapters on scripting: 
http://plope.com/Books/2_7Edition/view


If you can make do with existing Zope object types (eg. DTML Documents, etc) 
then you can develop your application without having to create your own Zope 
Product, which means that DTML, ZPT and scripts will give you everything you 
need.


If you have to define your own object types (classes) then you will need to 
create your own Zope Product. Here are some links to product examples:


http://www.zope.org/Members/gtk/Boring
http://www.devshed.com/c/a/Zope/Creating-Zope-Products/

There is another way to create Zope classes called ZClasses (they are 
mentioned in the ZopeBook), but I would not recommend using them for a 
long-term applications as they are officially deprecated as of Zope 2.10. 
However, for 'quick  dirty' prototyping or for applications that have a 
limited lifetime they may be useful.


hth

Jonathan

http://www.zope.org/Members/gtk/Boring



___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Auto Cataloging my ZCatalog

2007-06-17 Thread kamal hamzat


- Original Message - 
From: Jonathan [EMAIL PROTECTED]

To: kamal hamzat [EMAIL PROTECTED]; zope@zope.org
Sent: Friday, June 15, 2007 5:58 PM
Subject: Re: [Zope] Auto Cataloging my ZCatalog




- Original Message - 
From: kamal hamzat [EMAIL PROTECTED]

To: zope@zope.org
Sent: Friday, June 15, 2007 12:51 PM
Subject: [Zope] Auto Cataloging my ZCatalog


Hello,

I have a ZCatalog that my users use to catalog there news articles which 
are (DTML Documents). I have already explained it to them to always input 
the id for the new DTML Documents under with ids section on the Find 
Objects tab on the ZMI to catalog new articles. But most time they will 
not and they end up cataloging the entire articles which runs to 13,000 
records.


What i want is either to be able to display error when the with ids is 
missing on Find Objects form or to be able to automate it. For example use 
a python code. I am new to python but very eager to learn.




One possible approach:

- I would not allow end-users access to the ZMI.

- Have users interact with the application through a menu driven interface

- Use a series of forms to collect data, then use python scripts/external 
methods to create/store objects (eg. your DTML Documents) and update the 
ZCatalog(s).




This sound interesting, but i do not have an idea of how to use python/ 
external method to create/store objects.
I will appreciate if you can point me to links or articles that have treated 
something similar.


Thanks
kamal 


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Auto Cataloging my ZCatalog

2007-06-15 Thread Jonathan


- Original Message - 
From: kamal hamzat [EMAIL PROTECTED]

To: zope@zope.org
Sent: Friday, June 15, 2007 12:51 PM
Subject: [Zope] Auto Cataloging my ZCatalog


Hello,

I have a ZCatalog that my users use to catalog there news articles which are 
(DTML Documents). I have already explained it to them to always input the id 
for the new DTML Documents under with ids section on the Find Objects tab 
on the ZMI to catalog new articles. But most time they will not and they end 
up cataloging the entire articles which runs to 13,000 records.


What i want is either to be able to display error when the with ids is 
missing on Find Objects form or to be able to automate it. For example use a 
python code. I am new to python but very eager to learn.




One possible approach:

- I would not allow end-users access to the ZMI.

- Have users interact with the application through a menu driven interface

- Use a series of forms to collect data, then use python scripts/external 
methods to create/store objects (eg. your DTML Documents) and update the 
ZCatalog(s).


This will give you total control over user-entered data and the actions that 
are taken (based on their input).


hth

Jonathan

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )