[Zope] Simple Question

2006-12-07 Thread Nancy Donnelly
107106Hi;
The following doesn't work in a Script (Python), presumably because I can't 
quote html:

print 
htmlbodyHello, world!/body/html

return printed

What should I use instead?
TIA,
Nancy




 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com___
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] Simple Question

2006-12-07 Thread Nancy Donnelly
- Original Message 
From: Jonathan [EMAIL PROTECTED]



 
DIV {
MARGIN:0px;}



you should just be able to do:


print htmlbodyHello 
World/body/html

return printed


 
Um, yes, but it's a little more complicated than just one line :)
How do I do it with triple quote?
TIA,
Nancy





 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com___
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] Simple Question

2006-12-07 Thread Nancy Donnelly
7373- Original Message 
From: Maciej Wisniowski [EMAIL PROTECTED]

All of that worked, but so much for being simple. Upon re-analysis, what I 
need to do is call a Script (Python) from within a page template but still 
retain the container.REQUEST from the previous call. That is, page template X 
calls page template Y which calls Script (Python) Z and Z needs the 
container.REQUEST of X. Is that possible?
TIA,
Nancy





 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com___
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] Simple Question

2006-12-07 Thread Nancy Donnelly
112- Original Message 
From: Jonathan [EMAIL PROTECTED]



 
DIV {
MARGIN:0px;}



A single 'request' from a user can be handled by 
multiple python scripts (ie. you get a user request, you invoke script A, 
script 
A calls script B, script B calls script C...) and all of the scripts will have 
access to the same REQUEST data (ie. REQUEST will remain available until you 
send a response back to the user).

Hmmm. I have a problem. The following code works perfectly with the system I 
have set up on about 400 pages...something I clearly wouldn't want to 
re-edit...*except* for the 2nd line, which calls a script. Now, that second 
line *by itself* works just fine!! I've tested both the above scenarios. But in 
combination, it doesn't work. Why?

tal:block metal:define-macro=main
div tal:replace=structure here/testing /
div 
  tal:condition=here/Quotes | nothing
  tal:content=structure here/s/getRandomQuote /
table width=100% border=0 cellspacing=0 cellpadding=0 
background=images/header_bg.jpg class=header
 tr
  td width=76img src=images/header_left.jpg alt= width=76 
height=37/td
  td align=righttal:block metal:define-slot=headlinespan 
tal:replace=template/title_or_id //tal:block/td
  td width=76img src=images/header_right.jpg alt= width=76 
height=37/td
 /tr
/table
table width=95% border=0 cellspacing=0 cellpadding=0 class=main 
align=center
tr
  tdbr

!-- START TEXT SLOT -- 
tal:block metal:define-slot=text/tal:block
!-- END TEXT SLOT --
  
  /td
/tr
tr
  td

br /#160;br/

!-- START FOOTER SLOT --
tal:block metal:define-slot=footer
  span metal:use-macro=here/templates/frame_footer/macros/main/span
/tal:block
!-- END FOOTER SLOT --


  /td
/tr
/table

/tal:block


TIA,
Nancy





 

Any questions? Get answers on any topic at www.Answers.yahoo.com.  Try it now.___
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 )


[Zope] Re: My Sad Tale Of Woe

2006-11-30 Thread Nancy Donnelly
I just tried to run fsrecover on my Data.fs and got this error:

[EMAIL PROTECTED]:zope/instance2/var (145) /usr/local/zope/py235/bin/python 
/usr/local/zope/278/lib/python/ZODB/fsrecover.py Data.fs Data.fs.recover
Traceback (most recent call last):
  File /usr/local/zope/278/lib/python/ZODB/fsrecover.py, line 80, in ?
import ZODB
ImportError: No module named ZODB

Huh? What do here?
TIA,
Nancy




 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com___
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 )


[Zope] Re: My Sad Tale Of Woe

2006-11-30 Thread Nancy Donnelly
Okay, yahooing around I found I have to set the path. But I still get this 
error:

[EMAIL PROTECTED]:zope/instance2/var (177) set 
PYTHONPATH=/usr/local/zope/278/lib/python   
 [EMAIL PROTECTED]:zope/instance2/var (178) python 
/usr/local/zope/278/lib/python/ZODB/fsrecover.py Data.fs Data.fs.recover
Traceback (most recent call last):
  File /usr/local/zope/278/lib/python/ZODB/fsrecover.py, line 80, in ?
import ZODB
ImportError: No module named ZODB

The python is the correct one. I re-set python so that the one that comes up 
first in the path is the one Zope uses.
TIA,
Nancy




 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com___
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 )


[Zope] Nuked Installations! Problem w/ Rebuild!

2006-11-29 Thread Nancy Donnelly
102Hi;
I just went to copy my main HD on my server to my new 1/2 teraflop HD and it 
wiped out the zopecltsockets and the var directories! Luckly I have backups of 
the Data.fs that are recent. So, I'm rebuilding with Z29, but when I go to 
crank up an instance with runzope, I get this:

