[Zope-Annce] CPSSharedCalendar 1.0.0 beta 2 released

2005-06-03 Thread Lennart Regebro
June 2, 2005 -- Nuxeo is happy to release CPSSharedCalendar 1.0beta.
CPSSharedCalendar is an advanced, flexible calendaring component for
Zope and CPS3. It allows CPS users to access personal calendars using a
web interface. Events on the calendar can be shared between multiple
users, as a user can invite others to an event. This event will then
appear on the calendar of the invited users as well.

Features of the CPSSharedCalendar include among others:

 * a web interface for managing calendars,
 * integration with iCalendar clients (Apple iCal, Mozilla Sunbird,
   KOrganizer...) using the iCalendar protocol,
 * invitation workflow,
 * meeting support,
 * meeting helper that looks for free time,
 * etc.

CPSSharedCalendar is built on a reusable core and is thus not just for
CPS. It has been written from the ground up to be easy to integrate with
other Zope 2 platforms such as Plone and Silva, and with portability to
Zope 3 in mind. Its python core component (CalCore) can even be used
outside of Zope altogether.

For more functional and technical information, see the CPSSharedCalendar
web site:

http://www.cps-project.org/sections/projects/calendar_server

CPSSharedCalendar can be downloaded here:

http://www.cps-project.org/static/misc/CPSSharedCalendar-package-1.0.0-b2.tgz

Look at the README.txt file in the package for more information on how
to install CPSSharedCalendar.

If you'd like to help with CPSSharedCalendar development or porting to
other platforms, please join the cps-devel mailing list at
http://lists.nuxeo.com/mailman/listinfo/cps-devel (a dedicated list will
be created if needed in the future).

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
-- 
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
Zope-Announce maillist  -  Zope-Announce@zope.org
http://mail.zope.org/mailman/listinfo/zope-announce

  Zope-Announce for Announcements only - no discussions

