[Zope-Checkins] SVN: Zope/branches/philikon-local-components/lib/python/zope/ Switch a couple more zope.* packages to Jim's adapter branch

2006-04-04 Thread Philipp von Weitershausen
Log message for revision 66361:
  Switch a couple more zope.* packages to Jim's adapter branch
  Add the ones I factored out of zope.app recently
  

Changed:
  _U  Zope/branches/philikon-local-components/lib/python/zope/

-=-

Property changes on: Zope/branches/philikon-local-components/lib/python/zope
___
Name: svn:externals
   - app  
svn://svn.zope.org/repos/main/Zope3/branches/jim-adapter/src/zope/app
cachedescriptors -r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/cachedescriptors
component
svn://svn.zope.org/repos/main/Zope3/branches/jim-adapter/src/zope/component
configuration-r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/configuration
documenttemplate -r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/documenttemplate
event-r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/event
exceptions   -r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/exceptions
hookable -r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/hookable
i18n -r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/i18n
i18nmessageid-r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/i18nmessageid
interface
svn://svn.zope.org/repos/main/Zope3/branches/jim-adapter/src/zope/interface
modulealias  -r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/modulealias
pagetemplate -r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/pagetemplate
proxy-r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/proxy
publisher-r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/publisher
schema   -r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/schema
security 
svn://svn.zope.org/repos/main/Zope3/branches/jim-adapter/src/zope/security
server   -r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/server
structuredtext   -r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/structuredtext
tal  -r 41215 svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/tal
tales-r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/tales
testing  -r 40941 
svn://svn.zope.org/repos/main/zope.testing/trunk/src/zope/testing
thread   -r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/thread
deprecation  
svn://svn.zope.org/repos/main/Zope3/branches/jim-adapter/src/zope/deprecation
dottedname   -r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/dottedname
formlib  -r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/formlib
index-r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/index
testbrowser  -r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/testbrowser
deferredimport   
svn://svn.zope.org/repos/main/Zope3/branches/jim-adapter/src/zope/deferredimport

   + app  
svn://svn.zope.org/repos/main/Zope3/branches/jim-adapter/src/zope/app
cachedescriptors -r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/cachedescriptors
component
svn://svn.zope.org/repos/main/Zope3/branches/jim-adapter/src/zope/component
configuration-r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/configuration
documenttemplate -r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/documenttemplate
event-r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/event
exceptions   -r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/exceptions
hookable -r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/hookable
i18n 
svn://svn.zope.org/repos/main/Zope3/branches/jim-adapter/src/zope/i18n
i18nmessageid
svn://svn.zope.org/repos/main/Zope3/branches/jim-adapter/src/zope/i18nmessageid
interface
svn://svn.zope.org/repos/main/Zope3/branches/jim-adapter/src/zope/interface
modulealias  -r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/modulealias
pagetemplate -r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/pagetemplate
proxy
svn://svn.zope.org/repos/main/Zope3/branches/jim-adapter/src/zope/proxy
publisher-r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/publisher
schema   -r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/schema
security 
svn://svn.zope.org/repos/main/Zope3/branches/jim-adapter/src/zope/security
server   -r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/server
structuredtext   -r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/structuredtext
tal  
svn://svn.zope.org/repos/main/Zope3/branches/jim-adapter/src/zope/tal
tales-r 41215 
svn://svn.zope.org/repos/main/Zope3/trunk/src/zope/tales
testing  -r 40941 
svn://svn.zope.org/repos/main/zope.testing/trunk/src/zope/testing
thread   -r 

[Zope-Checkins] SVN: Zope/branches/philikon-local-components/lib/python/TAL/TALInterpreter.py Only use immutable i18n messages now.

2006-04-04 Thread Philipp von Weitershausen
Log message for revision 66362:
  Only use immutable i18n messages now.
  

Changed:
  U   Zope/branches/philikon-local-components/lib/python/TAL/TALInterpreter.py

-=-
Modified: 
Zope/branches/philikon-local-components/lib/python/TAL/TALInterpreter.py
===
--- Zope/branches/philikon-local-components/lib/python/TAL/TALInterpreter.py
2006-04-04 06:32:59 UTC (rev 66361)
+++ Zope/branches/philikon-local-components/lib/python/TAL/TALInterpreter.py
2006-04-04 06:33:55 UTC (rev 66362)
@@ -24,11 +24,7 @@
 from DocumentTemplate.DT_Util import ustr
 from ZODB.POSException import ConflictError
 
-# BBB 2005/10/10 -- MessageIDs are to be removed for Zope 3.3
-import zope.deprecation
-zope.deprecation.__show__.off()
-from zope.i18nmessageid import Message, MessageID
-zope.deprecation.__show__.on()
+from zope.i18nmessageid import Message
 
 from TALDefs import attrEscape, TAL_VERSION, METALError
 from TALDefs import isCurrentVersion