Traceback (most recent call last):
  File /usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/run.py, line 
56, in ?
run()
  File /usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/run.py, line 
19, in run
opts = _setconfig()
  File /usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/run.py, line 
48, in _setconfig
opts.realize(doc=Sorry, no option docs yet.)
  File /usr/local/src/Zope-2.9.6-final/lib/python/zdaemon/zdoptions.py, line 
273, in realize
self.load_schema()
  File /usr/local/src/Zope-2.9.6-final/lib/python/zdaemon/zdoptions.py, line 
321, in load_schema
self.schema = ZConfig.loadSchema(self.schemafile)
  File /usr/local/src/Zope-2.9.6-final/lib/python/ZConfig/loader.py, line 31, 
in loadSchema
return SchemaLoader().loadURL(url)
  File /usr/local/src/Zope-2.9.6-final/lib/python/ZConfig/loader.py, line 65, 
in loadURL
return self.loadResource(r)
  File /usr/local/src/Zope-2.9.6-final/lib/python/ZConfig/loader.py, line 
159, in loadResource
schema = ZConfig.schema.parseResource(resource, self)
  File /usr/local/src/Zope-2.9.6-final/lib/python/ZConfig/schema.py, line 27, 
in parseResource
xml.sax.parse(resource.file, parser)
  File /usr/local/lib/python2.4/xml/sax/__init__.py, line 33, in parse
parser.parse(source)
  File /usr/local/lib/python2.4/xml/sax/expatreader.py, line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
  File /usr/local/lib/python2.4/xml/sax/xmlreader.py, line 123, in parse
self.feed(buffer)
  File /usr/local/lib/python2.4/xml/sax/expatreader.py, line 207, in feed
self._parser.Parse(data, isFinal)
  File /usr/local/lib/python2.4/xml/sax/expatreader.py, line 300, in 
start_element
self._cont_handler.startElement(name, AttributesImpl(attrs))
  File /usr/local/src/Zope-2.9.6-final/lib/python/ZConfig/schema.py, line 99, 
in startElement
getattr(self, start_ + name)(attrs)
  File /usr/local/src/Zope-2.9.6-final/lib/python/ZConfig/schema.py, line 
475, in start_schema
keytype, valuetype, datatype = self.get_sect_typeinfo(attrs)
  File /usr/local/src/Zope-2.9.6-final/lib/python/ZConfig/schema.py, line 
201, in get_sect_typeinfo
datatype = self.get_datatype(attrs, datatype, null, base)
  File /usr/local/src/Zope-2.9.6-final/lib/python/ZConfig/schema.py, line 
194, in get_datatype
return self._registry.get(dtname)
  File /usr/local/src/Zope-2.9.6-final/lib/python/ZConfig/datatypes.py, line 
398, in get
t = self.search(name)
  File /usr/local/src/Zope-2.9.6-final/lib/python/ZConfig/datatypes.py, line 
423, in search
package = __import__(n, g, g, component)
  File /usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/datatypes.py, 
line 20, in ?
from ZODB.config import ZODBDatabase
  File /usr/local/src/Zope-2.9.6-final/lib/python/ZODB/__init__.py, line 20, 
in ?
from persistent import TimeStamp
  File /usr/local/src/Zope-2.9.6-final/lib/python/persistent/__init__.py, 
line 19, in ?
from cPersistence import Persistent, GHOST, UPTODATE, CHANGED, STICKY
ImportError: No module named cPersistence

What do I do? Please help...under pressure.
Nancy



___
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 )


[Zope] Permission Denied...New Build

2006-11-29 Thread Nancy Donnelly
79797975Hi;
After nuking my Zope instances by trying to copy my main HD over to my new one, 
I'm rebuilding with backups. But I'm having a problem. I built Z29 from source. 
I created an instance, specified the path, nancy as the user and a p/w. When 
I go to runzope, as root or as nancy, I get this error:

[EMAIL PROTECTED]:local/zope/2012 (108) ./bin/runzope
Traceback (most recent call last):
  File /usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/run.py, line 
56, in ?
run()
  File /usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/run.py, line 
21, in run
starter.prepare()
  File /usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/__init__.py, 
line 98, in prepare
self.startZope()
  File /usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/__init__.py, 
line 257, in startZope
Zope2.startup()
  File /usr/local/src/Zope-2.9.6-final/lib/python/Zope2/__init__.py, line 47, 
in startup
_startup()
  File /usr/local/src/Zope-2.9.6-final/lib/python/Zope2/App/startup.py, line 
60, in startup
DB = dbtab.getDatabase('/', is_root=1)
  File /usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/datatypes.py, 
line 280, in getDatabase
db = factory.open(name, self.databases)
  File /usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/datatypes.py, 
line 178, in open
DB = self.createDB(database_name, databases)
  File /usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/datatypes.py, 
line 175, in createDB
return ZODBDatabase.open(self, databases)
  File /usr/local/src/Zope-2.9.6-final/lib/python/ZODB/config.py, line 97, in 