(Related lists -
 Users: http://mail.zope.org/mailman/listinfo/zope
 Developers: http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ Forward port fix for Collector #1799.

2005-06-03 Thread Tres Seaver
Log message for revision 30617:
  Forward port fix for Collector #1799.

Changed:
  U   Zope/branches/Zope-2_8-branch/doc/CHANGES.txt
  U   Zope/branches/Zope-2_8-branch/lib/python/Acquisition/_Acquisition.c

-=-
Modified: Zope/branches/Zope-2_8-branch/doc/CHANGES.txt
===
--- Zope/branches/Zope-2_8-branch/doc/CHANGES.txt   2005-06-02 22:05:14 UTC 
(rev 30616)
+++ Zope/branches/Zope-2_8-branch/doc/CHANGES.txt   2005-06-03 07:42:38 UTC 
(rev 30617)
@@ -26,6 +26,9 @@
 
 Bugs Fixed
 
+  - Collector #1799: Avoid lying about parent's refcount when
+calling back into Python code.
+
   - Collector #889:  made 'and' operator for KeywordIndexes actually
 restrict results as expected (thanks to 'aroda' for the patch!).
 

Modified: Zope/branches/Zope-2_8-branch/lib/python/Acquisition/_Acquisition.c
===
--- Zope/branches/Zope-2_8-branch/lib/python/Acquisition/_Acquisition.c 
2005-06-02 22:05:14 UTC (rev 30616)
+++ Zope/branches/Zope-2_8-branch/lib/python/Acquisition/_Acquisition.c 
2005-06-03 07:42:38 UTC (rev 30617)
@@ -155,9 +155,9 @@
 
   UNLESS(r=PyObject_GetAttr(inst, py__of__)) return NULL;
   UNLESS(t=PyTuple_New(1)) goto err;
+  Py_INCREF(parent);
   PyTuple_SET_ITEM(t,0,parent);
   ASSIGN(r,PyObject_CallObject(r,t));
-  PyTuple_SET_ITEM(t,0,NULL);
   Py_DECREF(t);
 
   if (r != NULL

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


[Zope-Checkins] CVS: Packages/OFS - Image.py:1.145.2.12

2005-06-03 Thread Chris McDonough
Update of /cvs-repository/Packages/OFS
In directory cvs.zope.org:/tmp/cvs-serv2373

Modified Files:
  Tag: Zope-2_7-branch
Image.py 
Log Message:
Collector http://www.zope.org/Collectors/Zope/1797 : 304 responses require 
collaboration from http accelerated cache manager.  (see also 
http://www.zope.org/Collectors/Zope/683).


=== Packages/OFS/Image.py 1.145.2.11 = 1.145.2.12 ===
--- Packages/OFS/Image.py:1.145.2.11Thu Jan 27 13:47:11 2005
+++ Packages/OFS/Image.py   Fri Jun  3 12:15:00 2005
@@ -364,6 +364,12 @@
 
 if self._if_modified_since_request_handler(REQUEST, RESPONSE):
 # we were able to handle this by returning a 304
+# unfortunately, because the HTTP cache manager uses the cache
+# API, and because 304 responses are required to carry the Expires
+# header for HTTP/1.1, we need to call ZCacheable_set here.
+# This is nonsensical for caches other than the HTTP cache manager
+# unfortunately.
+self.ZCacheable_set(None)
 return ''
 
 if self.precondition and hasattr(self, str(self.precondition)):

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


[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/lib/python/OFS/Image.py Collector http://www.zope.org/Collectors/Zope/1797 : 304 responses require collaboration from http accelerated cache manager

2005-06-03 Thread Chris McDonough
Log message for revision 30625:
  Collector http://www.zope.org/Collectors/Zope/1797 : 304 responses require 
collaboration from http accelerated cache manager.  (see also 
http://www.zope.org/Collectors/Zope/683).
  
  

Changed:
  U   Zope/branches/Zope-2_8-branch/lib/python/OFS/Image.py

-=-
Modified: Zope/branches/Zope-2_8-branch/lib/python/OFS/Image.py
===
--- Zope/branches/Zope-2_8-branch/lib/python/OFS/Image.py   2005-06-03 
16:19:53 UTC (rev 30624)
+++ Zope/branches/Zope-2_8-branch/lib/python/OFS/Image.py   2005-06-03 
16:24:32 UTC (rev 30625)
@@ -365,6 +365,12 @@
 
 if self._if_modified_since_request_handler(REQUEST, RESPONSE):
 # we were able to handle this by returning a 304
+# unfortunately, because the HTTP cache manager uses the cache
+# API, and because 304 responses are required to carry the Expires
+# header for HTTP/1.1, we need to call ZCacheable_set here.
+# This is nonsensical for caches other than the HTTP cache manager
+# unfortunately.
+self.ZCacheable_set(None)
 return ''
 
 if self.precondition and hasattr(self, str(self.precondition)):

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


[Zope-Checkins] CVS: Zope/doc - CHANGES.txt:1.625.2.336

2005-06-03 Thread Chris McDonough
Update of /cvs-repository/Zope/doc
In directory cvs.zope.org:/tmp/cvs-serv6673

Modified Files:
  Tag: Zope-2_7-branch
CHANGES.txt 
Log Message:



=== Zope/doc/CHANGES.txt 1.625.2.335 = 1.625.2.336 ===
--- Zope/doc/CHANGES.txt:1.625.2.335Thu Jun  2 23:27:25 2005
+++ Zope/doc/CHANGES.txtFri Jun  3 12:29:04 2005
@@ -14,6 +14,11 @@
 
 Bugs fixed
 
+  - Collector #1797: when a File/Image object returned a 304 response
+code in response to an If-Modified-Since request, it did not
+collaborate with any cache managers.  It used to, and it has been
+changed back to do so.  Thanks to d2m and Bertrand Croq.
+
   - Collector #1799: Avoid lying about parent's refcount when
 calling back into Python code.
 

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


[Zope-Checkins] SVN: Zope/trunk/lib/python/Acquisition/_Acquisition.c Forward port fix for Collector #1799.

2005-06-03 Thread Tres Seaver
Log message for revision 30626:
  Forward port fix for Collector #1799.

Changed:
  U   Zope/trunk/lib/python/Acquisition/_Acquisition.c

-=-
Modified: Zope/trunk/lib/python/Acquisition/_Acquisition.c
===
--- Zope/trunk/lib/python/Acquisition/_Acquisition.c2005-06-03 16:24:32 UTC 
(rev 30625)
+++ Zope/trunk/lib/python/Acquisition/_Acquisition.c2005-06-03 17:28:19 UTC 
(rev 30626)
@@ -155,9 +155,9 @@
 
   UNLESS(r=PyObject_GetAttr(inst, py__of__)) return NULL;
   UNLESS(t=PyTuple_New(1)) goto err;
+  Py_INCREF(parent);
   PyTuple_SET_ITEM(t,0,parent);
   ASSIGN(r,PyObject_CallObject(r,t));
-  PyTuple_SET_ITEM(t,0,NULL);
   Py_DECREF(t);
 
   if (r != NULL

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


[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/ Functional.publish() would hang if it got a request_method argument other

2005-06-03 Thread Stefan H. Holek
Log message for revision 30627:
  Functional.publish() would hang if it got a request_method argument other
  than GET or HEAD while omitting the stdin argument.
  

Changed:
  U   
Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/doc/CHANGES.txt
  U   
Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/functional.py
  U   
Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/testFunctional.py

-=-
Modified: 
Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/doc/CHANGES.txt
===
--- 
Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/doc/CHANGES.txt   
2005-06-03 17:28:19 UTC (rev 30626)
+++ 
Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/doc/CHANGES.txt   
2005-06-03 17:42:38 UTC (rev 30627)
@@ -1,3 +1,7 @@
+Unreleased
+- Functional.publish() would hang if it got a request_method argument other
+  than GET or HEAD while omitting the stdin argument.
+
 0.9.8 (Zope 2.8 edition)
 - Renamed 'doctest' package to 'zopedoctest' because of name-shadowing
   issues discovered during integration into Zope 2.8. Tests may still use

Modified: 
Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/functional.py
===
--- Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/functional.py 
2005-06-03 17:28:19 UTC (rev 30626)
+++ Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/functional.py 
2005-06-03 17:42:38 UTC (rev 30627)
@@ -72,7 +72,7 @@
 env['HTTP_AUTHORIZATION'] = Basic %s % base64.encodestring(basic)
 
 if stdin is None:
-stdin = sys.stdin
+stdin = StringIO()
 
 outstream = StringIO()
 response = Response(stdout=outstream, stderr=sys.stderr)

Modified: 
Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/testFunctional.py
===
--- 
Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/testFunctional.py 
2005-06-03 17:28:19 UTC (rev 30626)
+++ 
Zope/branches/Zope-2_8-branch/lib/python/Testing/ZopeTestCase/testFunctional.py 
2005-06-03 17:42:38 UTC (rev 30627)
@@ -164,6 +164,32 @@
 self.assertEqual(self.folder.new_document.meta_type, 'DTML Document')
 self.assertEqual(self.folder.new_document(), 'foo')
 
+def testPUTEmpty(self):
+# PUT operation without passing stdin should result in empty content
+self.setPermissions([change_dtml_documents])
+
+response = self.publish(self.folder_path+'/index_html',
+request_method='PUT',
+basic=self.basic_auth)
+
+self.assertEqual(response.getStatus(), 204)
+self.assertEqual(self.folder.index_html(), '')
+
+def testPROPFIND(self):
+# PROPFIND should work without passing stdin
+response = self.publish(self.folder_path+'/index_html',
+request_method='PROPFIND',
+basic=self.basic_auth)
+
+self.assertEqual(response.getStatus(), 207)
+
+def testHEAD(self):
+# HEAD should work without passing stdin
+response = self.publish(self.folder_path+'/index_html',
+request_method='HEAD')
+
+self.assertEqual(response.getStatus(), 200)
+
 def testSecurityContext(self):
 # The authenticated user should not change as a result of publish
 self.assertEqual(getSecurityManager().getUser().getId(), user_name)

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


[Zope-Checkins] SVN: Zope/trunk/lib/python/Testing/ZopeTestCase/ Functional.publish() would hang if it got a request_method argument other

2005-06-03 Thread Stefan H. Holek
Log message for revision 30628:
  Functional.publish() would hang if it got a request_method argument other
  than GET or HEAD while omitting the stdin argument.
  

Changed:
  U   Zope/trunk/lib/python/Testing/ZopeTestCase/doc/CHANGES.txt
  U   Zope/trunk/lib/python/Testing/ZopeTestCase/functional.py
  U   Zope/trunk/lib/python/Testing/ZopeTestCase/testFunctional.py

-=-
Modified: Zope/trunk/lib/python/Testing/ZopeTestCase/doc/CHANGES.txt
===
--- Zope/trunk/lib/python/Testing/ZopeTestCase/doc/CHANGES.txt  2005-06-03 
17:42:38 UTC (rev 30627)
+++ Zope/trunk/lib/python/Testing/ZopeTestCase/doc/CHANGES.txt  2005-06-03 
17:42:57 UTC (rev 30628)
@@ -1,3 +1,7 @@
+Unreleased
+- Functional.publish() would hang if it got a request_method argument other
+  than GET or HEAD while omitting the stdin argument.
+
 0.9.8 (Zope 2.8 edition)
 - Renamed 'doctest' package to 'zopedoctest' because of name-shadowing
   issues discovered during integration into Zope 2.8. Tests may still use

Modified: Zope/trunk/lib/python/Testing/ZopeTestCase/functional.py
===
--- Zope/trunk/lib/python/Testing/ZopeTestCase/functional.py2005-06-03 
17:42:38 UTC (rev 30627)
+++ Zope/trunk/lib/python/Testing/ZopeTestCase/functional.py2005-06-03 
17:42:57 UTC (rev 30628)
@@ -72,7 +72,7 @@
 env['HTTP_AUTHORIZATION'] = Basic %s % base64.encodestring(basic)
 
 if stdin is None:
-stdin = sys.stdin
+stdin = StringIO()
 
 outstream = StringIO()
 response = Response(stdout=outstream, stderr=sys.stderr)

Modified: Zope/trunk/lib/python/Testing/ZopeTestCase/testFunctional.py
===
--- Zope/trunk/lib/python/Testing/ZopeTestCase/testFunctional.py
2005-06-03 17:42:38 UTC (rev 30627)
+++ Zope/trunk/lib/python/Testing/ZopeTestCase/testFunctional.py
2005-06-03 17:42:57 UTC (rev 30628)
@@ -164,6 +164,32 @@
 self.assertEqual(self.folder.new_document.meta_type, 'DTML Document')
 self.assertEqual(self.folder.new_document(), 'foo')
 
+def testPUTEmpty(self):
+# PUT operation without passing stdin should result in empty content
+self.setPermissions([change_dtml_documents])
+
+response = self.publish(self.folder_path+'/index_html',
+request_method='PUT',
+basic=self.basic_auth)
+
+self.assertEqual(response.getStatus(), 204)
+self.assertEqual(self.folder.index_html(), '')
+
+def testPROPFIND(self):
+# PROPFIND should work without passing stdin
+response = self.publish(self.folder_path+'/index_html',
+request_method='PROPFIND',
+basic=self.basic_auth)
+
+self.assertEqual(response.getStatus(), 207)
+
+def testHEAD(self):
+# HEAD should work without passing stdin
+response = self.publish(self.folder_path+'/index_html',
+request_method='HEAD')
+
+self.assertEqual(response.getStatus(), 200)
+
 def testSecurityContext(self):
 # The authenticated user should not change as a result of publish
 self.assertEqual(getSecurityManager().getUser().getId(), user_name)

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


[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ Move to ZODB 3.4c1.

2005-06-03 Thread Tim Peters
Log message for revision 30636:
  Move to ZODB 3.4c1.
  

Changed:
  _U  Zope/branches/Zope-2_8-branch/lib/python/
  _U  Zope/branches/Zope-2_8-branch/utilities/

-=-

Property changes on: Zope/branches/Zope-2_8-branch/lib/python
___
Name: svn:externals
   - zope   
svn://svn.zope.org/repos/main/Zope3/tags/ZopeX3-3.0.0-Zope-2.8-a4/src/zope
ZConfigsvn://svn.zope.org/repos/main/ZConfig/tags/ZConfig-2.3
BTrees svn://svn.zope.org/repos/main/ZODB/tags/3.4.0b3/src/BTrees
Persistencesvn://svn.zope.org/repos/main/ZODB/tags/3.4.0b3/src/Persistence
persistent svn://svn.zope.org/repos/main/ZODB/tags/3.4.0b3/src/persistent
ThreadedAsync  svn://svn.zope.org/repos/main/ZODB/tags/3.4.0b3/src/ThreadedAsync
transactionsvn://svn.zope.org/repos/main/ZODB/tags/3.4.0b3/src/transaction
ZEOsvn://svn.zope.org/repos/main/ZODB/tags/3.4.0b3/src/ZEO
ZODB   svn://svn.zope.org/repos/main/ZODB/tags/3.4.0b3/src/ZODB
ZopeUndo   svn://svn.zope.org/repos/main/ZODB/tags/3.4.0b3/src/ZopeUndo
zdaemonsvn://svn.zope.org/repos/main/zdaemon/tags/zdaemon-Zope-2-8-0

   + zope   
svn://svn.zope.org/repos/main/Zope3/tags/ZopeX3-3.0.0-Zope-2.8-a4/src/zope
ZConfigsvn://svn.zope.org/repos/main/ZConfig/tags/ZConfig-2.3
BTrees svn://svn.zope.org/repos/main/ZODB/tags/3.4.0c1/src/BTrees
Persistencesvn://svn.zope.org/repos/main/ZODB/tags/3.4.0c1/src/Persistence
persistent svn://svn.zope.org/repos/main/ZODB/tags/3.4.0c1/src/persistent
ThreadedAsync  svn://svn.zope.org/repos/main/ZODB/tags/3.4.0c1/src/ThreadedAsync
transactionsvn://svn.zope.org/repos/main/ZODB/tags/3.4.0c1/src/transaction
ZEOsvn://svn.zope.org/repos/main/ZODB/tags/3.4.0c1/src/ZEO
ZODB   svn://svn.zope.org/repos/main/ZODB/tags/3.4.0c1/src/ZODB
ZopeUndo   svn://svn.zope.org/repos/main/ZODB/tags/3.4.0c1/src/ZopeUndo
zdaemonsvn://svn.zope.org/repos/main/zdaemon/tags/zdaemon-Zope-2-8-0



Property changes on: Zope/branches/Zope-2_8-branch/utilities
___
Name: svn:externals
   - ZODBTools  svn://svn.zope.org/repos/main/ZODB/tags/3.4.0b3/src/scripts

   + ZODBTools  svn://svn.zope.org/repos/main/ZODB/tags/3.4.0c1/src/scripts


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


[Zope-dev] Re: [Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ preparing 2.8.0 release for tomorrow

2005-06-03 Thread Tim Peters
[Andreas Jung]
 Log message for revision 30622:
  preparing 2.8.0 release for tomorrow

Andreas, which release will this be?  If it's 2.8 final, I need to
make a ZODB 3.4 to match it.  According to

http://www.zope.org/Wikis/DevSite/Projects/Zope2.8/MilestonePlan

there wasn't another Zope 2.8 release scheduled until 2005/06/11, so
I'm feeling a little lost here.
___
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] Re: [Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ preparing 2.8.0 release for tomorrow

2005-06-03 Thread Andreas Jung


Hi,

after resolving all outstanding problems with Zope 2.8 under Windows the 
next
releases will be Zope 2.8 b2 (this weekend) and Zope 2.8.0 final (scheduled 
for

2005/06/11).

I will cut a 2.8 release branch for Zope 2.8 b2. This means that the trunk
is open for new development (Zope 2.9). Bugs (as always) have to be fixed
on the 2.8 branch, SVN trunk and 2.7 branch (CVS).

Andreas



--On 3. Juni 2005 17:38:35 -0400 Tim Peters [EMAIL PROTECTED] wrote:


[Andreas Jung]

Log message for revision 30622:
 preparing 2.8.0 release for tomorrow


Andreas, which release will this be?  If it's 2.8 final, I need to
make a ZODB 3.4 to match it.  According to

http://www.zope.org/Wikis/DevSite/Projects/Zope2.8/MilestonePlan

there wasn't another Zope 2.8 release scheduled until 2005/06/11, so
I'm feeling a little lost here.
___
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 )


pgpVQlHo0NGQo.pgp
Description: PGP signature
___
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] MySQL timestamp issue

2005-06-03 Thread Chris Withers

Hugo Ramos wrote:

Could anyone explain me why this works in Zope 2.7.0 final and doesn't
work in Zope 2.7.6 final and/or 2.8.0b1 ??


If Zope is really hanging, look at DeadlockDebugger and find out where 
it's hanging...


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] importing encode_base64

2005-06-03 Thread Chris Withers

Andreas Jung wrote:
..the standard answer: allow_module is not a solution for all and 
everything. 


WEll, it SHOULD work as advertised. I've always felt that stuff was 
flakey, be interesting to see some concrete bug reports...


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] MySQL timestamp issue

2005-06-03 Thread Hugo Ramos
I already know what exactly makes Zope hang!
The problem is located at times.py that was installed by MySQL-Python
1.2.0 (MySQL-python.exe-1.2.0.win32-py2.4.zip)

==OLD==
def mysql_timestamp_converter(s):
Convert a MySQL TIMESTAMP to a Timestamp object.
s = s + 0*(14-len(s)) # padding
parts = map(int, filter(None, (s[:4],s[4:6],s[6:8],
   s[8:10],s[10:12],s[12:14])))
try: return apply(Timestamp, tuple(parts))
except: return None
==OLD==

HACKED
import DateTime

def mysql_timestamp_converter(s):
Convert a MySQL TIMESTAMP to a Timestamp object.
s = s + 0*(14-len(s)) # padding
parts = map(int, filter(None, (s[:4],s[4:6],s[6:8],
   s[8:10],s[10:12],s[12:14])))
try: return apply(DateTime.DateTime, tuple(parts))
except: return None
HACKED

Oren Goldschmidt helped me here and we just made a very nasty hack...
As you can see we imported DateTime and replaced the Timestamp inside
the try statement.

This makes Zope behave!!! But it's a nasty hack that could break other
stuff around there.

Comments???


Cheers
Hugo



On 6/3/05, Chris Withers [EMAIL PROTECTED] wrote:
 Hugo Ramos wrote:
  Could anyone explain me why this works in Zope 2.7.0 final and doesn't
  work in Zope 2.7.6 final and/or 2.8.0b1 ??
 
 If Zope is really hanging, look at DeadlockDebugger and find out where
 it's hanging...
 
 Chris
 
 --
 Simplistix - Content Management, Zope  Python Consulting
 - http://www.simplistix.co.uk
 
 


-- 
Hugo Ramos - [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] Max Connections

2005-06-03 Thread Nicholas Avenell
Watching our Zope servers, they don't ever seem to be handling very many
connections at a time. Where can I find out (and increase, probably) the
Max number of connections Zope's serving?

(This is Z2.6.4)

___
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] Max Connections

2005-06-03 Thread Pascal Peregrina
2 parameters in zope.conf :
zserver-threads (main section) : the number of threads (i.e. incoming
request) Zope will try to handle simultaneously

But if you increase this value, you must also increase :
pool-size (zodb_db/zodb_db section) : the connection pool size to the
ZODB 

By default, zserver-threads is set to 4 and pool-size is set to 7 (as far as
I could read in Zope code).
So what I did is that I increased zserver-threads to 10 and pool-size to 15.
It works fine for me.

Pascal

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de
Nicholas Avenell
Envoyé : vendredi 3 juin 2005 12:40
À : zope@zope.org
Objet : [Zope] Max Connections


Watching our Zope servers, they don't ever seem to be handling very many
connections at a time. Where can I find out (and increase, probably) the
Max number of connections Zope's serving?

(This is Z2.6.4)

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


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.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] Max Connections

2005-06-03 Thread Germer, Carsten
Pascal,
Would you be so kind to send the zodb-part of your config?
I Increased the zserver-threads for exactly the mentioned reasons but I was not 
aware of the connectio pool-parameter, nor can I find it anywhere in my 
zope.conf :)

Thanks in Advance! /Carsten

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
Behalf Of Pascal Peregrina
Sent: Friday, June 03, 2005 12:47 PM
To: 'Nicholas Avenell'; zope@zope.org
Subject: RE: [Zope] Max Connections


2 parameters in zope.conf :
zserver-threads (main section) : the number of threads (i.e. incoming
request) Zope will try to handle simultaneously

But if you increase this value, you must also increase :
pool-size (zodb_db/zodb_db section) : the connection pool 
size to the
ZODB 

By default, zserver-threads is set to 4 and pool-size is set 
to 7 (as far as
I could read in Zope code).
So what I did is that I increased zserver-threads to 10 and 
pool-size to 15.
It works fine for me.

Pascal

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de
Nicholas Avenell
Envoyé : vendredi 3 juin 2005 12:40
À : zope@zope.org
Objet : [Zope] Max Connections


Watching our Zope servers, they don't ever seem to be handling 
very many
connections at a time. Where can I find out (and increase, 
probably) the
Max number of connections Zope's serving?

(This is Z2.6.4)

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


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.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 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] Max Connections

2005-06-03 Thread Janko Hauser


Am 03.06.2005 um 12:54 schrieb Germer, Carsten:


Pascal,
Would you be so kind to send the zodb-part of your config?
I Increased the zserver-threads for exactly the mentioned reasons  
but I was not aware of the connectio pool-parameter, nor can I  
find it anywhere in my zope.conf :)


