Re: [Zope-dev] Re: [Zope3-dev] Google Summer of Code

2007-03-14 Thread Martijn Pieters

On 3/14/07, Baiju M [EMAIL PROTECTED] wrote:

I think you added (by mistake?) this link instead:
http://pyre.third-bit.com/blog/archives/863.html


Whoops, indeed, that's not the right one. Blame late night
inattention, brought on by a better half asking when I was going to be
done. ;)


I found this one also useful:
http://primates.ximian.com/~federico/docs/summer-of-code-mentoring-howto/index.html


That's the correct link! Corrected on the Wiki. :) Thanks!

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

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


[Zope-dev] Re: mvcc related error?

2007-03-14 Thread Chris Withers

Tres Seaver wrote:

Module ZODB.Connection, line 814, in _setstate_noncurrent
AssertionError

This is on Zope 2.9.4.

Any ideas?


Have you looked at the code?


Yup, sure did.

I can only guess that _setstate_noncurrent is called when the mvcc code 
decides it needs data from state that isn't the latest for an object.


Unfortunately, neither of the asserts, including the failing one, have 
any comments anywhere near them. It's not at all clear what they're 
trying to protect again and I certainly have no idea why they might be 
tripping :-/


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 )


[Zope-dev] Zope Tests: 5 OK

2007-03-14 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Tue Mar 13 12:00:00 2007 UTC to Wed Mar 14 12:00:00 2007 UTC.
There were 5 messages: 5 from Zope Unit Tests.


Tests passed OK
---

Subject: OK : Zope-2.7 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Tue Mar 13 21:54:48 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-March/007438.html

Subject: OK : Zope-2.8 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Tue Mar 13 21:56:19 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-March/007439.html

Subject: OK : Zope-2.9 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Tue Mar 13 21:57:49 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-March/007440.html

Subject: OK : Zope-2.10 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Tue Mar 13 21:59:19 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-March/007441.html

Subject: OK : Zope-trunk Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Tue Mar 13 22:00:49 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-March/007442.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 )


[Zope-dev] Serious zope 2.x DST issue

2007-03-14 Thread William Heymann
I recently file this bug http://www.zope.org/Collectors/Zope/2290 however an 
error seems to have kept email notifications from being sent out. The issue 
is that DateTimeZone.py has the wrong changeover points for DST for the USA 
in it. This is used for all the DateTime zone conversions in DateTime so this 
is a fairly critical issue. A new version of this file though can probably be 
used by nearly all the zope 2.x versions out there so once fixed it should be 
an easy patch. I just didn't want to change the numbers directly since I had 
hoped there was some automated tool that generated that file so I did not 
screw things up trying to modify it directly.

Thanks
___
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] Serious zope 2.x DST issue

2007-03-14 Thread Jim Fulton


On Mar 14, 2007, at 5:16 PM, William Heymann wrote:

I recently file this bug http://www.zope.org/Collectors/Zope/2290  
however an
error seems to have kept email notifications from being sent out.  
The issue
is that DateTimeZone.py has the wrong changeover points for DST for  
the USA
in it. This is used for all the DateTime zone conversions in  
DateTime so this

is a fairly critical issue.


Yup.


A new version of this file though can probably be
used by nearly all the zope 2.x versions out there so once fixed it  
should be
an easy patch. I just didn't want to change the numbers directly  
since I had
hoped there was some automated tool that generated that file so I  
did not

screw things up trying to modify it directly.


If you can figure out what to change, then go for it.  I don't know  
what the format of that data is or how to modify it.  Unfortunately,  
this is not generated automatically.  I imagine it is out of date for  
other locales as well.


I was planning to look at this eventually. (I used some nasty hacks  
in some of our older applications to get around this.)  I was  
planning to rip out the current time-zone code and data and add logic  
to use pytz:


  http://pytz.sourceforge.net/

I think this would be the better approach in the long, and probably  
even medium, term.  I don't think I'll have time to work on this soon  
though.


Jim

--
Jim Fulton  mailto:[EMAIL PROTECTED]Python 
Powered!
CTO (540) 361-1714  
http://www.python.org
Zope Corporationhttp://www.zope.com http://www.zope.org



___
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] Serious zope 2.x DST issue

2007-03-14 Thread Andreas Jung



--On 14. März 2007 15:16:05 -0600 William Heymann [EMAIL PROTECTED] 
wrote:



I recently file this bug http://www.zope.org/Collectors/Zope/2290 however
an  error seems to have kept email notifications from being sent out. The
issue  is that DateTimeZone.py has the wrong changeover points for DST
for the USA  in it. This is used for all the DateTime zone conversions in
DateTime so this  is a fairly critical issue.