@@ -36,8 +32,7 @@
 from TALGenerator import TALGenerator
 from TranslationContext import TranslationContext
 
-# This will become (MessageID, Message) when we use Zope 3.1 as a base:
-I18nMessageTypes = Message, MessageID
+I18nMessageTypes = (Message,)
 
 # TODO: In Python 2.4 we can use frozenset() instead of dict.fromkeys()
 BOOLEAN_HTML_ATTRS = dict.fromkeys([

___
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins


[Zope-Checkins] SVN: Products.Five/branches/philikon-local-components/i18n.py Only use immutable i18n messages now.

2006-04-04 Thread Philipp von Weitershausen
Log message for revision 66363:
  Only use immutable i18n messages now.
  

Changed:
  U   Products.Five/branches/philikon-local-components/i18n.py

-=-
Modified: Products.Five/branches/philikon-local-components/i18n.py
===
--- Products.Five/branches/philikon-local-components/i18n.py2006-04-04 
06:33:55 UTC (rev 66362)
+++ Products.Five/branches/philikon-local-components/i18n.py2006-04-04 
06:42:48 UTC (rev 66363)
@@ -21,13 +21,8 @@
 from zope.i18n.interfaces import ITranslationDomain, IUserPreferredLanguages
 from zope.component import queryUtility
 from zope.publisher.browser import BrowserLanguages
+from zope.i18nmessageid import Message
 
-# BBB 2005/10/10 -- MessageIDs are to be removed for Zope 3.3
-import zope.deprecation
-zope.deprecation.__show__.off()
-from zope.i18nmessageid import MessageID, Message
-zope.deprecation.__show__.on()
-
 class FiveTranslationService:
 Translation service that delegates to ``zope.i18n`` machinery.
 
@@ -35,7 +30,7 @@
 # regarding fallback and Zope 2 compatability
 def translate(self, domain, msgid, mapping=None,
   context=None, target_language=None, default=None):
-if isinstance(msgid, (Message, MessageID)):
+if isinstance(msgid, Message):
 domain = msgid.domain
 default = msgid.default
 mapping = msgid.mapping

___
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins


[Zope-Checkins] SVN: Zope/branches/philikon-local-components/lib/python/OFS/ObjectManager.py Security declarations for IPossibleSite API.

2006-04-04 Thread Philipp von Weitershausen
Log message for revision 66365:
  Security declarations for IPossibleSite API.
  

Changed:
  U   Zope/branches/philikon-local-components/lib/python/OFS/ObjectManager.py

-=-
Modified: 
Zope/branches/philikon-local-components/lib/python/OFS/ObjectManager.py
===
--- Zope/branches/philikon-local-components/lib/python/OFS/ObjectManager.py 
2006-04-04 06:43:41 UTC (rev 66364)
+++ Zope/branches/philikon-local-components/lib/python/OFS/ObjectManager.py 
2006-04-04 06:50:10 UTC (rev 66365)
@@ -171,11 +171,13 @@
 
 _components = None
 
+security.declarePublic('getSiteManager')
 def getSiteManager(self):
 if self._components is None:
 raise ComponentLookupError('No component registry defined.')
 return self._components
 
+security.declareProtected('Manage Site', 'setSiteManager')
 def setSiteManager(self, components):
 self._components = components
 

___
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins


[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/ZCatalog/ZCatalog.py if it's inefficient, don't do it unless it's used ; -)

2006-04-04 Thread Chris Withers
Log message for revision 66374:
  if it's inefficient, don't do it unless it's used ;-)

Changed:
  U   Zope/trunk/lib/python/Products/ZCatalog/ZCatalog.py

-=-
Modified: Zope/trunk/lib/python/Products/ZCatalog/ZCatalog.py
===
--- Zope/trunk/lib/python/Products/ZCatalog/ZCatalog.py 2006-04-04 10:02:50 UTC 
(rev 66373)
+++ Zope/trunk/lib/python/Products/ZCatalog/ZCatalog.py 2006-04-04 10:23:48 UTC 
(rev 66374)
@@ -485,11 +485,10 @@
 name = (name,)
 
 paths = self._catalog.uids.keys()
-num_paths = len(paths)   # inefficient
 
 i = 0
 if pghandler:
-pghandler.init('reindexing %s' % name, num_paths)
+pghandler.init('reindexing %s' % name, len(paths))
 
 for p in paths:
 i+=1

___
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins


[Zope-Checkins] SVN: Zope/branches/2.9/lib/python/Products/ZCatalog/ZCatalog.py if it's inefficient, don't do it unless it's used ; -)

2006-04-04 Thread Chris Withers
Log message for revision 66375:
  if it's inefficient, don't do it unless it's used ;-)

Changed:
  U   Zope/branches/2.9/lib/python/Products/ZCatalog/ZCatalog.py

-=-
Modified: Zope/branches/2.9/lib/python/Products/ZCatalog/ZCatalog.py
===
--- Zope/branches/2.9/lib/python/Products/ZCatalog/ZCatalog.py  2006-04-04 
10:23:48 UTC (rev 66374)
+++ Zope/branches/2.9/lib/python/Products/ZCatalog/ZCatalog.py  2006-04-04 
10:25:23 UTC (rev 66375)
@@ -481,11 +481,10 @@
 name = (name,)
 
 paths = self._catalog.uids.keys()
-num_paths = len(paths)   # inefficient
 
 i = 0
 if pghandler:
-pghandler.init('reindexing %s' % name, num_paths)
+pghandler.init('reindexing %s' % name, len(paths))
 
 for p in paths:
 i+=1

___
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins


Re: [Zope-dev] Bug in Zope 2.9?

2006-04-04 Thread Chris Withers

Stefan H. Holek wrote:

This is an old ZODB, right?


Yup, from Zope 2.7.6

ZGlobals is used by ZClasses. There used to be a time when ZGlobals was 
still a BTree when it should have been a BTrees.BTree. Then some 
migration code was added. 


It obviously never kicked in ;-)

I suppose the error comes from the fact that 
BTree.so is now finally no longer part of Zope and your ZODB is old. Or 
something along these lines ;-)


Well, I guess the thing gets rebuilt, otherwise it'd keep whining...

Anyway, as long as you don't use ZClasses (and I seem to remember you, 
err, are pretty explicit about your dislike) forget about it.