Carsten look into lib/python/ZODB/component.xml There are all ZConfig  
directives defined and their defaults. From this I would assume the  
following ZODB config


zodb_db main
# Main FileStorage database
filestorage
  path $INSTANCE/var/Data.fs
/filestorage
mount-point /
cache-size 8000
pool-size 15
/zodb_db

HTH,

__Janko

___
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] Max Connections

2005-06-03 Thread Pascal Peregrina
Yup, that's what I did.

I read somewhere that if you don't increase the pool size, as each request
needs a connection object to the ZODB, then some of them may have to wait
until one connection is freed by the others, which makes the zserver-threads
increase useless...

Pascal

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de
Janko Hauser
Envoyé : vendredi 3 juin 2005 13:06
À : Germer, Carsten
Cc : zope@zope.org
Objet : Re: [Zope] Max Connections



Am 03.06.2005 um 12:54 schrieb Germer, Carsten:

 Pascal,
 Would you be so kind to send the zodb-part of your config?
 I Increased the zserver-threads for exactly the mentioned reasons  
 but I was not aware of the connectio pool-parameter, nor can I  
 find it anywhere in my zope.conf :)

Carsten look into lib/python/ZODB/component.xml There are all ZConfig  
directives defined and their defaults. From this I would assume the  
following ZODB config

