[Zope-Checkins] SVN: Zope/trunk/lib/python/AccessControl/Permissions.py added change_page_templates

2006-02-25 Thread Andreas Jung
Log message for revision 47477:
  added change_page_templates
  

Changed:
  U   Zope/trunk/lib/python/AccessControl/Permissions.py

-=-
Modified: Zope/trunk/lib/python/AccessControl/Permissions.py
===
--- Zope/trunk/lib/python/AccessControl/Permissions.py  2004-07-26 13:54:52 UTC 
(rev 47476)
+++ Zope/trunk/lib/python/AccessControl/Permissions.py  2006-02-25 17:11:24 UTC 
(rev 47477)
@@ -38,6 +38,7 @@
 change_python_scripts='Change Python Scripts'
 change_versions='Change Versions'
 change_configuration='Change configuration'
+change_page_templates='Change Page Templates'
 change_permissions='Change permissions'
 change_proxy_roles='Change proxy roles'
 create_class_instances='Create class instances'

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


[Zope-Checkins] SVN: - putting Five into its final resting place

2006-02-25 Thread Jens Vagelpohl
Log message for revision 65450:
  - putting Five into its final resting place

Changed:
  A   Products.Five/
  D   z3/Five/

-=-
Copied: Products.Five (from rev 65449, z3/Five)

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


[Zope-Checkins] SVN: Products.Five/branch Codespeak conventions - svn.zope.org conventions.

2006-02-25 Thread Philipp von Weitershausen
Log message for revision 65452:
  Codespeak conventions - svn.zope.org conventions.
  

Changed:
  D   Products.Five/branch/
  A   Products.Five/branches/

-=-
Copied: Products.Five/branches (from rev 65451, Products.Five/branch)

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


[Zope-Checkins] SVN: Products.Five/tag Codespeak conventions - svn.zope.org conventions.

2006-02-25 Thread Philipp von Weitershausen
Log message for revision 65453:
  Codespeak conventions - svn.zope.org conventions.
  

Changed:
  D   Products.Five/tag/
  A   Products.Five/tags/

-=-
Copied: Products.Five/tags (from rev 65452, Products.Five/tag)

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


[Zope-Checkins] SVN: Products.Five/branches/Five-1.2/ Backport r22056 from Five's former trunk at codespeak.net:

2006-02-25 Thread Philipp von Weitershausen
Log message for revision 65458:
  Backport r22056 from Five's former trunk at codespeak.net:
Unit tests that did i18n via Localizer would fail because the request 
attribute that keeps Localizers list of preferred languages did not exist. 
  

Changed:
  U   Products.Five/branches/Five-1.2/CHANGES.txt
  U   Products.Five/branches/Five-1.2/i18n.py

-=-
Modified: Products.Five/branches/Five-1.2/CHANGES.txt
===
--- Products.Five/branches/Five-1.2/CHANGES.txt 2006-02-25 19:05:27 UTC (rev 
65457)
+++ Products.Five/branches/Five-1.2/CHANGES.txt 2006-02-25 19:38:55 UTC (rev 
65458)
@@ -13,6 +13,10 @@
   ``__bobo_traverse__`` is tried.  If that does not exist, Traversable
   resorts to attribute look-up.
 
+* Unit tests that did i18n via Localizer would fail because the
+  request attribute that keeps Localizers list of preferred languages
+  did not exist.
+
 Five 1.2 (2006-01-07)
 =
 

Modified: Products.Five/branches/Five-1.2/i18n.py
===
--- Products.Five/branches/Five-1.2/i18n.py 2006-02-25 19:05:27 UTC (rev 
65457)
+++ Products.Five/branches/Five-1.2/i18n.py 2006-02-25 19:38:55 UTC (rev 
65458)
@@ -62,6 +62,9 @@
 self.context = context
 
 def getPreferredLanguages(self):
+if not hasattr(self.context, 'AcceptLanguage'):
+return []
+
 accept_language = self.context.AcceptLanguage
 langs = []
 for lang, node in accept_language.children.items():

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