...but given that I don't care, and it doesn't hurt anymore, I shall 
indeed forget about it.


cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk

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

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


Re: [Zope-dev] TCP CLOSE_WAIT leaks

2006-04-04 Thread Alan Milligan
Dieter Maurer wrote:

 Looks as if your Python were compiled without debugging symbols.
 You will get much better tracebacks (easier to understand),
 when you rebuild your Python with debugging symbols.

But of course, it's a production system :( - temporarily installing
python-debuginfo ...

 
 The following GDB macros can be used to help in the analysis.
 pfr can be called in frames eval_frame to learn
 about the Python frame.
 
 def ps
 x/s ({PyStringObject}$arg0)-ob_sval
 end
 

Dieter, I don't know where you manage to find this stuff!!

Have stuck it in my .gdbinit and am knocking myself out with it...

Cheers, Alan

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


Re: [Zope-dev] makerequest issues

2006-04-04 Thread Paul Winkler
On Sat, Apr 01, 2006 at 01:07:35PM +0200, Stefan H. Holek wrote:
 I don't think makerequest is intended for wrapping anything but the  
 root application object. Putting the RequestContainer on arbitrary  
 objects doesn't feel right and certainly isn't how Zope does it, i.e.  
 you get a test fixture that doesn't reflect reality.
 
 NotABug/WontFix ;-)

Hmmm, but unit tests very often don't reflect reality - deliberately!
Because reality is Too Much Stuff.

Any other opinions on this?  Do we really need to require an App at
the root any time we want to acquire REQUEST? That seems kind of
arbitrary to me when any acquisition-enabled object would do. I've
inherited a test suite that has a lot of stuff like:

parent = makerequest(Folder())

... and I don't see anything wrong with that in principle,
but if the concensus is that Stefan's right, I'll bow to that.

-- 

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


Re: [Zope-dev] makerequest issues

2006-04-04 Thread Paul Winkler
Stefan, do you have any insight into my first question?
I wrote:

 1) there is a makerequest function in both Testing/makerequest.py
 and Testing/ZopeTestCase/utils.py.  They are subtly different.
 Is there a deliberate reason for this?  I notice that ... (snip)
 the one in makerequest.py lacks an ACTUAL_URL.

If there's no reason for the implementations to differ,
I can delete one definition and just import the other in its place.

-- 

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


[Zope-dev] Hunting down objects without classes...

2006-04-04 Thread Chris Withers

Hi All,

I'm currently plagued by the following annoying:

ZODB Could not import class 'BTree' from module 'BTree'

What's the recommended way of tracking these down?
Is there anything we can do to make the logged message give more info 
about where the object is?


I eventually stab-in-the-dark'ed it on this one and found the offending 
object in the root dictionary of a storage I was mounting some stuff from...


cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

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


Re: [Zope-dev] makerequest issues