open
storage = section.storage.open()
  File /usr/local/src/Zope-2.9.6-final/lib/python/ZODB/config.py, line 135, 
in open
quota=self.config.quota)
  File 
/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/FileStorage/FileStorage.py, 
line 112, in __init__
self._lock_file = LockFile(file_name + '.lock')
  File /usr/local/src/Zope-2.9.6-final/lib/python/ZODB/lock_file.py, line 60, 
in __init__
self._fp = open(path, 'w+')
IOError: [Errno 13] Permission denied: '/usr/local/zope/2012/var/Data.fs.lock'

What do?
TIA,
Nancy




 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com___
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 )


[Zope] My Sad Tale Of Woe

2006-11-29 Thread Nancy Donnelly
757575Hi;
Is anybody out there reading this list? Third question today, no responses, and 
boy am I in trouble. I went to backup my server's working HD on my new .5 
teraflop HD and for some reason that wiped out the /var dirs in my Zope 
instances. I have backups of the Data.fs that aren't too old, but for some 
reason I can't get a working copy of Zope installed! I follow the tar, 
configure, make, make install, make instance without throwing anything special 
at the configure, then I edit zope.conf to enter the correct effective-user, 
but when I go to runzope, it throws a cPersistence error. Well, I yahoo'd that 
and found out I had to run python setup.py build_ext -if to knock it out. But 
why should I have to do that at all? That's not standard procedure. Anyway, I 
got past that point, but now when I try runzope I get the error that follows. 
And I've tried every way I can think of to get around it. All the permissions 
are correct. Once I actually got to the point where it said Zope
 was ready to serve, could surf to the 111.222.333.444:8080 page, but try to 
get into the manage page and it won't accept my username/password. I ran 
zpasswd.py and still couldn't get in! Guys, I'm exhausted. I've been at this 
for 10 hours! Any help would really be appreciated.
Nancy

[EMAIL PROTECTED]:local/www/clients (103) ./bin/runzope
Traceback (most recent call last):
  File /usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/run.py, line 
56, in ?
run()
  File /usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/run.py, line 
21, in run
starter.prepare()
  File /usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/__init__.py, 
line 98, in prepare
self.startZope()
  File /usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/__init__.py, 
line 257, in startZope
Zope2.startup()
  File /usr/local/src/Zope-2.9.6-final/lib/python/Zope2/__init__.py, line 47, 
in startup
_startup()
  File /usr/local/src/Zope-2.9.6-final/lib/python/Zope2/App/startup.py, line 
60, in startup
DB = dbtab.getDatabase('/', is_root=1)
  File /usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/datatypes.py, 
line 280, in getDatabase
db = factory.open(name, self.databases)
  File /usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/datatypes.py, 
line 178, in open
DB = self.createDB(database_name, databases)
  File /usr/local/src/Zope-2.9.6-final/lib/python/Zope2/Startup/datatypes.py, 
line 175, in createDB
return ZODBDatabase.open(self, databases)
  File /usr/local/src/Zope-2.9.6-final/lib/python/ZODB/config.py, line 97, in 
open
storage = section.storage.open()
  File /usr/local/src/Zope-2.9.6-final/lib/python/ZODB/config.py, line 135, 
in open
quota=self.config.quota)
  File 
/usr/local/src/Zope-2.9.6-final/lib/python/ZODB/FileStorage/FileStorage.py, 
line 112, in __init__
self._lock_file = LockFile(file_name + '.lock')
  File /usr/local/src/Zope-2.9.6-final/lib/python/ZODB/lock_file.py, line 60, 
in __init__
self._fp = open(path, 'w+')
IOError: [Errno 13] Permission denied: '/usr/local/www/clients/var/Data.fs.lock'





 

Yahoo! Music Unlimited
Access over 1 million songs.
http://music.yahoo.com/unlimited___
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] My Sad Tale Of Woe

2006-11-29 Thread Nancy Donnelly
108

- Original Message 
From: Maciej Wisniowski [EMAIL PROTECTED]
To: Nancy Donnelly [EMAIL PROTECTED]
Cc: zope@zope.org
Sent: Wednesday, November 29, 2006 4:38:23 PM
Subject: Re: [Zope] My Sad Tale Of Woe

 I prefer:
 as root: configure --prefix=/opt/Zope/2.9.6, make, make install
 as zope: /opt/Zope/2.9.6/mkzopeinstance (there you'll create new user
 and new instance)
 as zope: ./zopectl start (from instance/bin)



That didn't work, but it got me thinking, and I found the problem to get one of 
my instances up. Now I'm working on the other. Still can't figure out why I 
can't build new instances, though.
Thanks,
Nancy




 

Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index___
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 )


[Zope] Problem Creating Instance

2006-11-28 Thread Nancy Donnelly
Hi;
I built Z3 from FreeBSD ports. Went to create an instance and got this error:

[EMAIL PROTECTED]:ports/www/zope3 (115) /usr/local/www/Zope3/bin/mkzopeinstance 
-d /usr/local/www/Zope3/main
Traceback (most recent call last):
  File /usr/local/www/Zope3/bin/mkzopeinstance, line 47, in module