[Zope-Checkins] SVN: Products.Five/branches/Five-1.2/ Prepare for release

2006-02-25 Thread Philipp von Weitershausen
Log message for revision 65459:
  Prepare for release
  

Changed:
  U   Products.Five/branches/Five-1.2/CHANGES.txt
  U   Products.Five/branches/Five-1.2/version.txt

-=-
Modified: Products.Five/branches/Five-1.2/CHANGES.txt
===
--- Products.Five/branches/Five-1.2/CHANGES.txt 2006-02-25 19:38:55 UTC (rev 
65458)
+++ Products.Five/branches/Five-1.2/CHANGES.txt 2006-02-25 19:39:27 UTC (rev 
65459)
@@ -2,7 +2,7 @@
 Five Changes
 
 
-Five 1.2.1 (unreleased)
+Five 1.2.1 (2006-02-26)
 ===
 
 Bugfixes

Modified: Products.Five/branches/Five-1.2/version.txt
===
--- Products.Five/branches/Five-1.2/version.txt 2006-02-25 19:38:55 UTC (rev 
65458)
+++ Products.Five/branches/Five-1.2/version.txt 2006-02-25 19:39:27 UTC (rev 
65459)
@@ -1 +1 @@
-Five 1.2
+Five 1.2.1

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


[Zope-Checkins] SVN: Products.Five/branches/Five-1.3/ prepare for release

2006-02-25 Thread Philipp von Weitershausen
Log message for revision 65460:
  prepare for release
  

Changed:
  U   Products.Five/branches/Five-1.3/CHANGES.txt
  U   Products.Five/branches/Five-1.3/version.txt

-=-
Modified: Products.Five/branches/Five-1.3/CHANGES.txt
===
--- Products.Five/branches/Five-1.3/CHANGES.txt 2006-02-25 19:39:27 UTC (rev 
65459)
+++ Products.Five/branches/Five-1.3/CHANGES.txt 2006-02-25 19:43:09 UTC (rev 
65460)
@@ -2,7 +2,7 @@
 Five Changes
 
 
-Five 1.3.2 (unreleased)
+Five 1.3.2 (2006-02-25)
 ===
 
 Bugfixes
@@ -13,8 +13,9 @@
   ``__bobo_traverse__`` is tried.  If that does not exist, Traversable
   resorts to attribute look-up.
 
-* Unit tests that did i18n via Localizer would fail because the request 
-  attribute that keeps Localizers list of preferred languages did not exist. 
+* Unit tests that did i18n via Localizer would fail because the
+  request attribute that keeps Localizers list of preferred languages
+  did not exist.
 
 Five 1.3.1 (2006-01-08)
 ===
@@ -102,6 +103,21 @@
   components has been removed as that functionality is now in the Zope
   2 core as of Zope 2.9.
 
+Five 1.2.1 (2006-02-25)
+===
+
+Bugfixes
+
+
+* Five's traversing machinery now mimicks the ZPublisher correctly:
+  When no Zope 3-style view is found, first the object's original
+  ``__bobo_traverse__`` is tried.  If that does not exist, Traversable
+  resorts to attribute look-up.
+
+* Unit tests that did i18n via Localizer would fail because the
+  request attribute that keeps Localizers list of preferred languages
+  did not exist.
+
 Five 1.2 (2006-01-07)
 =
 

Modified: Products.Five/branches/Five-1.3/version.txt
===
--- Products.Five/branches/Five-1.3/version.txt 2006-02-25 19:39:27 UTC (rev 
65459)
+++ Products.Five/branches/Five-1.3/version.txt 2006-02-25 19:43:09 UTC (rev 
65460)
@@ -1 +1 @@
-Five 1.3.1
+Five 1.3.2

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


[Zope-Checkins] SVN: Products.Five/trunk/formlib/ Minor license header cleanup

2006-02-25 Thread Philipp von Weitershausen
Log message for revision 65461:
  Minor license header cleanup
  