2006-04-04 Thread Stefan H. Holek

On 4. Apr 2006, at 16:53, Paul Winkler wrote:

Hmmm, but unit tests very often don't reflect reality -  
deliberately!

Because reality is Too Much Stuff.



True enough.


Any other opinions on this?  Do we really need to require an App at
the root any time we want to acquire REQUEST? That seems kind of
arbitrary to me when any acquisition-enabled object would do. I've
inherited a test suite that has a lot of stuff like:

parent = makerequest(Folder())

... and I don't see anything wrong with that in principle,
but if the concensus is that Stefan's right, I'll bow to that.


This looks fine to me because the world ends at parent. Your earlier  
example wrapped an object that was in the middle of an acquisition  
chain (IIRC), which I am not sure I like. You are safe to wrap the  
top-most object, be it a true app or not.


Stefan

--
Anything that happens, happens.  --Douglas Adams


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

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


Re: [Zope-dev] makerequest issues

2006-04-04 Thread Stefan H. Holek
The one in ZopeTestCase.utils is also meant to play with startZServer  
(same module). I agree that the one in Testing.makerequest could  
probably gain ACTUAL_URL, and maybe even the request._steps hack to  
make URL1 and friends available...


However, I have not seen these URL vars used anywhere but templates  
and DTML. ZTC adds them because it's used quite heavily for  
integration and functional testing(*). Also note that the values are  
faked, i.e. they are present but contain dummy values. In real-life  
they would be maintained by traversal, and no traversal takes place  
in unit tests.


If you use ZTC you will automatically get an app object wrapped by  
utils.makerequest. If you don't use ZTC, I guess it depends on  
whether you think you will need ACTUAL_URL often enough to warrant  
adding it to Testing.makerequest. I don't think that's the case but  
YMMV.


Stefan

(*) To be honest they where likely added for Plone, now shoot me.


On 4. Apr 2006, at 17:37, Paul Winkler wrote:


Stefan, do you have any insight into my first question?
I wrote:


1) there is a makerequest function in both Testing/makerequest.py
and Testing/ZopeTestCase/utils.py.  They are subtly different.
Is there a deliberate reason for this?  I notice that ... (snip)
the one in makerequest.py lacks an ACTUAL_URL.


If there's no reason for the implementations to differ,
I can delete one definition and just import the other in its place.


--
Anything that happens, happens.  --Douglas Adams


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

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


Re: [Zope-dev] TCP CLOSE_WAIT leaks

2006-04-04 Thread Dieter Maurer
Alan Milligan wrote at 2006-4-4 21:19 +1000:
Dieter Maurer wrote:

 Looks as if your Python were compiled without debugging symbols.
 You will get much better tracebacks (easier to understand),
 when you rebuild your Python with debugging symbols.

But of course, it's a production system :( - temporarily installing
python-debuginfo ...

Debug symbols do not increase the runtime. They only make the binaries
(considerably) larger.

You must also recompile the Zope extensions (as they compile the same
way, Python has been compiled).

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


Re: [Zope-dev] makerequest issues

2006-04-04 Thread Paul Winkler
On Tue, Apr 04, 2006 at 08:09:05PM +0200, Stefan H. Holek wrote:
 This looks fine to me because the world ends at parent. Your earlier  
 example wrapped an object that was in the middle of an acquisition  
 chain (IIRC), 

no, I think you invented that :)

 which I am not sure I like. You are safe to wrap the  
 top-most object, be it a true app or not.

OK. In that case, 2057 really *is* a bug.
http://www.zope.org/Collectors/Zope/2057

-- 

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


[ZWeb] Re: [Zope] Zope.org = Zope.com?

2006-04-04 Thread Jim Fulton

Someone fat-fingered the cache configuration. It has been
fixed afaik.

Jim

Chris Withers wrote:

Hi Jim,

Did anyone ever get to the bottom of this?

cheers,

Chris

Chris Withers wrote:


Lennart Regebro wrote:


On 4/3/06, Andreas Krasa [EMAIL PROTECTED] wrote:


it seems that currently all HTTP requests to www.zope.org and
dev.zope.org are forwarded to www.zope.com.



Seems to work now. At least for me.



This is still happening intermittently for some people.

Jim has raised it with the guys who host zope.org...

cheers,

Chris






--
Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
CTO  (540) 361-1714http://www.python.org
Zope Corporation http://www.zope.com   http://www.zope.org
___
Zope-web maillist  -  Zope-web@zope.org
http://mail.zope.org/mailman/listinfo/zope-web


[Zope] manage_convertIndexes on large-ish catalogs

2006-04-04 Thread Chris Withers

Hi All,