from zope.app.server.mkzopeinstance import main
  File /usr/local/www/Zope3/lib/python/zope/app/server/mkzopeinstance.py, 
line 32, in module
from zope.app.authentication import password
  File /usr/local/www/Zope3/lib/python/zope/app/authentication/__init__.py, 
line 19, in module
import interfaces
  File /usr/local/www/Zope3/lib/python/zope/app/authentication/interfaces.py, 
line 22, in module
import zope.security.interfaces
  File /usr/local/www/Zope3/lib/python/zope/security/__init__.py, line 24, in 
module
from zope.security.management import checkPermission
  File /usr/local/www/Zope3/lib/python/zope/security/management.py, line 25, 
in module
from zope.security.interfaces import ISecurityManagement
  File /usr/local/www/Zope3/lib/python/zope/security/interfaces.py, line 20, 
in module
from zope.interface.common.interfaces import IAttributeError
  File /usr/local/www/Zope3/lib/python/zope/interface/common/interfaces.py, 
line 80, in module
classImplements(OverflowWarning, IOverflowWarning)
NameError: name 'OverflowWarning' is not defined

Now, apparently there is a vulnerability with Z3, so I could only make with 
this thrown in:
DISABLE_VULNERABILITIES=yes
TIA,
Nancy



___
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] Help! Can't Log Into ZMI!!

2006-11-27 Thread Nancy Donnelly
 When you have access to the ssh on your server i think you can set an
 'master password' 

I couldn't even pull up the ZMI password dialog box. But I figured it out. I 
changed IP addresses and needed to update that in the zope.conf because ZEO 
listens on port . 

I wonder why I can't just use the localhost address: 127.0.0.1 ? Doesn't seem 
to work.
Nancy





___
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 )


[Zope] Help! Can't Log Into ZMI!!

2006-11-26 Thread Nancy Donnelly
Hi;
I added a LDAPUserFolder instance to my Plone. It didn't connect for whatever 
reason. I rebooted the server. Now I can't log in! It just hangs. Actually, I 
rebooted a day later and did lots of work in between, so it's not like I could 
carefully edit the Data.fs. What do I do?
Nancy



___
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 )


[Zope] New HD, Moving ZODB

2006-11-22 Thread Nancy Donnelly
Hi;
I've added a new HD to my server. I have 2 instances of Zope 2.7.8. I need to 
move at least one instance of ZODB to the new HD (I can easily move them both 
if necessary). Is there a how-to on how to do this, or, if not, how do I do it?
TIA,
Nancy



___
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] New HD, Moving ZODB

2006-11-22 Thread Nancy Donnelly
- Original Message 
From: Jonathan [EMAIL PROTECTED]


 My mistake, i misread and thought you were installing on a new server, not 
 new harddrive! (so its not 
 necessary to re-install zope)
 
Okay, but do you know what I need to do to move the ZODB to the new HD?
TIA,
Nancy

___
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] New HD, Moving ZODB

2006-11-22 Thread Nancy Donnelly
- Original Message 
From: robert rottermann [EMAIL PROTECTED]


 i believe, nancy is using a windows box.

Wash your mouth out with soap! I use FreeBSD and I'm proud of it :)
Nancy

___
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] New HD, Moving ZODB

2006-11-22 Thread Nancy Donnelly
7171- Original Message 
From: Jonathan [EMAIL PROTECTED]



 
DIV {
MARGIN:0px;}



 As someone else suggested, the easiest thing to do 
is create new 'instance' directories 
 (eg. .../var, .../log, etc) on the new 
HD; move the files from the old HD to the new HD, 
 then create a symlink for the 
directories on the old HD to the new HD.

 
Oh, that does sound easy indeed! :)
Thanks, all
Nancy




___
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 )


[Zope] Emergency Meltdown! Help!

2006-11-14 Thread Nancy Donnelly
108Hi;I have two Zope instances. I user a web server called LightTPD. I was trying to hook up an SSL cert to one of the instances, so I made some modifications in it's conf file. Suddenly, I discovered that I couldn't pull up any of the Web pages on that instance! I also found that the MySQL connection to the database for one of the clients on that instance was broken. I edited out my changes in the LightTPD config file. Nothing. I still had my Apache configuration working, so I tried with that. Same problem. I could still get into the ZMI all this time using the IP address; however, I couldn't pull down
 Web pages, even typing out the whole path with the port number. I thought maybe the Data.fs somehow got corrupted, so I swapped it out with a backup. I could boot it, but I couldn't log into the ZMI at all! So, then I swapped it back for the current one, tried to get into the ZMI, but it kept trying to authenticate and wouldn't take my p/w! So I figured I'd just reboot the machine again. Now, it just pretends to load the ZMI page but never loads it! Meanwhile, everything, including database connections, work fine on the other instance. What on earth could be going on here??? HELP!!!Nancy___
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 )


[Zope] Re: Emergency Meltdpwn! Help!