Fairly critical means a medium severity. That's why I changed the severity
to medium. Patches are welcome for fixing this problem. However I won't
work on this issue and this issue won't hold up the upcoming releases
scheduled for in about one week.

Andreas

pgp5tbaM4hHy3.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] accessing the user search using mxODBC adapter

2007-03-14 Thread Maciej Wisniowski

 We're having issues getting a user listing back from a SQL server
 database using the default Plone user search. We have the mxODBC
 adapter all working for login but not for the user search. Does anyone
 have experience of issues here? Is it an issue with the user folder or
 is a ZSQL required?
For me, mxODBC can't be a problem here.
Do you have error tracebacks?

This issue can be better answered on Plone-users
list I think.

-- 
Maciej Wisniowski
___
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] accessing the user search using mxODBC adapter

2007-03-14 Thread michael nt milne

Hi

No, no error tracebacks at all. Simply that the search for a user returns no
results. However the user can login fine.


On 3/14/07, Maciej Wisniowski [EMAIL PROTECTED] wrote:



 We're having issues getting a user listing back from a SQL server
 database using the default Plone user search. We have the mxODBC
 adapter all working for login but not for the user search. Does anyone
 have experience of issues here? Is it an issue with the user folder or
 is a ZSQL required?
For me, mxODBC can't be a problem here.
Do you have error tracebacks?

This issue can be better answered on Plone-users
list I think.

--
Maciej Wisniowski





--
michael
___
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] accessing the user search using mxODBC adapter

2007-03-14 Thread Maciej Wisniowski
 
 No, no error tracebacks at all. Simply that the search for a user
 returns no results. However the user can login fine.
AFAIR in PAS there are plugins that are responsible for listing users
but I have no idea how this works in PlonePAS and if this plugin is used by
'default users search form'. So far you didn't even
tell us if you use PlonePAS and if so what kind of authentication plugin.

I still think this is a Plone related problem/question :)

-- 
Maciej Wisniowski
___
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] accessing the user search using mxODBC adapter

2007-03-14 Thread michael nt milne

Yes, sorry using PlonePAS and mxODBC etc. I will post on the Plone list.

Thanks


On 3/14/07, Maciej Wisniowski [EMAIL PROTECTED] wrote:



 No, no error tracebacks at all. Simply that the search for a user
 returns no results. However the user can login fine.
AFAIR in PAS there are plugins that are responsible for listing users
but I have no idea how this works in PlonePAS and if this plugin is used
by
'default users search form'. So far you didn't even
tell us if you use PlonePAS and if so what kind of authentication plugin.

I still think this is a Plone related problem/question :)

--
Maciej Wisniowski





--
michael
___
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] Unauthorized error with ZCatalog

2007-03-14 Thread Jonathan
I have some trusted code (an external method) which is doing a ZCatalog 
search:


sRes = targetFolder.Catalog({'PrincipiaSearchSource' : 
self.REQUEST['searchText']})



But this is causing the following error:

Traceback (innermost last):
 Module ZPublisher.Publish, line 115, in publish
 Module ZPublisher.mapply, line 88, in mapply
 Module ZPublisher.Publish, line 41, in call_object
 Module OFS.DTMLMethod, line 144, in __call__
  - DTMLMethod at /Playwiser/WUI/SearchPublicPosts
  - Physical Path: /Playwiser/WUI/SearchPublicPosts
 Module DocumentTemplate.DT_String, line 476, in __call__
 Module DocumentTemplate.DT_Let, line 75, in render
 Module DocumentTemplate.DT_Util, line 196, in eval
  - __traceback_info__: document_id
 Module string, line 1, in expression
 Module Products.ExternalMethod.ExternalMethod, line 232, in __call__
  - __traceback_info__: (('SearchPublicPosts',), {}, None)
 Module /apps/Zope-2.9.2/Extensions/playwiser-1.0.py, line 718, in 
ProcessControl

 Module string, line 1, in ?
 Module /apps/Zope-2.9.2/Extensions/playwiser-1.0.py, line 6819, in 
subSearchPublicPosts

 Module Products.ZCatalog.CatalogBrains, line 86, in getObject
 Module OFS.Traversable, line 238, in restrictedTraverse
 Module OFS.Traversable, line 209, in unrestrictedTraverse
  - __traceback_info__: ([], '01')
 Module AccessControl.ImplPython, line 563, in validate
 Module AccessControl.ImplPython, line 461, in validate
 Module AccessControl.ImplPython, line 808, in raiseVerbose
Unauthorized: Your user account does not have the required permission. 
Access to '01' of (BTreeFolder2 at 
/Playwiser/PublicForums/00/00) denied. Your user account, 
Anonymous User, exists at /acl_users. Access requires one of the following 
roles: ['Manager']. Your roles in this context are ['Anonymous'].