zodb_db main
 # Main FileStorage database
 filestorage
   path $INSTANCE/var/Data.fs
 /filestorage
 mount-point /
 cache-size 8000
 pool-size 15
/zodb_db

HTH,

__Janko

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


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.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] Max Connections

2005-06-03 Thread Germer, Carsten
Yay, fine, thanks!
And while we're at it:
What exactly does cache-size 8000 do?
8000 what? Objects, Kilobytes? Per connection in Pool size or over all?
Can someone point me out to a document explaining that?

/Carsten


-Original Message-
From: Janko Hauser [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 03, 2005 1:06 PM
To: Germer, Carsten
Cc: zope@zope.org
Subject: Re: [Zope] Max Connections



Am 03.06.2005 um 12:54 schrieb Germer, Carsten:

 Pascal,
 Would you be so kind to send the zodb-part of your config?
 I Increased the zserver-threads for exactly the mentioned reasons  
 but I was not aware of the connectio pool-parameter, nor can I  
 find it anywhere in my zope.conf :)

Carsten look into lib/python/ZODB/component.xml There are all ZConfig  
directives defined and their defaults. From this I would assume the  
following ZODB config

zodb_db main
 # Main FileStorage database
 filestorage
   path $INSTANCE/var/Data.fs
 /filestorage
 mount-point /
 cache-size 8000
 pool-size 15