2006-11-14 Thread Nancy Donnelly
77Paul Winkler wrote: First thing I'd do is find the event log and see what's in it recently...Nothing unusual!Nancy___
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] Emergency Meltdown! Help!

2006-11-14 Thread Nancy Donnelly
109All is back to normal. Apparently, an obsolete script I had running went haywire, probably because of some obsolete server call to another server that got tweaked, and that sent everything crazy.Thanks,Nancy___
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] Can't Track Simple Bug

2006-11-13 Thread Nancy Donnelly
- Original Message From: Chris Withers [EMAIL PROTECTED]To: Nancy Donnelly [EMAIL PROTECTED] From what Tres has said, you should build yourself a new Zope instance  with mkzopeinstance.py and then install any products you need int othe  new instance, then finalyl move the Data.fs into it.  You config and control files are old beyond help...Sounds like, but I'll work on it later. It works for the moment ;)Thanks,Nancy___
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 )


[Zope] Mail Boxer on Qmail, Anyone?

2006-11-13 Thread Nancy Donnelly
Hi;I sent this over the weekend but I think it got overlooked. I'm
running into trouble getting Mail Boxer to play nicely with qMail. I've
installed and tested Maildrop Host. It works ok, so that potential bug
is eliminated. I was confused as to where to put smtp2zope.py, so I put
it here: /usr/bin/smtp2zope.py and symlinked it here: /usr/local/sbin/smtp2zope.py /var/qmail/bin/smtp2zope.pyjust to be safe ;)One of the how-to's I read said I should create the following file: /var/qmail/aliases/.qmail-foowhere "foo" is the name of my list, and enter the following line by itself: foo: "|smtp2zope.py http://127.0.0.1:8080/foo/mailinglist/manage_mailboxer
 2"where the second "foo/mailinglist" is my path to the Mail Boxer instance.and finally I send a message to [EMAIL PROTECTED] but I didn't get anything back.Did I get subscribed? How do I know? I don't see any entry in the "maillist" in the properties tab.Also, one of the how-to's said I should set up a forwarding email address. That's not necessary, is it?TIA,Nancy___
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 )


[Zope] Restricted Traverse

2006-11-11 Thread Nancy Donnelly
Could someone tell me what's wrong with this code?span tal:define="global url python:here.absolute_url(relative=None) + '/index_frame.pt#quotes'"/span tal:define="root python:container.restrictedTraverse(url)" tal:replace="structure python:here.printSiteMap(root, 12)"/--or--span tal:define="root python:container.restrictedTraverse(here.absolute_url(relative=None) + '/index_frame.pt#quotes')" tal:replace="structure python:here.printSiteMap(root, 12)"/I'm trying to automate that restrictedTraverse.TIA,Nancy___
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] Restricted Traverse

2006-11-11 Thread Nancy Donnelly
- Original Message From: Andrew Milton [EMAIL PROTECTED] absolute url returns a string prefixed with "http(s)://", unless the relative parameter evaluates to true None doesn't do that. Try using relative = TrueYou mean like this?span tal:define="global url python:here.absolute_url(relative=True) + '/index_frame.pt#quotes'"/span tal:define="root python:container.restrictedTraverse(url)" tal:replace="structure python:here.printSiteMap(root, 12)"/It didn't like that
 either :(Another idea?TIA,Nancy-- Andrew Milton[EMAIL PROTECTED]___
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 )


[Zope] [Plone-Users] Killing the Postmaster

2006-11-11 Thread Nancy Donnelly
- Original Message From: Alexander Limi [EMAIL PROTECTED] Plone 2.1.4 works fine on Zope 2.7.8.Will I run into all sorts of upgrade issues??TIA,Nancy___
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 )


[Zope] Mail Boxer on Qmail

2006-11-11 Thread Nancy Donnelly
Hi;I'm running into trouble getting Mail Boxer to play nicely with qMail. I've installed and tested Maildrop Host. It works ok, so that potential bug is eliminated. I was confused as to where to put smtp2zope.py, so I put it here: /usr/bin/smtp2zope.py and symlinked it here: /usr/local/sbin/smtp2zope.py /var/qmail/bin/smtp2zope.pyjust to be safe ;)One of the how-to's I read said I should create the following file: /var/qmail/aliases/.qmail-foowhere "foo" is the name of my list, and enter the following line by itself: foo: "|smtp2zope.py http://127.0.0.1:8080/foo/mailinglist/manage_mailboxer
 2"where the second "foo/mailinglist" is my path to the Mail Boxer instance.and finally I send a message to [EMAIL PROTECTED] but I didn't get anything back.Did I get subscribed? How do I know? I don't see any entry in the "maillist" in the properties tab.Also, one of the how-to's said I should set up a forwarding email address. That's not necessary, is it?TIA,Nancy___
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] Can't Track Simple Bug