Moving a site from 2.7 to 2.9, so I need to run manage_covertIndexes.

The only problem is that, on the main catalog, this sends the machine 
into swap death.


Anyone else experienced this? If so, how did you getaround it?

cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
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] manage_convertIndexes on large-ish catalogs

2006-04-04 Thread Andreas Jung

Perhaps you should try to reduce the subtransaction threshold?

-aj

--On 4. April 2006 10:17:23 +0100 Chris Withers [EMAIL PROTECTED] 
wrote:



Hi All,

Moving a site from 2.7 to 2.9, so I need to run manage_covertIndexes.

The only problem is that, on the main catalog, this sends the machine
into swap death.

Anyone else experienced this? If so, how did you getaround it?

cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
- http://www.simplistix.co.uk
___
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 )




   ---
  -   Andreas JungZOPYX Ltd.  Co KG-
 -   E-mail: [EMAIL PROTECTED]   Web: www.zopyx.com, www.zopyx.de -
  ---


pgpZ6iqDki3vG.pgp
Description: PGP signature
___
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] manage_convertIndexes on large-ish catalogs

2006-04-04 Thread Chris Withers

Andreas Jung wrote:

Perhaps you should try to reduce the subtransaction threshold?


It's only 500 as it is!

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
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] Zope.org = Zope.com?

2006-04-04 Thread Reinoud van Leeuwen
On Tue, Apr 04, 2006 at 07:23:52AM -0400, Jim Fulton wrote:

 Someone fat-fingered the cache configuration. It has been
 fixed afaik.

I still get the zope.com site here when trying to reach www.zope.org 
(might be a cached redirect in my browser though)

-- 
__
Nothing is as subjective as reality
Reinoud van Leeuwen[EMAIL PROTECTED]
http://www.xs4all.nl/~reinoud
__
___
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] Zope.org = Zope.com?

2006-04-04 Thread Chris Withers

Hi Jim,

Did anyone ever get to the bottom of this?

cheers,

Chris

Chris Withers wrote:

Lennart Regebro wrote:

On 4/3/06, Andreas Krasa [EMAIL PROTECTED] wrote:

it seems that currently all HTTP requests to www.zope.org and
dev.zope.org are forwarded to www.zope.com.


Seems to work now. At least for me.


This is still happening intermittently for some people.

Jim has raised it with the guys who host zope.org...

cheers,

Chris



--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk

___
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] Zope.org = Zope.com?

2006-04-04 Thread Jim Fulton

Someone fat-fingered the cache configuration. It has been
fixed afaik.

Jim

Chris Withers wrote:

Hi Jim,

Did anyone ever get to the bottom of this?

cheers,

Chris

Chris Withers wrote:


Lennart Regebro wrote:


On 4/3/06, Andreas Krasa [EMAIL PROTECTED] wrote:


it seems that currently all HTTP requests to www.zope.org and
dev.zope.org are forwarded to www.zope.com.



Seems to work now. At least for me.



This is still happening intermittently for some people.

Jim has raised it with the guys who host zope.org...

cheers,

Chris






--
Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
CTO  (540) 361-1714http://www.python.org
Zope Corporation http://www.zope.com   http://www.zope.org
___
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] + in url /zope object name

2006-04-04 Thread Brian Sullivan
I am running into the problem mentioned in:

http://mail.zope.org/pipermail/zope/2003-October/141868.html

I have + used in a directory name of some content generated outside
zope that I want to upload. Preserving the directory name is necessary
for the integrity of the data.

Why is + a prohibited name for a zope object? As a solution Andy
Mackay suggests modifying zope to allow + in a zope object name. Is
there a downside to this?
___
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] + in url /zope object name

2006-04-04 Thread Lennart Regebro
On 4/4/06, Brian Sullivan [EMAIL PROTECTED] wrote:
 Why is + a prohibited name for a zope object? As a solution Andy
 Mackay suggests modifying zope to allow + in a zope object name. Is
 there a downside to this?

I think it is a reserved name in Zope3. + are there used for the views
that help create new objects. That could be a downside.

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] + in url /zope object name

2006-04-04 Thread Brian Sullivan
On 4/4/06, Lennart Regebro [EMAIL PROTECTED] wrote:
 On 4/4/06, Brian Sullivan [EMAIL PROTECTED] wrote:
  Why is + a prohibited name for a zope object? As a solution Andy
  Mackay suggests modifying zope to allow + in a zope object name. Is
  there a downside to this?

 I think it is a reserved name in Zope3. + are there used for the views
 that help create new objects.


Seems like a strategic design mistake though doesn't it?
___
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] Zope and Tomcat troubles