/zodb_db

HTH,

__Janko


___
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] Just getting started

2005-06-03 Thread fs1



Can someone help me with the followinggeneral 
questions 

1.My goal is to 
use CMF so that it acts like an online newspaper. If I decide to install 
CMF, do I need my own in-house server? Or can I pick and choose from any 
provider to install the package?2. Does knowingsome PHP, ASP and 
perl help?ThanksFrank
___
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] Just getting started

2005-06-03 Thread Lennart Regebro
On 6/3/05, fs1 [EMAIL PROTECTED] wrote:
 Can someone help me with the following general questions 

 1.My goal is to use CMF so that it acts like an online newspaper.  If I
 decide to install CMF, do I need my own in-house server? Or can I pick and
 choose from any provider to install the package?

There are providers that are hosting Zope, sure. They can help.
When it comes to CMF, you should know that CMF is only a framework to
build content management solutions. You will probably be happier if
you use one of the finished solutions built on CMF, such as CPS or
Plone.

 2. Does knowing some  PHP, ASP and perl help?

Yes, it does, because knowing ASP and PERL will make you thank your
lucky star that you're not using any of them anymore. :-) I do.

--
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] Max Connections

2005-06-03 Thread Pascal Peregrina
cache-size is the max number of objects each connection will try to keep in
memory.