2006-11-10 Thread Nancy Donnelly
- Original Message From: Chris Withers [EMAIL PROTECTED]First up, rifling through my trash, I noticed a response of yours to a previous email that I missed. Concerning the line of my script:try: mailhost=getattr(context, context.superValues('Mail Host')[0].id)what should I substitute for "Mail Host" if I want to call Maildrop? I tried "Maildrop Host" but for some crazy reason the script redirected to a slightly different URL and threw an error. (That URL should have worked anyway due to inheritance, so I don't know what's up.) This is the information in the Maildrop README that
 wasn't helpful in this regard: - Now you can create emails using e.g. the dtml-sendmail tag and point the sendmail tag to the Maildrop Host instance using the mailhost="XYZ" argument inside the sendmail tag, or by using the MailHost API (see the Zope Help System).Now, the rest ;) Not really, it's a snippet for inserting into zope.conf alongside the  other logging configuration. You appear to have chopped off the %, which  you need to make it a valid zope.conf import statement.Okay, corrected and entered into zope.confYes, Chris, the below is, in fact, my zope.conf file. I inherited this box. All I can tell you is the below code does, in fact, work. I've added yours to it and now we'll see if they play nicely together ;) I am running Zope 2.7.8. I
 welcome any suggestions, of course :) # Zope zctl settings ZOPE_HOME = pjoin(HERE, '../..', 'ZopeSoftwareHome') ZOPE_OPTS = '-p - -D' ZOPE_PORT = 7080 ZOPE_LOG = pjoin(HERE, 'var', 'debug.log') ZOPE_ENV['PRODUCTS_PATH'] = ("%(SOFTWARE_PRODUCTS)s:" + pjoin(HERE, '..', 'OtherProducts') + ":%(INSTANCE_PRODUCTS)s")  ZOPE_ENV['STUPID_LOG_FILE'] = ZOPE_LOG # ZEO Environment settings #ZEO['ZEO_SERVER_NAME'] = 'www.example.com' ZEO['ZEO_SERVER_PORT'] =  # ZEO zctl settings ZEO_WAIT_BAILOUT = 160 # Don't try for more than num secondsTIA,Nancy___
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 )


[Zope] Re: Can't Track Simple Bug

2006-11-10 Thread Nancy Donnelly
75From: Tres Seaver [EMAIL PROTECTED] The script you are using to start Zope with looks like it must be 'zctl', the ancient precursor to the current 'zopectl': it 'execed' its Python config file (which is what you have here). That version was never shipped with Zope, and has not been in active use by its authors (I'm one of them) for more than three years now. Hmm. Okay. I took over this box recently. So, how do I change things? Here's my current zopectl:#!
 /bin/shPYTHON="/usr/local/zope/py235/bin/python"ZOPE_HOME="/usr/local/zope/278"INSTANCE_HOME="/usr/local/zope/instance2"CONFIG_FILE="/usr/local/zope/instance2/etc/zope.conf"ZEO_CONFIG_FILE="/usr/local/zope/instance2/var/zeo/etc/zeo.conf"SOFTWARE_HOME="/usr/local/zope/278/lib/python"PYTHONPATH="$SOFTWARE_HOME"export PYTHONPATH INSTANCE_HOME SOFTWARE_HOMEZEOCTL="$SOFTWARE_HOME/Zope/Startup/zeoctl"ZDCTL="$SOFTWARE_HOME/Zope/Startup/zopectl.py"# exec "$PYTHON" "$ZEOCTL" -C "$ZEO_CONFIG_FILE" "$@"exec "$PYTHON" "$ZDCTL" -C "$CONFIG_FILE" "$@"And, of course, my current zope.conf:  # Zope zctl settings ZOPE_HOME = pjoin(HERE, '../..', 'ZopeSoftwareHome') ZOPE_OPTS = '-p - -D' ZOPE_PORT = 7080 ZOPE_LOG = pjoin(HERE, 'var', 'debug.log') ZOPE_ENV['PRODUCTS_PATH'] = ("%(SOFTWARE_PRODUCTS)s:" + pjoin(HERE,
 '..', 'OtherProducts') + ":%(INSTANCE_PRODUCTS)s") ZOPE_ENV['STUPID_LOG_FILE'] = ZOPE_LOG # ZEO Environment settings #ZEO['ZEO_SERVER_NAME'] = 'www.example.com'112 ZEO['ZEO_SERVER_PORT'] =  # ZEO zctl settings ZEO_WAIT_BAILOUT = 160 # Don't try for more than num secondsTIA,Nancy___
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] Can't Track Simple Bug