Changed:
  UU  Products.Five/trunk/formlib/formbase.py
  UU  Products.Five/trunk/formlib/tests/content.py
  UU  Products.Five/trunk/formlib/tests/test_formlib.py
  UU  Products.Five/trunk/formlib/tests/view.py

-=-
Modified: Products.Five/trunk/formlib/formbase.py
===
--- Products.Five/trunk/formlib/formbase.py 2006-02-25 19:43:09 UTC (rev 
65460)
+++ Products.Five/trunk/formlib/formbase.py 2006-02-25 19:50:17 UTC (rev 
65461)
@@ -1,6 +1,6 @@
 ##
 #
-# Copyright (c) 2004, 2005 Zope Corporation and Contributors.
+# Copyright (c) 2006 Zope Corporation and Contributors.
 # All Rights Reserved.
 #
 # This software is subject to the provisions of the Zope Public License,
@@ -12,15 +12,17 @@
 #
 ##
 Five baseclasses for zope.formlib.form
+
+$Id$
 
 from datetime import datetime
 import Acquisition
 
-from zope import interface
 import zope.event
 import zope.app.event.objectevent
+from zope import interface
+from zope.formlib import interfaces, form, namedtemplate
 from zope.app.i18n import ZopeMessageFactory as _
-from zope.formlib import interfaces, form, namedtemplate
 
 from Products.Five.browser.pagetemplatefile import ZopeTwoPageTemplateFile
 from Products.Five.browser.decode import processInputs, setPageEncoding


Property changes on: Products.Five/trunk/formlib/formbase.py
___
Name: svn:keywords
   + Id

Modified: Products.Five/trunk/formlib/tests/content.py
===
--- Products.Five/trunk/formlib/tests/content.py2006-02-25 19:43:09 UTC 
(rev 65460)
+++ Products.Five/trunk/formlib/tests/content.py2006-02-25 19:50:17 UTC 
(rev 65461)
@@ -57,4 +57,3 @@
 self.somelist = somelist
 
 InitializeClass(Content)
-
\ No newline at end of file


Property changes on: Products.Five/trunk/formlib/tests/content.py
___
Name: svn:keywords
   + Id

Modified: Products.Five/trunk/formlib/tests/test_formlib.py
===
--- Products.Five/trunk/formlib/tests/test_formlib.py   2006-02-25 19:43:09 UTC 
(rev 65460)
+++ Products.Five/trunk/formlib/tests/test_formlib.py   2006-02-25 19:50:17 UTC 
(rev 65461)
@@ -1,6 +1,6 @@
 ##
 #
-# Copyright (c) 2004, 2005 Zope Corporation and Contributors.
+# Copyright (c) 2006 Zope Corporation and Contributors.
 # All Rights Reserved.
 #
 # This software is subject to the provisions of the Zope Public License,
@@ -13,7 +13,7 @@
 ##
 Test forms
 
-$Id: test_forms.py 19283 2005-10-31 17:43:51Z philikon $
+$Id$
 
 import os, sys
 if __name__ == '__main__':


Property changes on: Products.Five/trunk/formlib/tests/test_formlib.py
___
Name: svn:keywords
   + Id

Modified: Products.Five/trunk/formlib/tests/view.py
===
--- Products.Five/trunk/formlib/tests/view.py   2006-02-25 19:43:09 UTC (rev 
65460)
+++ Products.Five/trunk/formlib/tests/view.py   2006-02-25 19:50:17 UTC (rev 
65461)
@@ -1,3 +1,20 @@
+##
+#
+# Copyright (c) 2006 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED AS IS AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##
+Five baseclasses for zope.formlib.form
+
+$Id$
+
 from zope.formlib import form, page
 
 from Products.Five.browser import BrowserView
@@ -23,4 +40,4 @@
 
 
 form_fields = form.Fields(IContent)
-
\ No newline at end of file
+


Property changes on: Products.Five/trunk/formlib/tests/view.py
___
Name: svn:keywords
   + Id

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


[Zope-Checkins] SVN: Products.Five/branches/ Shorter branch naming.