You can see how it is currently performing when you go to the ZMI - Control
Panel - Database Management - main - Cache Parameters
Each line of the table is a connection of the pool.
The total number of active an non active objects limited by the cache-size
param.
If you see, during normal operation, that most of the connections are
reaching that limit, then you could try to increase it.
But be careful not to run out of Memory ;)

For ZEO users, there may be another parameter to change if you modify the
cache-size param, which is the cache-size param within the
zeoclient/zeoclient section. This param, although it has the same name,
means something completely different.

But this does not apply to the below example that uses a filestorage for the
ZODB.

Pascal

-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] la part de
Germer, Carsten
Envoyé : vendredi 3 juin 2005 13:11
À : zope@zope.org
Objet : RE: [Zope] Max Connections


Yay, fine, thanks!
And while we're at it:
What exactly does cache-size 8000 do?
8000 what? Objects, Kilobytes? Per connection in Pool size or over all?
Can someone point me out to a document explaining that?

/Carsten


-Original Message-
From: Janko Hauser [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 03, 2005 1:06 PM
To: Germer, Carsten
Cc: zope@zope.org
Subject: Re: [Zope] Max Connections



Am 03.06.2005 um 12:54 schrieb Germer, Carsten:

 Pascal,
 Would you be so kind to send the zodb-part of your config?
 I Increased the zserver-threads for exactly the mentioned reasons  
 but I was not aware of the connectio pool-parameter, nor can I  
 find it anywhere in my zope.conf :)

Carsten look into lib/python/ZODB/component.xml There are all ZConfig  
directives defined and their defaults. From this I would assume the  
following ZODB config

zodb_db main
 # Main FileStorage database
 filestorage
   path $INSTANCE/var/Data.fs
 /filestorage
 mount-point /
 cache-size 8000
 pool-size 15
/zodb_db

HTH,

__Janko


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


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.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] Max Connections

2005-06-03 Thread Germer, Carsten
Thanks a bunch *off tweaking parameters*

-Original Message-
From: Pascal Peregrina [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 03, 2005 1:45 PM
To: Germer, Carsten
Cc: 'zope@zope.org'
Subject: RE: [Zope] Max Connections


cache-size is the max number of objects each connection will 
try to keep in
memory.

You can see how it is currently performing when you go to the 
ZMI - Control
Panel - Database Management - main - Cache Parameters
Each line of the table is a connection of the pool.
The total number of active an non active objects limited by 
the cache-size
param.
If you see, during normal operation, that most of the connections are
reaching that limit, then you could try to increase it.
But be careful not to run out of Memory ;)

For ZEO users, there may be another parameter to change if you 
modify the
cache-size param, which is the cache-size param within the
zeoclient/zeoclient section. This param, although it has 
the same name,
means something completely different.

But this does not apply to the below example that uses a 
filestorage for the
ZODB.

Pascal

-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] la part de
Germer, Carsten
Envoyé : vendredi 3 juin 2005 13:11
À : zope@zope.org
Objet : RE: [Zope] Max Connections


Yay, fine, thanks!
And while we're at it:
What exactly does cache-size 8000 do?
8000 what? Objects, Kilobytes? Per connection in Pool size or over all?
Can someone point me out to a document explaining that?

/Carsten


-Original Message-
From: Janko Hauser [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 03, 2005 1:06 PM
To: Germer, Carsten
Cc: zope@zope.org
Subject: Re: [Zope] Max Connections



Am 03.06.2005 um 12:54 schrieb Germer, Carsten:

 Pascal,
 Would you be so kind to send the zodb-part of your config?
 I Increased the zserver-threads for exactly the mentioned reasons  
 but I was not aware of the connectio pool-parameter, nor can I  
 find it anywhere in my zope.conf :)

Carsten look into lib/python/ZODB/component.xml There are all 
ZConfig  
directives defined and their defaults. From this I would assume the  
following ZODB config

zodb_db main
 # Main FileStorage database
 filestorage
   path $INSTANCE/var/Data.fs
 /filestorage
 mount-point /
 cache-size 8000
 pool-size 15
/zodb_db

HTH,

__Janko


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


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.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 )


Fwd: [Zope] Just getting started

2005-06-03 Thread Lennart Regebro
 thanks for the reply. Can you suggest a provider? 

Sorry, no. But I'm sure others can.

 and do you think I could be up and running in a short time frame?

Sure setting up CPS is usually not a big problem at least.
-- 
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] MySQL timestamp issue

2005-06-03 Thread Andy Dustman
On 6/3/05, Hugo Ramos [EMAIL PROTECTED] wrote:
 I already know what exactly makes Zope hang!
 The problem is located at times.py that was installed by MySQL-Python
 1.2.0 (MySQL-python.exe-1.2.0.win32-py2.4.zip)

This is a package for Python-2.4. Are you using Python-2.4 with
Zope-2.7? If you are, the line of people prepared to yell at you is
long and distinquished.

What version of ZMySQLDA are you using? Only 2.0.9b3 will work
properly with MySQLdb-1.2.0.
-- 
Computer interfaces should never be made of meat.
http://www.terrybisson.com/meat.html
___
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] recommend a provider

2005-06-03 Thread fs1



Can someone recommend a zope enabled internet 
provider?
Frank
___
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] recommend a provider

2005-06-03 Thread Martin Koekenberg

Hello Frank,

Where do you want a zope provider and what do you expect from that 
provider ?

Martin Koekenberg

-Original 
Message-From: fs1 [EMAIL PROTECTED]To: zope@zope.org
Date: Fri, 03 Jun 2005 08:13:15 -0400Subject: [Zope] recommend a 
provider
Can someone recommend a zope enabled internet 
provider?
Frank

___
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] recommend a provider

2005-06-03 Thread Martin Koekenberg

I can offer you zope hosting in the Netherlands (Zwolle).We are 
just starting this service after good experiance with zope development foor 
ourselfs.