2006-11-09 Thread Nancy Donnelly
7373- Original Message From: Chris Withers [EMAIL PROTECTED] p   tal:on-error="string: mailScript() isn't defined! This should be in your *s* dir  with the default
 installation."  tal:replace="structure python:here.mailScript()" / This is extremely bad programming style.  Look at customising standard_error_message if you want to make error messages prettier...Yeah, the above is for me :) I have customized the standard error msg for the visitor. You may also want to look at MailingLogger (http://www.simplistix.co.uk/software/zope/mailinglogger103) so that you get emailed salient log entries...Nice! I like that! But I'm confused on one thing. In your
 instructions, you say:import Products.MailingLoggerI assume that's at the instance level, where the zope.conf file is? That's a command, correct? Not something entered into the zope.conf file. I issued that command at the prompt and got this:# import Products.MailingLoggerimport: unable to open X server `'.Is there something I should edit first? Like zope.conf? Your instructions seem to indicate first issue the command, then edit zope.conf. And I'm confused as to if I should be editing zope.conf or something else, because my zope.conf file doesn't look like, for example, an httpd.conf file, where one would have syntax similar to what you propose. Here's my zope.conf:# Zope zctl settingsZOPE_HOME = pjoin(HERE, '../..', 'ZopeSoftwareHome')ZOPE_OPTS = '-p - -D'ZOPE_PORT = 7080ZOPE_LOG = pjoin(HERE, 'var', 'debug.log')ZOPE_ENV['PRODUCTS_PATH'] = ("%(SOFTWARE_PRODUCTS)s:" + pjoin(HERE, '..', 'OtherProducts') +
 ":%(INSTANCE_PRODUCTS)s")ZOPE_ENV['STUPID_LOG_FILE'] = ZOPE_LOG# ZEO Environment settings#ZEO['ZEO_SERVER_NAME'] = 'www.example.com'ZEO['ZEO_SERVER_PORT'] = # ZEO zctl settingsZEO_WAIT_BAILOUT = 160 # Don't try for more than num secondsAlso, can you tell me how to enter a variable into the eventlog "to" email address so that I could change it in a file on the server whenever I wanted to? I've been wondering how to do that.TIA,Nancy___
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 )


[Zope] Troubleshooting Maildrop Host

2006-11-09 Thread Nancy Donnelly
102Hi;I can't get Maildrop Host to work. I have a working SMTP, Python 2.3.5, Zope 2.7.8, and am running FreeBSD. I've edited the config.py file thus:PYTHON="/usr/bin/python"MAILDROP_HOME="/tmp/maildrop"MAILDROP_SPOOL="/tmp/maildrop/spool-1; /tmp/maildrop/spool-2; /tmp/maildrop/spool-3;
 /tmp/maildrop/spool-4"MAILDROP_VAR="/tmp/maildrop/var"MAILDROP_PID_FILE="/var/run/maildrop/maildrop.pid"MAILDROP_LOG_FILE="/var/log/maildrop/maildrop.log"SMTP_HOST="localhost"SMTP_PORT=25MAILDROP_INTERVAL=120DEBUG=0DEBUG_RECEIVER=""MAILDROP_BATCH=0MAILDROP_TLS=0MAILDROP_LOGIN=""MAILDROP_PASSWORD=""WAIT_INTERVAL=0.0ADD_MESSAGEID=1I've fired up ./start_maildrop from the Products/Maildrop/maildrop/bin folder and a ps wax|grep maildrop yields a favorable result.I've added an instance of Maildrop through the ZMI.It appears I can reach the mail host because I use this code in my script:try: mailhost=getattr(context, context.superValues('Mail Host')[0].id)except: raise AttributeError, "Can't find a Mail Host object"and the error is not raised (rather, an error from a following page is raised, although perhaps I'm mistaken here?).Yet, when I
 go to fire up the script, the email is not sent. What am I doing wrong here?TIA,Nancy___
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] How To Convert Files To Page Templates?

2006-11-08 Thread Nancy Donnelly
73- Original Message From: Maciej Wisniowski [EMAIL PROTECTED] I'm not sure whether it is what you're looking for but it may be one of simplest solutions that you may change if you need to. As
 Andreas said before, ask a specific question :) 1. Log into ZMI and create a folder called 'Myfiles' 2. upload your files via FTP or something into 'Myfiles' folder and as you said before they should appear as 'File' objects 3. Create a file 'files2zpt.py' in the 'Extensions/' folder of your Zope instance (filesystem, not ZMI) and fill it with this code: # from Products.PageTemplates.ZopePageTemplate import ZopePageTemplate def files2zpt(self):  for fname, fobj in self.objectItems('File'):  self._setObject(fname+'_zpt', ZopePageTemplate(fname+'_zpt',  str(fobj.data)))  return 'ok' #- 4. Go back to ZMI and to 'Myfiles/' folder and create
 'External method'  there by simply filling all fields in the add form as 'files2zpt' 5. Click on your new External method files2zpt in ZMI and 'Test' it :) Thats allThank you so much! Worked like a charm ;)Nancy___
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] How To Convert Files To Page Templates?

2006-11-08 Thread Nancy Donnelly
72- Original Message From: Chris Withers [EMAIL PROTECTED]Nancy Donnelly wrote: That helped a lot! I yahoo'd (can't google any more since they've sold out to  the interests gathering our personal data for Homeland Security) "put_factory"  and got this code snippet:  if ext == 'dtml':   from OFS.DTMLDocument import DTMLDocument
   return DTMLDocument( '', __name__=name )  So...how would I rewrite that to change it into a page template?  Here's a more complete PUT_factory that I use:code follows...That's perfect! Thank you!Nancy___
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 )