2006-02-25 Thread Philipp von Weitershausen
Log message for revision 65463:
  Shorter branch naming.
  

Changed:
  A   Products.Five/branches/0.1/
  A   Products.Five/branches/0.2/
  A   Products.Five/branches/1.0/
  A   Products.Five/branches/1.1/
  A   Products.Five/branches/1.2/
  A   Products.Five/branches/1.3/
  D   Products.Five/branches/Five-0.1/
  D   Products.Five/branches/Five-0.2/
  D   Products.Five/branches/Five-1.0/
  D   Products.Five/branches/Five-1.1/
  D   Products.Five/branches/Five-1.2/
  D   Products.Five/branches/Five-1.3/

-=-
Copied: Products.Five/branches/0.1 (from rev 65460, 
Products.Five/branches/Five-0.1)

Copied: Products.Five/branches/0.2 (from rev 65460, 
Products.Five/branches/Five-0.2)

Copied: Products.Five/branches/1.0 (from rev 65460, 
Products.Five/branches/Five-1.0)

Copied: Products.Five/branches/1.1 (from rev 65460, 
Products.Five/branches/Five-1.1)

Copied: Products.Five/branches/1.2 (from rev 65462, 
Products.Five/branches/Five-1.2)

Copied: Products.Five/branches/1.3 (from rev 65462, 
Products.Five/branches/Five-1.3)

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


[Zope-Checkins] SVN: Products.Five/trunk/CHANGES.txt Small change item reordering

2006-02-25 Thread Philipp von Weitershausen
Log message for revision 65467:
  Small change item reordering
  

Changed:
  U   Products.Five/trunk/CHANGES.txt

-=-
Modified: Products.Five/trunk/CHANGES.txt
===
--- Products.Five/trunk/CHANGES.txt 2006-02-25 20:10:55 UTC (rev 65466)
+++ Products.Five/trunk/CHANGES.txt 2006-02-25 20:17:10 UTC (rev 65467)
@@ -11,6 +11,9 @@
 * Add zope.formlib support.  Please see ``doc/formlib.txt`` for more
   information.
 
+* Port zope.testbrowser to Zope 2.  You can now use
+  Products.Five.testbrowser.Browser in functional tests.
+
 * Make the ``browser:addMenuItem`` directive available.
 
 * Add a file argument to the five:loadProducts and
@@ -20,9 +23,6 @@
   NOTE: Anyone who copied the Five site.zcml to their
   $INSTANCE_HOME/etc/ directory is going to need to update it.
 
-* Port zope.testbrowser to Zope 2.  You can now use
-  Products.Five.testbrowser.Browser in functional tests.
-
 Five 1.3.2 (2006-02-25)
 ===
 

___
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/ Stitch in Five via svn:externals

2006-02-25 Thread Philipp von Weitershausen
Log message for revision 65473:
  Stitch in Five via svn:externals
  

Changed:
  _U  Zope/branches/2.9/lib/python/Products/

-=-

Property changes on: Zope/branches/2.9/lib/python/Products
___
Name: svn:externals
   - 

   + Five svn://svn.zope.org/repos/main/Products.Five/tags/1.3.2


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


[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/Five/ Prepare to stitch in Five via svn:externals.

2006-02-25 Thread Philipp von Weitershausen
Log message for revision 65474:
  Prepare to stitch in Five via svn:externals.
  

Changed:
  D   Zope/trunk/lib/python/Products/Five/

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


Re: [Zope] Re: Packing data.fs programmatically

2006-02-25 Thread Jens Vagelpohl


On 25 Feb 2006, at 04:27, Derrick Hudson wrote:

| Then introduce it, it's simple to set up and adds a world of
| functionality!

I could.  I'd have to learn how to work with it :-).  The deployments
I've worked with are all single uniprocessor machines, thus ZEO
wouldn't yield a performance improvement.  I should learn ZEO one of
these days.


Thinking of ZEO just as a performance improvement is doing it a  
great disservice. Think of it simply in terms of decoupling the  
appserver from the database server and the flexibility that gives you  
by being able to access the database server separately.


jens

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

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


[Zope] how can i the height of a image

2006-02-25 Thread Alain Barbason
hi,

in a file  index_html, I search to have the height of a image, but this,
is in a subdirectroy called images

After a request of a database, I have the name of the image in a
variable nom

if I write

 dtml-var expr='images.'+nom+'.height'  the result is

   images.x0y0.height

(x0y0 is the name of my image,)

if I write

 dtml-var expr='images.x0y0.height'  the result is

275

ok, it's the height of my image

how to make to have the first sentence, but with the result is 275 ?

thank

- - --
by AlainBB
http://www.barbason.be



___
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] Using ReStructuredText instead of StructuredDocument inside ZPT