Martin
-Original 
Message-From: fs1 [EMAIL PROTECTED]To: Martin Koekenberg 
[EMAIL PROTECTED]Date: Fri, 03 Jun 2005 08:20:59 
-0400Subject: Re: [Zope] recommend a provider
I'm looking for one that would have enough 
modules so that I can create an online newspaper. As for the location, I 
dont think that matters...yes?
Frank

- Original Message - 

From: 
Martin Koekenberg 
To: 
zope@zope.org 
Sent: Friday, June 03, 2005 8:16 
AM
Subject: Re: [Zope] recommend a 
provider

Hello Frank,

Where do you want a zope provider and what do you expect from that 
provider ?

Martin Koekenberg

-Original 
Message-From: fs1 
[EMAIL PROTECTED]To: 
zope@zope.orgDate: Fri, 03 Jun 2005 08:13:15 -0400Subject: 
[Zope] recommend a provider
Can someone recommend a zope enabled internet 
provider?
Frank



___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] Calling a page template from a DTML document

2005-06-03 Thread John Poltorak

Is there any way of getting a DTML document to use a page template to 
build part of a page?

Some sample code would be handy as an illustration if what I want to do is 
possible.



-- 
John


___
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] MySQL timestamp issue

2005-06-03 Thread Hugo Ramos
Yellow,

I wrote the wrong version.
I'm using MySQL 4.0.24 + Zope 276 + mysql-python 1.0.0 + ZMySQLDA 2.0.9b3

This is the DTML code generating the error:
dtml-var docdataemissao fmt=%Y-%m-%d

docdataemissao is a timestamp field in a table like:
200406011023

The traceback:
Error Type: ValueError
Error Value: unsupported format character 'Y' (0x59) at index 1

[...]
Module DocumentTemplate.DT_String, line 474, in __call__ 
Module DocumentTemplate.DT_In, line 703, in renderwob 
Module DocumentTemplate.DT_Var, line 280, in render
__traceback_info__: ('docdataemissao', DateTime object for
'2005-06-01 12:34:45.00' at 19878e0, {'': 'docdataemissao', 'fmt':
'%Y-%m-%d'})

Any ideas???


Cheers
Hugo



On 6/3/05, Andy Dustman [EMAIL PROTECTED] wrote:
 On 6/3/05, Hugo Ramos [EMAIL PROTECTED] wrote:
  I already know what exactly makes Zope hang!
  The problem is located at times.py that was installed by MySQL-Python
  1.2.0 (MySQL-python.exe-1.2.0.win32-py2.4.zip)
 
 This is a package for Python-2.4. Are you using Python-2.4 with
 Zope-2.7? If you are, the line of people prepared to yell at you is
 long and distinquished.
 
 What version of ZMySQLDA are you using? Only 2.0.9b3 will work
 properly with MySQLdb-1.2.0.
 --
 Computer interfaces should never be made of meat.
 http://www.terrybisson.com/meat.html
 


-- 
Hugo Ramos - [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] Uploading files

2005-06-03 Thread Varun Parange
hi,

how do i uploada filein Zope using a python script??

regards,
varun__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://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] Uploading files

2005-06-03 Thread Brian Sullivan
  
 how do i upload a file in Zope using a python script??
  
 

http://www.zopelabs.com/cookbook/1006887320

is probably a place to start.
___
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] Calling a page template from a DTML document

2005-06-03 Thread J Cameron Cooper

John Poltorak wrote:
Is there any way of getting a DTML document to use a page template to 
build part of a page?


Some sample code would be handy as an illustration if what I want to do is 
possible.


Just call it exactly like you might do with, well, anything else::

  dtml-var somepatetemplate

Did you try this?

--jcc
--
Building Websites with Plone
http://plonebook.packtpub.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] Uploading files

2005-06-03 Thread Tino Wildenhain
Am Freitag, den 03.06.2005, 11:09 -0600 schrieb Nikko Wolf:
 Brian Sullivan wrote:
  
 how do i upload a file in Zope using a python script??
  
  
  http://www.zopelabs.com/cookbook/1006887320
  
  is probably a place to start.
 
 On that topic: I've got my file upload working properly (it forwards the 
 file data to an external site, then saves only if validation works).
 
 But I just started to wonder about something; all my tests have been 
 with relatively small files (~40KB) but my end users may be uploading 
 some very large files (possibly as large as 500KB, although not for months).
 
 In my python script I use:
 filedata = container.REQUEST.file.read()
 then merge this data into a MIME submission for the external web site, 
 and on success, save it locally as a file.
 
 My question is -- aside from memory usage, what problems might there be 
 with this approach?
 
 Will the read() return all the content, or is there a possibility that 
 it will return less than the full file contents?  Any timeout issues 
 that I should consider?

Of course does read() return all the data in one string - the python
documentation leaves no doubt here.
You might consider reading in chunks, encoding them while you send
and if validation is successfull, rewind by file.seek(0)
and then manage_addFile() directly with the file object.

Timeout can be an issue with large files and when the remote
server is slow. In this case, you can send some data to the 
clients browser while you work, via context.REQUEST.RESPONSE.write()
Note: once you start using response.write() you cannot use return()
in your script - at least the user wont see any output from it.
You also should catch exeptions and provide meaningfull output
when they happen since the usual exeption handling will work but
the user wont see its output.



___
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] recommend a provider

2005-06-03 Thread Dave Kuhlman
On Fri, Jun 03, 2005 at 08:13:15AM -0400, fs1 wrote:
 Can someone recommend a zope enabled internet provider?
 Frank

Here are several you can look into:

- http://www.objectis.org/

- http://www.zettai.net/

- http://www.python-hosting.com/

Which is right for you depends on what capabilities your need:

- High volume?

- Access to the ZMI?

- Ability to install Zope Products?

- Ability to implement external methods?

- Access to a relational database?

- Etc.

Some Zope hosting providers offer a range of plans at different
costs and with different capabilities.