This error is being generated because the containing folders ( 
/Playwiser/PublicForums/00/00) require 'Manager' privileges 
to access and the external method is being run from an 'Anonymous' method.


I do not want users to be able to access the folders or content directly 
(hence the 'Manager' restrictions), I only want users to access the content 
of these folders via the external method routines (so that I can control 
inputs, searching and display).


The problem code in CatalogBrains.py is:

line 60: def getObject(self, REQUEST=None):
...
line 85: try:
line 86:target = parent.restrictedTraverse(path[-1])
line 87:except ConflictError:
line 88:raise


Is there any way to get Zope to treat my external method as if it had 
'Manager' access privilege so that the restrictedTraverse call doesn't 
generate the Unauthorized error? (ie. in python scripts you can set a 
proxy role, but I don't know of anything similar for external methods).


Any and all ideas appreciated!

Jonathan

___
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] Re: Unauthorized error with ZCatalog

2007-03-14 Thread Jonathan


- Original Message - 
From: Tres Seaver [EMAIL PROTECTED]

To: zope@zope.org
Cc: [EMAIL PROTECTED]
Sent: Wednesday, March 14, 2007 12:51 PM
Subject: [Zope] Re: Unauthorized error with ZCatalog



-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jonathan wrote:

Is there any way to get Zope to treat my external method as if it had 
'Manager' access privilege so that the restrictedTraverse call doesn't 
generate the Unauthorized error? (ie. in python scripts you can set a 
proxy role, but I don't know of anything similar for external methods).


Any and all ideas appreciated!


Look at the '_unrestrictedGetObject' method of the brain.


Exactly what I needed Tres.  Thanks very much!


Jonathan
___
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] Unauthorized error with ZCatalog

2007-03-14 Thread Dieter Maurer
Jonathan wrote at 2007-3-14 10:10 -0400:
I have some trusted code (an external method) which is doing a ZCatalog 
search:

sRes = targetFolder.Catalog({'PrincipiaSearchSource' : 
self.REQUEST['searchText']})


But this is causing the following error:
 ...
  Module Products.ZCatalog.CatalogBrains, line 86, in getObject

You are using the getObject method which performs an internal
security check.

There is also an internal version (I think, _getObject) which
does not check security and can be used from trusted code.



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


[Zope] adding files and folder in a object during generation

2007-03-14 Thread Allen Huang
I created an external product using python to creates a folderish object. 
During object instantiation by 
manage_addProduct(self, id, ..): 
I wish to add a couple of empty files and folder. 
 
I tried 
self.manage_addFolder('folderID', , 'folderName') 
but it just create a folder outside of the object.
I tried
id.manage_addFolder('folderID', , 'folderName') 
but id is a str and does not have manage_addFolder
I tried 
self.getitem(id).manage_addFolder('folderID', , 'folderName')
_.getitem(id) is a method I frequently used in DTML but it didn't work in 
python.
 
what expression do I use to replace with self so ZOPE will create folders and 
files in the newly generated object?


 

Looking for earth-friendly autos? 
Browse Top Cars by Green Rating at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/___
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] adding files and folder in a object during generation

2007-03-14 Thread Andreas Jung



--On 14. März 2007 22:18:06 -0700 Allen Huang [EMAIL PROTECTED] wrote:


I created an external product using python to creates a folderish object.
During object instantiation by  manage_addProduct(self, id,
..):
I wish to add a couple of empty files and folder.


Such tasks belong into manage_afterAdd() or should be implemented using the 
lately introduced event-based notification mechanism.


-aj

pgpFlDoi3KbVJ.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] adding files and folder in a object during generation

2007-03-14 Thread Allen Huang
Could anyone give me any examples?


- Original Message 
From: Andreas Jung [EMAIL PROTECTED]
To: Allen Huang [EMAIL PROTECTED]; Zope zope@zope.org
Sent: Thursday, March 15, 2007 1:23:14 PM
Subject: Re: [Zope] adding files and folder in a object during generation


--On 14. März 2007 22:18:06 -0700 Allen Huang [EMAIL PROTECTED] wrote:

 I created an external product using python to creates a folderish object.
 During object instantiation by  manage_addProduct(self, id,
 ..):
 I wish to add a couple of empty files and folder.

Such tasks belong into manage_afterAdd() or should be implemented using the 
lately introduced event-based notification mechanism.

-aj


 

TV dinner still cooling? 
Check out Tonight's Picks on Yahoo! TV.
http://tv.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] adding files and folder in a object during generation

2007-03-14 Thread Andreas Jung



--On 14. März 2007 22:40:24 -0700 Allen Huang [EMAIL PROTECTED] wrote:


Could anyone give me any examples?




http://blogs.nuxeo.com/sections/blogs/florent_guillaume/2005_11_08_events-in-zope-2-9

-aj

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