2006-02-25 Thread Andreas Jung



--On 24. Februar 2006 16:36:20 -0800 John Schinnerer 
[EMAIL PROTECTED] wrote:



Hello,

OK, that makes sense in general - and what would that look like in my
ZPT code?  Can I access that method with just TAL, similar to
Structured Document example:

p tal:content=structure container/client_content/some_STX_object
STX content renders here
/p

...except with the render() in the path somewhere - where?



huh? You should be able to extend the expression above by calling
the objects render method?

p tal:content=structure container/client_content/some_STX_object/render

Consider reading about how path expressions work.

-aj

pgpt4KB5c1wph.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] Dates off by one day

2006-02-25 Thread Kevin Carlson
Turns out that the times and timezones are the same on all machines.  In 
doing some other reading online I discovered an email where same thing 
was happening with PostgreSQL.  The other interesting thing is that 
MySQL DATE columns are displayed as one day earlier but MySQL DATETIME 
columns are displayed correctly (although before passing to strftime 
both return the same date in Zope).  Did the implementation of strftime 
change in regards to how it renders dates that are passed in different 
formats?


Thanks,

Kevin

Andrew Milton wrote:


+---[ Kevin Carlson ]--
| Recently moved to a new server farm and am having a problem with dates 
| from MySQL that are rendered using strftime.  The date in MySQL is 
| correct (e.g. 2005-01-22) but if the date is rendered with strftime the 
| date displayed is one day earlier (e.g., 2005-01-21).  MySQL and Zope 
| are on separate servers as they were before the switch to the new 
| servers but this didn't happen in the old environment.
| 
| Anyone have any thoughts on this?


Sounds like something is applying a timezone transformation. Check the 
timezones on
both the servers...

 



___
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 can i the height of a image

2006-02-25 Thread J Cameron Cooper

Alain Barbason wrote:

hi,

in a file  index_html, I search to have the height of a image, but this,
is in a subdirectroy called images

After a request of a database, I have the name of the image in a
variable nom

if I write

 dtml-var expr='images.'+nom+'.height'  the result is

   images.x0y0.height

(x0y0 is the name of my image,)

if I write

 dtml-var expr='images.x0y0.height'  the result is

275

ok, it's the height of my image

how to make to have the first sentence, but with the result is 275 ?


See top of http://plone.org/documentation/how-to/addContentProgrammatically

  --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] how can i the height of a image

2006-02-25 Thread David

J Cameron Cooper wrote:


Alain Barbason wrote:


hi,

in a file  index_html, I search to have the height of a image, but this,
is in a subdirectroy called images

After a request of a database, I have the name of the image in a
variable nom

if I write

 dtml-var expr='images.'+nom+'.height'  the result is

   images.x0y0.height

(x0y0 is the name of my image,)

if I write

 dtml-var expr='images.x0y0.height'  the result is

275

ok, it's the height of my image

how to make to have the first sentence, but with the result is 275 ?



See top of 
http://plone.org/documentation/how-to/addContentProgrammatically


  --jcc


image = context.images['imageName' + nom]
print image.height
return printed

Its always easier in python

David



___
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] want to use external script to read a text-file and image in database and modify REQUEST

2006-02-25 Thread J Cameron Cooper

