Hi: When I started playing with zope, I put a bunch of ZSQL objects in the dev area(/dev), and along with them there was some DTML docs that use these objects. However, I have now put all the object in one folder (say SqlObjects, still inside the dev area), but my DTML docs crash because they can't see the ZSQL objects. I know that I have to somehow tell my DTML documents of the location change, but can't figure out the right way, I tried (among many other things): <dtml-in context.dev.SqlObjects.myZSQLObject> do stuff </dtml-in> dtml document name: myDTMLdoc.html and many other combinations with no luck. Could anyboy outhere be so kind to share the right way to do it. I looked at the doc, and tried to follow the hippo example, but didn't get it to work in my case. Thanks! Jorge M. -- Jorge O. Martinez MIS Senior Associate eMediaMillWorks 1100 Mercantile Lane, Suite 119 Largo, MD 20774 E-mail => jmartinez@eMediaMillWorks.com Phone => (301)883-2482 ext. 105 Fax => (301)883-9754
"Jorge O. Martinez" wrote:
Hi:
When I started playing with zope, I put a bunch of ZSQL objects in the dev area(/dev), and along with them there was some DTML docs that use these objects. However, I have now put all the object in one folder (say SqlObjects, still inside the dev area), but my DTML docs crash because they can't see the ZSQL objects.
I know that I have to somehow tell my DTML documents of the location change, but can't figure out the right way, I tried (among many other things):
<dtml-in context.dev.SqlObjects.myZSQLObject> do stuff </dtml-in>
dtml document name: myDTMLdoc.html
and many other combinations with no luck. Could anyboy outhere be so kind to share the right way to do it. I looked at the doc, and tried to follow the hippo example, but didn't get it to work in my case.
http://www.zope.org/Members/TheJester/CleanYourTree http://www.zope.org/Members/hathawsh/TransparentFolders might help, if SqlObjects is Transparent. in addition (depends on TransparentFolder), http://www.zope.org/Members/srichter/Products/OrderedFolder and latest http://demo.iuveno-net.de/iuveno/Products/OrderedFolder ------------------------------------------------------------- Who's got only a hammer sees the world as a nail hans augustin (software developer) hans@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299
While developing a site with loads of content Data.fs is about 600 MB now Packing the database on w2k is no problem. Now we are trying to publish the site on our brand new linux server. Everything works fine now, but when I try to pack after a few adjustments, the server tells me he has run out of storage space and will not pack the database. When I check Zope/var there is a Data.fs.pack file but no Data.fs.old as there should be after packing. Being it a new server whith nothing on it but Apache and Zope there should be enough storagespace left. Any hints? TIA, Roel BTW We will reach the 2GB Limit of Zope soon, can we work around this with MountedFileStorage or ZEO on one server?
On Fri, 19 Apr 2002 11:23:23 +0200 "Roel Van den Bergh" <roel@planetinterior.com> wrote:
When I check Zope/var there is a Data.fs.pack file but no Data.fs.old as there should be after packing.
have you checked that your /var directory has enough space left on its partition... maybe it's running out of space (some distros have wired partion-policies). you can check it with a 'df'.
BTW We will reach the 2GB Limit of Zope soon, can we work around this with MountedFileStorage or ZEO on one server?
there's no such limit on zope. it's a python compiled-to-be-compatible-with-all-the-world limit! if you use the binary-installation of zope, you get an python with this 2GB limit. change to source installation and use your own compiled python-interpreter than 2 GB should be no problem. greetings, maik. -- maik jablonski http://www.sachunterricht-online.de universitaet bielefeld http://www.zfl.uni-bielefeld.de zentrum fuer lehrerbildung tlph://+49.(0).521.106.4234
Hans: Worked like a charm! Thanks a lot for your help. I went for the 'Transparent Folders' solution. Very nice. Jorge M. hans wrote:
"Jorge O. Martinez" wrote:
Hi:
When I started playing with zope, I put a bunch of ZSQL objects in the dev area(/dev), and along with them there was some DTML docs that use these objects. However, I have now put all the object in one folder (say SqlObjects, still inside the dev area), but my DTML docs crash because they can't see the ZSQL objects.
I know that I have to somehow tell my DTML documents of the location change, but can't figure out the right way, I tried (among many other things):
<dtml-in context.dev.SqlObjects.myZSQLObject> do stuff </dtml-in>
dtml document name: myDTMLdoc.html
and many other combinations with no luck. Could anyboy outhere be so kind to share the right way to do it. I looked at the doc, and tried to follow the hippo example, but didn't get it to work in my case.
http://www.zope.org/Members/TheJester/CleanYourTree http://www.zope.org/Members/hathawsh/TransparentFolders might help, if SqlObjects is Transparent. in addition (depends on TransparentFolder), http://www.zope.org/Members/srichter/Products/OrderedFolder and latest http://demo.iuveno-net.de/iuveno/Products/OrderedFolder
------------------------------------------------------------- Who's got only a hammer sees the world as a nail hans augustin (software developer) hans@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299
-- Jorge O. Martinez MIS Senior Associate eMediaMillWorks 1100 Mercantile Lane, Suite 119 Largo, MD 20774 E-mail => jmartinez@eMediaMillWorks.com Phone => (301)883-2482 ext. 105 Fax => (301)883-9754
participants (4)
-
hans -
Jorge O. Martinez -
Maik Jablonski -
Roel Van den Bergh