2006-04-04 Thread Thomas Bennett
If I'm not mistaken, by default out of the package both Zope and Tomcat 
defaults to run on port 8080, don't know about the relation to OpenXchange.  
You need to change one of them.  

As Tino mentioned, Zope port is set in zope.conf.   zope.conf, with the Suse 
10 rpm I used on my notebook, is in /var/opt/zope/default/etc.   Look for  

http-server
 address 8080
http-server


Tomcat port is set in server.xml in the conf directory.  Look for something 
similar to:

!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector port=8080 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /
!-- Note : To disable connection timeouts, set connectionTimeout value
 to 0 --

Also, you may want to check your environment to make sure the java paths are 
still correct although not related to a zope installation java paths can sure 
srew things up if they are wrong.  Defaults on Suse 10 are, assuming you 
haven't installed another version of jdk:

JAVA_ROOT=/usr/lib/jvm/jre
JAVA_HOME=/usr/lib/jvm/jre
JAVA_BINDIR=/usr/lib/jvm/jre/bin
JRE_HOME=/usr/lib/jvm/jre

and include /usr/lib/jvm/jre/bin in the PATH.

Thomas

On Friday 31 March 2006 18:25, Mads Munch Hansen wrote:
 Hi,
 Since I installed Zope on my server Tomcat has stoped working, and I was
 wondering if any of you knew of a solution. When I try to load the
 management interface for TomCat, all I get is a blank page, the same
 when I try to log into OpenXchange... I installed zope from the Plone
 Suse 10 rpm bundle on a Suse 10 box.

 I hope this isn't too much off topic, but I'm quite sure Zope related.

 Thanks in advance,
 Mads Munch Hansen

-- 

Thomas McMillan Grant Bennett   Appalachian State University
Computer Consultant III P O Box
University Library  Boone, North Carolina 28608

Please use the Systems Help Desk at http://linux.library.appstate.edu/help
All in Systems receive an email with each submission.

___
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] manage_convertIndexes on large-ish catalogs

2006-04-04 Thread Michael Vartanyan

Hi Chris!

After various attempts to get through the right way, I did simply the 
following:


1. Clear catalog
2. manage_covertIndexes
3. start looping through objects reindexing them and calling 
commit_transaction() on each 100-chunk (or 1000 or whatever your RAM can 
bear)

4. go have a coffee/walk/sleep (depending on the size of your catalog)
5. enjoy!

Dumb, slow, but works quite well!


Chris Withers wrote:

Hi All,

Moving a site from 2.7 to 2.9, so I need to run manage_covertIndexes.

The only problem is that, on the main catalog, this sends the machine 
into swap death.


Anyone else experienced this? If so, how did you getaround it?

cheers,

Chris



___
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] incorporating jmol into Zope

2006-04-04 Thread Dieter Maurer
gf wrote at 2006-4-3 11:59 -0600:
 ...
I have set up a folder in Zope for jmol's files (Jmol.js, JmolApplet.jar):
root/javascript/jmol

Thus, access the jmol files via /javascript/jmol/

-- 
Dieter
___
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] Problem with ExtFile

2006-04-04 Thread Michael Vartanyan


Same problem here. Occasionally, uploading ExtFile would redirect to 
file content itself with broken (unset?) content-type. Anyone has a 
ready fix?


Thanks.

Bruno Grampa wrote:

Hello,
i've a problem with ExtFile 1.4.4 installed in a Zope 2.8.6 (on RHES4).
The redirection, at the end of file creation doesn't work.
To test the problem you have to create these methods:
The first one is called 'form':
---
dtml-var standard_html_header

form action=write method=post enctype=multipart/form-data 
name=form1

p
Insert
p
Id input type=text name=idbr
bFile/binput type=file name=file value=
br

input type=submit value=Send
/form

dtml-var standard_html_footer
---

The second one is called 'write':
---
dtml-comment
dtml-call 
manage_addProduct['ExtFile'].manage_addExtFile(id=REQUEST['id'],title='',descr='',file=REQUEST['file'],content_type='', 
permission_check=0)

/dtml-comment
dtml-call 
manage_addProduct['ExtFile'].manage_addExtImage(id=REQUEST['id'],title='',descr='',file=REQUEST['file'],content_type='',create_prev=1, 
maxx='100', maxy='100', ratio=1, permission_check=0)

dtml-var standard_html_header

Ok, done.

dtml-var standard_html_footer
---

If i use manage_addExtImage i got the Ok, done message; if i use 
manage_addExtFile no, just a piece of page (junk?).


I can't understand why, can someone help me?

Thanks!
   Bruno


___
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 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] bug in zeo runner in Zope 2.8.6 ?