And, you can also look in this list of resources:

http://www.zope.org/Resources/ZSP

Also, of course, do a search for zope hosting in your favorite
Web search tool.

Dave

-- 
Dave Kuhlman
http://www.rexx.com/~dkuhlman
___
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] POP3 servers

2005-06-03 Thread Varun Parange
hi,

which are some POP3 servers i can download for free, which are interfaceable with Zope

regards,
varun
		Discover Yahoo! 
Get on-the-go sports scores, stock quotes, news & more. Check it out!___
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] importing encode_base64

2005-06-03 Thread Tino Wildenhain
Am Donnerstag, den 02.06.2005, 10:34 -0700 schrieb Varun Parange:
 hi,
  
 i am having problems importing encode_base64
  
 i have created a product in which i have specified:
 '''
 from AccessControl import allow_module, allow_class, allow_type
 from AccessControl import ModuleSecurityInfo, ClassSecurityInfo
 from email.Encoders import encode_base64
 
 allow_class(encode_base64)
  
 ''
  
 however when i try using it:
  
 from Products.EmailTools import
 MIMEText,MIMEBase,MIMEMultipart,Header,encode_base64
 
 i get an error saying:
 
 Error Type: ImportError
 Error Value: cannot import name encode_base64
 
 All other modules are imported except this one...
 
Thats funny. I do the same and it works.


___
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] importing encode_base64

2005-06-03 Thread Paul Winkler
On Fri, Jun 03, 2005 at 10:50:25PM +0200, Tino Wildenhain wrote:
 Am Donnerstag, den 02.06.2005, 10:34 -0700 schrieb Varun Parange:
  however when i try using it:
   
  from Products.EmailTools import
  MIMEText,MIMEBase,MIMEMultipart,Header,encode_base64
  
  i get an error saying:
  
  Error Type: ImportError
  Error Value: cannot import name encode_base64
  
  All other modules are imported except this one...
  
 Thats funny. I do the same and it works.

What zope versions are you guys running?

Just now I saw something that *may* be related,
some imports that were fine on zope 2.7.3 are giving me
trouble on 2.7.6, but this is a very preliminary observation
and i have not had time to troubleshoot yet.  Monday...

-- 

Paul Winkler
http://www.slinkp.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] Calling a page template from a DTML document

2005-06-03 Thread Dieter Maurer
John Poltorak wrote at 2005-6-3 14:03 +0100:
Is there any way of getting a DTML document to use a page template to 
build part of a page?

Sure: it calls the template.

Some sample code would be handy as an illustration if what I want to do is 
possible.

Assume template is a template acquirable from the DTML objects
context. Then

 dtml-var template

will render template.

When you want to pass arguments to template, this looks like

 dtml-var expr=template(a1, a2, ..., kw1=v1, kw2=... )

The arguments are available in template via the predefined
variable options. The Zope Book tells you more...


As you (hopefully) see: you use page templates in DTML like
any other (callable) object.


-- 
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] importing encode_base64

2005-06-03 Thread Dieter Maurer
Varun Parange wrote at 2005-6-2 10:34 -0700:
i am having problems importing encode_base64
 
i have created a product in which i have specified:
'''
from AccessControl import allow_module, allow_class, allow_type
from AccessControl import ModuleSecurityInfo, ClassSecurityInfo
from email.Encoders import encode_base64

allow_class(encode_base64)
 
''
 
however when i try using it:
 
from Products.EmailTools import 
MIMEText,MIMEBase,MIMEMultipart,Header,encode_base64

i get an error saying:

Error Type: ImportError
Error Value: cannot import name encode_base64

You use allow_class in the wrong way:

  encode_base64 is not a class but a function.

  allow_class sets security declarations such that the
  attributes of instances of this class can be accessed
  without restrictions. However, there are no instances
  of a function...

What you almost surely want is:

 ModuleSecurityInfo('email.Encoders').declarePublic('encode_base64')

 ...
-
Discover Yahoo!
 Have fun online with music videos, cool games, IM  more. Check it 
 out!DIVhi,/DIV
DIVnbsp;/DIV

Please sent plain text only messages...


-- 
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] MySQL timestamp issue

2005-06-03 Thread Andy Dustman
On 6/3/05, Hugo Ramos [EMAIL PROTECTED] wrote:
 Yellow,
 
 I wrote the wrong version.
 I'm using MySQL 4.0.24 + Zope 276 + mysql-python 1.0.0 + ZMySQLDA 2.0.9b3

Take a look at ZMySQLDA/db.py:

http://cvs.sourceforge.net/viewcvs.py/mysql-python/ZMySQLDA/lib/python/Products/ZMySQLDA/db.py?rev=1.21view=auto

You may need to add a line like this to the DB class:

conv[FIELD_TYPE.TIMESTAMP] = _mysql_timestamp_converter

Not sure why this is missing.

-- 
Computer interfaces should never be made of meat.
http://www.terrybisson.com/meat.html
___
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] Modifying a Dictionaries in an Extenal Method

2005-06-03 Thread Corporate Email Corp.
Zopistas:

Does Zope allos an external method to modify a dictionary object that
is passed to the external method via the REQUEST object.

I am working with the object:

items_list = [{'element1':'element1value',
'element2':'element2value','element3': element3value},{},]

I am getting trouble with with this as  any time I try to modify any
dictionary  from items_list,  items_list[n]   I do get an error
similar to:

 line 120, in agregaItemDicts def agregaItemLista2(self,item,REQUEST):
File /usr/local/Zope-2.7.4/lib/python/ZPublisher/HTTPRequest.py,
line 1502, in __getattr__ raise AttributeError, key AttributeError:
__setitem__

It looks like the dictionary is behaving as if it not were a mutable
object (as it is in Python),  I have no trouble modifying the  list
'items_list' itself.

i have read a bit about dictionaries persistence and calling  
_p_changed=1   bu have not had any luck so far.   I am using an
external method, not a product.

Any ideas would be appreciated..

Best regards.
___
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 )