[Zope-Checkins] SVN: Zope/trunk/doc/CHANGES.txt

2008-07-31 Thread Andreas Jung
Log message for revision 89080:
  

Changed:
  U   Zope/trunk/doc/CHANGES.txt

-=-
Modified: Zope/trunk/doc/CHANGES.txt
===
--- Zope/trunk/doc/CHANGES.txt  2008-07-31 07:35:40 UTC (rev 89079)
+++ Zope/trunk/doc/CHANGES.txt  2008-07-31 07:36:27 UTC (rev 89080)
@@ -204,6 +204,8 @@
 
 Bugs Fixed
 
+  - LP #253362: better dealing with malformed HTTP_ACCEPT_CHARSET headers
+
   - Launchpad #246748: added 'immediate' option to sendXXX() methods
 for sending a mail immediately by-passing the zope.sendmail delivery
 mechanism

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


[Zope-Checkins] SVN: Zope/trunk/doc/CHANGES.txt

2008-07-31 Thread Andreas Jung
Log message for revision 89086:
  

Changed:
  U   Zope/trunk/doc/CHANGES.txt

-=-
Modified: Zope/trunk/doc/CHANGES.txt
===
--- Zope/trunk/doc/CHANGES.txt  2008-07-31 11:32:45 UTC (rev 89085)
+++ Zope/trunk/doc/CHANGES.txt  2008-07-31 13:18:24 UTC (rev 89086)
@@ -1721,3 +1721,4 @@
 
  - ObjectManager will now attempt to set Owner local role keyed
to the user's id, rather than username.
+

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


[Zope-dev] Zope Tests: 5 OK

2008-07-31 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Wed Jul 30 11:00:00 2008 UTC to Thu Jul 31 11:00:00 2008 UTC.
There were 5 messages: 5 from Zope Tests.


Tests passed OK
---

Subject: OK : Zope-2.8 Python-2.3.6 : Linux
From: Zope Tests
Date: Wed Jul 30 20:53:23 EDT 2008
URL: http://mail.zope.org/pipermail/zope-tests/2008-July/009935.html

Subject: OK : Zope-2.9 Python-2.4.4 : Linux
From: Zope Tests
Date: Wed Jul 30 20:54:53 EDT 2008
URL: http://mail.zope.org/pipermail/zope-tests/2008-July/009936.html

Subject: OK : Zope-2.10 Python-2.4.4 : Linux
From: Zope Tests
Date: Wed Jul 30 20:56:23 EDT 2008
URL: http://mail.zope.org/pipermail/zope-tests/2008-July/009937.html

Subject: OK : Zope-2.11 Python-2.4.4 : Linux
From: Zope Tests
Date: Wed Jul 30 20:57:53 EDT 2008
URL: http://mail.zope.org/pipermail/zope-tests/2008-July/009938.html

Subject: OK : Zope-trunk Python-2.4.4 : Linux
From: Zope Tests
Date: Wed Jul 30 20:59:23 EDT 2008
URL: http://mail.zope.org/pipermail/zope-tests/2008-July/009939.html

___
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] New zope.interface 3.4.2 release

2008-07-31 Thread Chris Withers

Andreas Jung wrote:


offtopic
wishlist for=pypi
group accounts
/wishlist
/offtopic


whydontyou
Hassle the sig type=catalog/ for this?
/whydontyou

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] Zope product and dtml-tree

2008-07-31 Thread Tim Nash
Rowan,
   Can you try inheriting from dtml-document instead of simple-item? I use
dtml document as much as I can. It is a big object but you almost always
need to call a dtml object anyway. And all the methods are already battle
tested. (BTW, for me zope is almost entirely the model, and the view and
most of the controller are in the browser so I am not as concerned about
mixing content with logic inside zope. ymmv)

dtml-tree is cool but it can be flakey

-Tim


On Wed, Jul 30, 2008 at 12:13 PM, Rowan Woodhouse 
[EMAIL PROTECTED] wrote:

 Hi,

 I'm developing a Zope product that uses a dtml file to generate the html
 page. I'd like to include a dtml-tree based tree for navigation on the page.
 The custom object inherits from SimpleItem. When I include the follow code
 in the dtml file:

 dtml-tree
  dtml-var id
 /dtml-tree

 I get the following exception:

 An error was encountered while publishing this resource.

 exceptions.KeyError
 Sorry, a site error occurred.

 Traceback (innermost last):

* Module ZPublisher.Publish, line 202, in publish_module_standard
* Module ZPublisher.Publish, line 150, in publish
* Module ZPublisher.Publish, line 119, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 42, in call_object
* Module Products.WellGroup.WellGroup, line 110, in index_html
* Module App.special_dtml, line 65, in __call__
* Module DocumentTemplate.DT_String, line 476, in __call__
* Module TreeDisplay.TreeTag, line 88, in render
* Module TreeDisplay.TreeTag, line 192, in tpRender

 KeyError: 'URL'

 If I add a class variable called URL I then get a key error for RESPONSE.

 My understanding from documentation is that Item (from which SimpleItem
 inherits) gives the product basic dtml-tree support. I can't find any
 examples that spell out how to write a product that supports dtml-tree tags.
 Could someone point me in the right direction?

 Thanks,
 Rowan

 ___
 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] Zope product and dtml-tree

2008-07-31 Thread Jaroslav Lukesh

Look at LocalFS product.

Regards, JL.
___
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] CorruptedDataError: How to fix a corrupted

2008-07-31 Thread Remy Pinsonnault
For an unknown reason, it seems our data.fs got corrupted last night. In the
event.log I can see the following:
--
2008-07-30T22:51:59 ERROR ZODB.Connection Couldn't load state for 0x086540
Traceback (most recent call last):
  File C:\PloneExt\Zope\lib\python\ZODB\Connection.py, line 704, in
setstate
self._setstate(obj)
  File C:\PloneExt\Zope\lib\python\ZODB\Connection.py, line 740, in
_setstate
p, serial = self._storage.load(obj._p_oid, self._version)
  File C:\PloneExt\Zope\lib\python\ZODB\FileStorage\FileStorage.py, line
549, in load
h = self._read_data_header(pos, oid)
  File C:\PloneExt\Zope\lib\python\ZODB\FileStorage\format.py, line 193,
in _read_data_header
raise CorruptedDataError(oid, s, pos)
CorruptedDataError: Error reading oid 0x086540.  Found
'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
at 10020462
--

We tried to use the fsrecover.py utility but it gives us the following error
when we run against the damaged data.fs: input is not a file storage

Now is there anybody that knows how we could restore our data.fs because we
have important data in it?

Thanks in advance

Remy
___
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] CorruptedDataError: How to fix a corrupted

2008-07-31 Thread Martijn Pieters
On Thu, Jul 31, 2008 at 10:48 PM, Remy Pinsonnault
[EMAIL PROTECTED] wrote:
 For an unknown reason, it seems our data.fs got corrupted last night. In the
 event.log I can see the following:

 CorruptedDataError: Error reading oid 0x086540.  Found
 '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
 at 10020462

You have 2 pieces of info there, the oid and the file position. You
could use fsdump to verify the oid and position, then truncate the
file at that position. Short recipe (may be outdated a bit) of the
procedure:

  http://kelpi.com/script/018315

I certainly have performed truncations like that in the past.

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