2006-04-04 Thread Vlada Macek
When I run zeoctl start having user zope (where zope is an
unprivileged user) directive in zeo.conf on a virgin instance directory,
at first log/zeo.log file with root owner is created, then the process
drops its privileges and timeouts, since it is not able to re-open the
logfile.

The problem is not imminent when starting ZEO like this:  su zope
bin/runzeo. That's because there is no chance of creating the logfile as
root.

I don't know whether this is already fixed in later stable versions, but
since 2.8.6 is still a recommended one for at least Plone and maybe
there are another fools like me who want to run ZEO unprivileged using
zeoctl, I'm reporting it. :)

-- 

\//\/\
(Sometimes credited as 1494 F8DD 6379 4CD7 E7E3 1FC9 D750 4243 1F05 9424.)

 [ When you find a virus in mail from me, then I intended to infect you, ]
 [ since I use SW that is not distributing malware w/o my knowledge. ]



begin:vcard
fn:Vlada Macek
n:Macek;Vlada
adr:;;;Liberec;;;Czech Republic
email;internet:[EMAIL PROTECTED]
title:UNIX Admin  Developer
tel;cell:+420 608 978 164
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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] bug in zeo runner in Zope 2.8.6 ?

2006-04-04 Thread Jens Vagelpohl

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 4 Apr 2006, at 22:26, Vlada Macek wrote:
I don't know whether this is already fixed in later stable  
versions, but

since 2.8.6 is still a recommended one for at least Plone and maybe
there are another fools like me who want to run ZEO unprivileged using
zeoctl, I'm reporting it. :)


FWIW, it is much better to start Zope/ZEO *as the unprivileged user*,  
unless you have specific reasons for needing to start it as root.


jens

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFEMufTRAx5nvEhZLIRAoFYAJ0QBmLkvhYC3WFyVP25b8fxQIlcIACgsqTA
+JSVa3PbiFYC7vQatzPUGH0=
=N+Kl
-END PGP SIGNATURE-
___
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] + in url /zope object name

2006-04-04 Thread Lennart Regebro
On 4/4/06, Brian Sullivan [EMAIL PROTECTED] wrote:
 Seems like a strategic design mistake though doesn't it?

Which one? Calling adders + or creating objects called +? ;-)

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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 build a search date range parameter in a search form

2006-04-04 Thread lucia colombo
That's what I can't dothe tuple gets passed as a string... :-( as 
far as I understand


Lucia
On 4/3/06, Dieter Maurer [EMAIL PROTECTED] wrote:
Lucia Colombo wrote at 2006-4-3 17:49 +0200:I'm trying to build a search form which gets as an input a year and searches
for all objects which have a (custom) date index set within such year. ...How do I get the parameter to be a list of dates?You determine start and end date inside a Python script from the
integer year form variable. Then, you form a sequence(list or tuple) from the two dates.--Dieter
___
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 build a search date range parameter in a search form

2006-04-04 Thread Gabriel Genellina

At Monday 3/4/2006 12:49, Lucia Colombo wrote:


select name= getAnno.query:record:list 
id=getAnno
tabindex=
tal:attributes=tabindex tabindex/next;
 tal:options repeat=year years_list
   option value=# tal:define=start_date 
python:DateTime(int(year), 1, 1);


end_date python:DateTime(int(year), 12, 31);

date_range python:[start_date, end_date];

tal:attributes=value date_range tal:content=year 2000 /option
 /tal:options
/select
How do I get the parameter to be a list of dates?


You can't. :list joins multiple parameters into a single list, but an 
option gives just a single parameter.
But you don't need such things - you can compute start_date and 
end_date trivially (inside the form action) from the *only* integer 
parameter you need, the year.



Gabriel Genellina
Softlab SRL 


___
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-DB] RE: Oracle 9i, Zope 2.9.0 and Windows

2006-04-04 Thread Rivera Merla Jose
Title: RE: Oracle 9i, Zope 2.9.0 and Windows






Try this http://zope.org/Members/timmorgan/products/ZODBCDA/document_view it's the one I use and it works pretty good, you just have to install also the Mark Hammond's Python Win32 Extensions before, chek this link it has the instructions.

I hope this will help you...


Jose Rivera


-Mensaje original-

Hi :-)



I'm doing a commercial project on Zope 2.9.0 in which I have to read and write data to Oracle 9.2.0.4 database. It won't be a substitution for ZODB but something 

more of an import/export feature.



I've looked pretty closely on Zope - relational database connectivity and I understand the concepts of Database Adapter, Database Connection and Z SQL 

Methods. I've played around a bit with Gadfly.



I've found the wiki page:

http://zopewiki.org/Oracle

and it seems that DOracle2 would be the best thing for my needs (I only need simple inserts and querries, nothing really fancy). But as I see there is no binary for 

