Re: [Zope-dev] How do I create a folder with subfolders, docs etc?

2001-01-13 Thread Robert Prosenc

try this:

dtml-call expr="manage_addFolder('mainfolder')"
dtml-call expr="PARENTS[0]['mainfolder'].manage_addFolder('subfolder')"

it works with zope 2.2.4

regards rob.

--------
 Robert Prosencweb:  http://www.matrixware.at/
   mail: [EMAIL PROTECTED]
   Matrixware  phone:+43(  1)   713 43 06 - 2
   postal:   Geusaugasse 39
 (Ecke Kundmanngasse)
 A-1030 Vienna, AUSTRIA

while !asleep() sheep++ 



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] uncataloging objects

2001-01-02 Thread Robert Prosenc

hi there.

i have certain problems with the catalog class. i have something over 9000
objects (all of the same type) cataloged, and it does not only take REAL
long to reindex them (but hey, i could live with that), sometimes it also
makes the python-process sort of 'hang up' - it merly crushes the whole zope
process..

the even bigger problem is that it makes trouble when uncataloging
objectsthat seems to fail completely:
  here's some code from the class-definition, where i try to uncatalog the
object:

def killMe(self):
"deletes the record. in fact the record has to be
uncataloged first."
try:
 
self.Catalog.uncatalog_object('/'+self.absolute_url(1))
except:
return "couldn't uncatalog the record."
try:
self.records.manage_delObjects(ids=self.getId())
# 'records' is a folder, in which the objects are stored
except:
return "couldn't delete the record."
return Globals.MessageDialog(
titel='Record deleted',
message='Record deleted successfully.',
)

so i let my objects kill themselves;)
what really confuses me is the fact that while performing that function, no
exeption is raised. the uncataloging-call is inside a try/except, but it
seems to be performed regulary. but: it isn't!
the object, while already deleted, remains still cataloged, which leads to
some unpleasant error-pages (key-error) when contained inside the result-set
of a search.

i have a zope 2.2.2 under linux installed, with hotfixes 2000-10-02,
2000-10-11, 2000-12-08, 2000-12-15a and 2000-12-18, zcatalog 2.2.0 and some
selfwritten stuff

does anybody have an idea what goes wrong here?

regards, rob.


--------
 Robert Prosencweb:  http://www.matrixware.at/
   mail: [EMAIL PROTECTED]
   Matrixware  phone:+43(  1)   713 43 06 - 2
   postal:   Geusaugasse 39
 (Ecke Kundmanngasse)
 A-1030 Vienna, AUSTRIA

while !asleep() sheep++ 



 winmail.dat