[Zope] Can't Track Simple Bug

2006-11-08 Thread Nancy Donnelly
7474Hi;I have two Zope instances. On one of them, I have a boilerplate script that I use for all my clients' Web sites. Works fine. Has for years. I decided to copy it over to my other instance and I get an error. Here's the line in question:p  tal:on-error="string: mailScript() isn't defined! This should be
 in your *s* dir with the default installation." tal:replace="structure python:here.mailScript()" /When the page that has this code in it is called by a form (that has the *s* directory in the URL), it throws the tal:on-error message. Even if I surf directly to that page and put the *s* dir in the URL, it still throws the error! Even if I rewrite the tal:replace to accommodate the dir:here.s.mailScript()How in the world is it doing that? The script also lives in that dir. Strange...TIA,Nancy___
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] Can't Track Simple Bug

2006-11-08 Thread Nancy Donnelly
7171- Original Message From: Maciej Wisniowski [EMAIL PROTECTED] Use just: p
 tal:replace="structure python:here.mailScript()" / and tell us what error do you see now.Silly me! I got so caught up in that error that I didn't think to check the error log! It said it couldn't find a Mail Host. Now, on the first instance, I just added the regular plain vanilla mail host, but on this instance, I got fancy with a Maildrop Host. Well, it didn't like that. It took the regular mail host just fine. But why didn't it like maildrop?Thanks,Nancy___
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] How To Convert Files To Page Templates?

2006-11-07 Thread Nancy Donnelly
83- Original Message From: Chris Withers [EMAIL PROTECTED]Nancy Donnelly wrote: Hi; I'm redoing a bunch of documents on
 a Zope site on my PC and I realized it  would be easier to simply delete all the old ones and upload all the new ones.  But if I do that, they'll load as "files", not "page templates".  How are you creating these new objects?In a text editor. I'd hazard a guess that you're looking to create a PUT_factory so that  objects of the correct type are created when you upload things via FTP  or WebDAV...That helped a lot! I yahoo'd (can't google any more since they've sold out to the interests gathering our personal data for Homeland Security) "put_factory" and got this code snippet:if ext == 'dtml':  from OFS.DTMLDocument import DTMLDocument
  return DTMLDocument( '', __name__=name )So...how would I rewrite that to change it into a page template? And, more importantly, where is the documentation to do so? Yahooing didn't help on this. I went to my Zope installation to:{INSTALLATION}/lib/python/OFSto hunt around, but no script pointing to some "PTDocument" like there is with DTML.TIA,Nancy___
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] How To Convert Files To Page Templates?

2006-11-07 Thread Nancy Donnelly
- Original Message From: Paul Winkler [EMAIL PROTECTED]On Tue, Nov 07, 2006 at 03:14:40AM -0800, Nancy Donnelly wrote: That helped a lot! I yahoo'd (can't google any more since they've sold out to the interests gathering  our personal data for Homeland Security) "put_factory" and got this code snippet:  if ext == 'dtml':   from OFS.DTMLDocument import DTMLDocument  return DTMLDocument( '', __name__=name )  So...how would I rewrite that to change it into a page template? And, more importantly,
 where is  the documentation to do so? Yahooing didn't help on this. I went to my Zope installation to: {INSTALLATION}/lib/python/OFS to hunt around, but no script pointing to some "PTDocument" like there is with DTML. I think you want ZopePageTemplate from lib/python/Products/PageTemplates/Hmm. Looking in that I find these two files that *might* be appropriate:PageTemplates.pyZopePageTemplates.pyThe latter is a wrapper for the former. The former defines the following class:class PageTemplate(Base):If this is the class I want to use, why only one argument? My example above cites exactly two arguments. And it is not a "base" I need to pass, is it?The latter defines the following class:class ZopePageTemplate(Script, PageTemplate, Historical,
 Cacheable, Traversable, PropertyManager):Why so many arguments? It doesn't look like those are any of the arguments I need to pass. None of the other files in that folder appeared to make sense, either.I confess I'm still quite green at programming, so if I'm wrong, please don't be too harsh ;) Any direction would be appreciated.TIA,Nancy___
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 )


[Zope] How To Convert Files To Page Templates?

2006-11-06 Thread Nancy Donnelly
Hi;I'm redoing a bunch of documents on a Zope site on my PC and I realized it would be easier to simply delete all the old ones and upload all the new ones. But if I do that, they'll load as "files", not "page templates". I know there's a way to convert between the two, but I don't remember how. Can someone help?TIA,Nancy___
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 )


[Zope] tal:replace and Traverse

2006-11-03 Thread Nancy Donnelly
Hi;
I can do this:

div tal:replace="template/comment"/div


and fetch my variable from the document. However, I want to be able to fetch it from another document, like this:

div tal:replace="Essential_Documentation/Rosenthal_Interview_frame.pt/template/comment"/div

But that syntax doesn't work. How do I do it?
TIA,
Nancy___
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 )