Python 2.4 and Windows



I've found a couple of howto's on compiling the extension but they're not easy or at least not for me, especially that I can't use the Ms Visual Studio :-( So before I 

take on the task I would like to ask for any suggestions (links are very welcome). Maybe someone has the adapter and could share it?



Is the Oracle Client still needed after I've compiled the adapter? If I compile it in Linux is it possible to use it in Windows?



As you've probably guessed I'm pretty newbie - but very much willing to learn :-)



Please excuse my English.



I will be very grateful for any help.



Best regards,

Maciej Zieba




*
La presente informacion  se envia  unicamente  para el  destinatario, y
contiene  Informacion de caracter CONFIDENCIAL o PRIVILEGIADA.  La modificacion,
retransmision,  difusion, copia u  otro  uso de  esta informacion por cualquier
medio, por personas  distintas al  destinatario  esta  estrictamente prohibido.
Si usted  no es el destinatario, por favor notifique al  remitente respondiendo
a este mensaje, y borre el mismo y sus anexos sin retener copia alguna.
Gracias.

 The information contained in this message is being sent to the intended
recipient, and contains PRIVILEGED / CONFIDENTIAL Information. The modification,
retransmission, disclosure,  copy or other use  of such information by  persons
other than the intended recipient  is strictly prohibited. If you are  not  the
intended recipient, please  advise the  sender immediately  by reply e-mail and
delete this message and any attachments without retaining a copy.
Thank you.
*
___
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db


Re: [Zope-DB] Oracle 9i, Zope 2.9.0 and Windows

2006-04-04 Thread Dieter Maurer
[EMAIL PROTECTED] wrote at 2006-4-4 13:08 CES:
 ...
I've found the wiki page:
http://zopewiki.org/Oracle
and it seems that DOracle2 would be the best thing for my needs (I only n=
eed simple inserts and querries, nothing really fancy). But as I see ther=
e is no binary for Python 2.4 and Windows.

DCOracle2 currently has not maintainer.

Maybe, you should look for cx_Oracle (which has an active maintainer).

-- 
Dieter
___
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db


[Zope-DB] ZSQL + MySQL + sqltest + list

2006-04-04 Thread Matthew Fairclough
Hi,

Really frustrated by this.

dtml-sqltest catId type=int multiple

I want catId to be a list: ie [4, 6, 8].  Examples indicate that I can do this. 
However, ZSQL generates an error every time I put in more than one integer.  How
can I pass a list of integers?

Many thanks.
--
Matthew Fairclough
___
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db


[Zope-DB] Oracle 9i, Zope 2.9.0 and Windows

2006-04-04 Thread Infor Gates
You can use www.egenix.com for connection to Oracle ortry Postgresql 8.x. Postgresql can run natively on WIndows XP Pro. The adapter is available from www.initd.org. CY|I'm doing a commercial project on Zope 2.9.0 in which I have to read |and write data to Oracle 9.2.0.4 database. It won't be a substitution for |ZODB but something more of an import/export feature.||I've looked pretty closely on Zope - relational database connectivity |and I understand the concepts of Database Adapter, Database Connection |and Z SQL Methods. I've played around a bit with Gadfly.
		New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.___
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db


[Zope-DB] mysql / zope db connection issue

2006-04-04 Thread Jamie O'Keefe
Hi,

I have written a series of zope pages for a person to update their
record in our mysql database.   They use a zpt-python-db sql-db
driver-db flow and work pretty well.

Unfortunately, if enough people use it, the number of open db
connections grows until it hits a limit and the db stops accepting
connections.  I have seen that there is a connection issue with zope
and mysql, but have not been able to find a solution.  Is there one?

Also, I put in some exception handling to trap any db errors and email
the post if there are any.  However, i am not sure it is working.  I
performed a test to the db update from my page with the db off and got
a Database Error that wasn't caught by my exception handler.  I am not
sure why since I thought Exception would be the root of Database
Errors.  My code looks like this:

try:
  result = context.updatePerson(**query_args)
  return text
except Exception:
  try:
mto = to address
mfrom = from address
subject = Updated supporter information
body = printed
context.MailHost.simple_send(mto, mfrom, subject, body)
print result
return text
  except Exception:
errorText = 'h1Ooooppps!/h1pThere was an error submitting
your information to our database and our backup logging method. 
Please email the a href=mailto:webmaster@domainwebmaster/a
that you got an error so that we can track it down and fix
it./ppThanks!/p'
print errorText
return printed
return errorText

The traceback error is:

Exception Type  Database Error
Exception Value updatePerson is not connected to a database

Any insights would be most welcome.

Thanks!

Jamie
___
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db