Allen Huang wrote:

Hi
 
I want to use external methods to read a text file and image in database 
and modify the REQUEST
 
my code looks like this varible

---
def imageSetup(self, imageID, dataID, REQUEST):
import PIL.Image
from StringIO import StringIO
 
# Get the original image and data in memory.

image=getattr(self, imageID)
imageData=getattr(self, dataID)
imageFile=StringIO(str(image.data))
imageDataFile=StringIO(str(imageData.data))
# open image and data file
im = PIL.Image.open(imageFile)
tfw = open(imageDataFile, r)
 
# assign data coordinate and image size to variables

imX,imY = im.size()
rX=float(tfw.readline())
tfw.readline()
tfw.readline()
rY=float(tfw.readline())
mnX=float(tfw.readline())
mnY=float(tfw.readline())
mxX=mnX+imX*rX
mxY=mnY+imY*rY
 
# assign variables to REQUEST

REQUEST.set('resX', rX)
REQUEST.set('resY', rY)
REQUEST.set('minX', mnX)
REQUEST.set('minY', mnY)
REQUEST.set('maxX', mxX)
REQUEST.set('maxY', mxY)
REQUEST.set('pixelX', imX)
REQUEST.set('pixelY', imY)
--
but all I get is this
 
zope coercing to Unicode: need string or buffer, instance found
 
and the REQUEST variable is unchanged
 
I'm still new to external scripting so I don't know what the problem is

(and I think there is a lot of it here)
 
so, could someone help me out??


It's likely that you're passing an object to a method that wants a 
string (probably an id). Without a traceback, it's impossible to say more.


Are you sure that the things you're passing in as ids are really ids and 
not the objects themselves?


--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] Dates off by one day

2006-02-25 Thread Lennart Regebro
On 2/25/06, Kevin Carlson [EMAIL PROTECTED] wrote:
 Turns out that the times and timezones are the same on all machines.  In
 doing some other reading online I discovered an email where same thing
 was happening with PostgreSQL.  The other interesting thing is that
 MySQL DATE columns are displayed as one day earlier but MySQL DATETIME
 columns are displayed correctly (although before passing to strftime
 both return the same date in Zope).  Did the implementation of strftime
 change in regards to how it renders dates that are passed in different
 formats?

Yes, loads of times. :-)
And this problem pops up all the time. But for some reason, everytime
it pops up, we ask for a reproducibale testcase, and nobody can
provide it. :-)

So, can you provide a reproducible testcase, so we can figure out of
it really is a bug or not?

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


[Zope] CMF 1.5.6 released

2006-02-25 Thread Jens Vagelpohl

The CMF developer community and Zope Corporation are pleased to announce
the release of version 1.5.6 of the Zope Content Management
Framework (CMF). This release marks the latest stable release in the
CMF 1.5 series and should be suitable for production use.

What is the CMF?

  The Zope Content Management Framework provides a set of services and
  content objects useful for building highly dynamic, content-oriented
  portal sites.  As packaged, the CMF generates a site much like the
  zope.org site.  The CMF is intended to be easily customizable, in  
terms

  of both the types of content used and the policies and services it
  provides.

What's new in this release?

  The 1.5.6 release represents a pure bug fix/maintenance release
  without feature additions.

Where do I get it?

  Download it from http://www.zope.org/Products/CMF/CMF-1.5.6

  Points of interest include:

  - Windows ZIP file:
http://www.zope.org/Products/CMF/CMF-1.5.6/CMF-1.5.6.zip

  - Unix tar/gzip archive:
http://www.zope.org/Products/CMF/CMF-1.5.6/CMF-1.5.6.tar.gz

  - Release notes:
http://www.zope.org/Products/CMF/CMF-1.5.6/README.txt

  - Change history:
http://www.zope.org/Products/CMF/CMF-1.5.6/CHANGES.txt

  - Installation instructions:
http://www.zope.org/Products/CMF/CMF-1.5.6/INSTALL.txt

  - CMF Release Roadmap:
http://www.zope.org/Products/CMF/docs/roadmap

Where do I go to learn more?

  The CMF mailing list ([EMAIL PROTECTED]) has many participants who  
are

  active in supporting the CMF.

...to report bugs?

  The CMF Collector at http://www.zope.org/Collectors/CMF is the  
place to

  report bugs (please search for existing reports of your issue first!)


-
Jens Vagelpohl
[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] CMF 1.6.0 released

2006-02-25 Thread Jens Vagelpohl

The CMF developer community and Zope Corporation are pleased to announce
the release of version 1.6.0 of the Zope Content Management
Framework (CMF). This release marks the first stable release in the
CMF 1.6 series and should be suitable for production use.

What is the CMF?

  The Zope Content Management Framework provides a set of services and
  content objects useful for building highly dynamic, content-oriented
  portal sites.  As packaged, the CMF generates a site much like the
  zope.org site.  The CMF is intended to be easily customizable, in  
terms

  of both the types of content used and the policies and services it
  provides.

What's new in this release?

  The CMF 1.6 release series acts as an intermediary between the stable
  1.5 series and the 2.0 feature release. It allows developers an easy
  upgrade path from 1.5 and the ability to take advantage of one of the
  most interesting features from the upcoming major feature release,
  GenericSetup.

Where do I get it?

  Download it from http://zope.org/Products/CMF/CMF-1.6.0

  Points of interest include:

  - Windows ZIP file:
http://www.zope.org/Products/CMF/CMF-1.6.0/CMF-1.6.0.zip

  - Unix tar/gzip archive:
http://www.zope.org/Products/CMF/CMF-1.6.0/CMF-1.6.0.tar.gz

  - Release notes:
http://www.zope.org/Products/CMF/CMF-1.6.0/README.txt

  - Change history:
http://www.zope.org/Products/CMF/CMF-1.6.0/CHANGES.txt

  - Installation instructions:
http://www.zope.org/Products/CMF/CMF-1.6.0/INSTALL.txt

  - CMF Release Roadmap:
http://www.zope.org/Products/CMF/docs/roadmap

Where do I go to learn more?

  The CMF mailing list ([EMAIL PROTECTED]) has many participants who  
are

  active in supporting the CMF.

...to report bugs?

  The CMF Collector at http://zope.org/Collectors/CMF is the place to
  report bugs (please search for existing reports of your issue first!)


-
Jens Vagelpohl
[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 )


Re: [Zope] Using ReStructuredText instead of StructuredDocument inside ZPT

2006-02-25 Thread John Schinnerer
Aloha,

 huh? You should be able to extend the expression above by calling
 the objects render method?
 
  p tal:content=structure
 container/client_content/some_STX_object/render

OK, tried that - I get a username/password prompt that won't take
anything as authorized, and I end up with this error:
-
Site Error

An error was encountered while publishing this resource.

Error Type: Unauthorized
Error Value: You are not allowed to access 'render' in this context
--

I can post the full trace if needed, seems like overkill at this point
as I assume it's some kind of general security thing with ReST Document
that I simply don't know about.

So now what?
Even the zope instance root/owner username and PW are not accepted...??

If it's to be useful to me I need it to just render for Anonymous as
it's part of public site content.

thanks,
John S.

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


[Zope] trying to open a file in database but couldn't

2006-02-25 Thread Allen Huang
I'm trying to open a file that is in database but I got this error message insteadcoercing to Unicode: need string or buffer, instance foundI don't quite understand why. My code looks like thisdef imageSetup(self, dataID, REQUEST): from StringIO import StringIO # Get the original image and data in memory and open thefile imageData=getattr(self, dataID) imageDataFile=StringIO(str(imageData.data))   tfw = open(imageDataFile, "r")I upload a text file into ZOPE database and  the file consist of six lines of float point numbers that I want to use with REQUEST.setI call this method usingdtml-call
 "imageSetup(textFile, REQUEST)" can anyone help me... please...  did I made a mistake with this code
		Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze. 
___
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 )