[Zope-Checkins] SVN: Zope/trunk/lib/python/ImageFile.py Removed bogus executable flag.

2007-04-13 Thread Stefan H. Holek
Log message for revision 74116:
  Removed bogus executable flag.
  

Changed:
  _U  Zope/trunk/lib/python/ImageFile.py

-=-

Property changes on: Zope/trunk/lib/python/ImageFile.py
___
Name: svn:executable
   - *

___
Zope-Checkins maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-checkins


[Zope-dev] Zope Tests: 5 OK

2007-04-13 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Thu Apr 12 12:00:00 2007 UTC to Fri Apr 13 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: Thu Apr 12 20:49:58 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-April/007583.html

Subject: OK : Zope-2.8 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Thu Apr 12 20:51:28 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-April/007584.html

Subject: OK : Zope-2.9 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Thu Apr 12 20:52:58 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-April/007585.html

Subject: OK : Zope-2.10 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Thu Apr 12 20:54:28 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-April/007586.html

Subject: OK : Zope-trunk Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Thu Apr 12 20:55:58 EDT 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-April/007587.html

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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] egg issues: adding namespace boilerplate Products / patching testrunner

2007-04-13 Thread whit

2 items:

1. how does everyone feel about adding the following boilerplate to all 
occurences of Products/__init__.py to enable the easy creation of 
Product eggs?


try:
__import__('pkg_resources').declare_namespace(__name__)

except ImportError:
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)

2. Could we consider this a defect so it could be added to relavent 
maintenance branches(provided no one sees any harm in #1. I mainly care 
about zope 2.9)


3. daniel nouri has made a patch for the test runner  to enable a flag 
optionally add all packages on your path to the test search path.  I 
consider this a defect in the current test runner that makes working 
with eggs and 2.9 or 2.10 rather cumbersome.  could we consider adding 
this or some other solution to this problem?


http://www.zope.org/Collectors/Zope/2276

-w

--

-- d. whit morriss --
- senior engineer, opencore -
- http://www.openplans.org  -
- m: 415-710-8975   -

If you don't know where you are,
 you don't know anything at all 



Dr. Edgar Spencer, Ph.D., 1995

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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] egg issues: adding namespace boilerplate Products / patching testrunner

2007-04-13 Thread Dieter Maurer
whit wrote at 2007-4-13 10:43 -0500:
2 items:

1. how does everyone feel about adding the following boilerplate to all 
occurences of Products/__init__.py to enable the easy creation of 
Product eggs?

try:
 __import__('pkg_resources').declare_namespace(__name__)

except ImportError:
 from pkgutil import extend_path
 __path__ = extend_path(__path__, __name__)

If you add this monster, please add also a manifest comment
which indicates what it is for.


If possible, add it at the end of module:

   My XEmacs version loses the ability to recognize function
   and class definitions after the first top level try: ... except ...:.



-- 
Dieter
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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-PAS] PlonePAS using SQL get AttributeError

2007-04-13 Thread James J Myers
I've written a PlonePAS plugin loosely based on SQLPASPlugin for 
authentication.


Sometimes it works and sometimes it doesn't.

The code creates a zsql method in source_users which I can verify via 
the ZMI that it is there. When the authenticate credentials plugin is 
called it appears to always be in the source_users folder, yet sometimes 
it works and sometimes it fails as shown below - not able to find the 
zsql method.


Why would be it fail sometimes and not others? How do I make it work 
reliably?


2007-04-07T18:02:10 INFO RACPASPlugin Traceback (most recent call last):
authenticateCredentials: getUserInfo:   File 
/usr/local/zope/instance1/Products/RACPASPlugin/plugins/usermanager.py, 
line 104, in authenticateCredentials

   res = self.getUserInfo(login)
authenticateCredentials: getUserInfo:   File 
/usr/local/zope/instance1/Products/RACPASPlugin/plugins/usermanager.py, 
line 253, in getUserInfo

   query = getattr(self, _UserQueryId)
authenticateCredentials: getUserInfo: AttributeError: RACPAS_getUserInfo
begin:vcard
fn:James Myers
n:Myers;James
adr;dom:;;;Paradise;CA;95969
email;internet:[EMAIL PROTECTED]
tel;fax:1.510.217.3948
tel;home:1.530.872.8444
tel;cell:1.530.570.9144
x-mozilla-html:TRUE
url:http://www.myersware.com
version:2.1
end:vcard

___
Zope-PAS mailing list
[EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-pas


Re: [Zope] Changing links base address

2007-04-13 Thread Martijn Pieters

On 4/13/07, Peppe Top [EMAIL PROTECTED] wrote:

thanks to your help I've successfully searched and
edited the content of the site (the guy who manged it
is unavailable at the moment). Now when I look at
the html I see there are a lot of absolute links like:

base ... www.site.net
script ... www.site.net
link ... www.site.net...css
href ... www.site.net

Because I have to change domain, I was
looking to replace those links, with

www.newsite.org

What's the best way to do that?


Those absolute links are computed at rendering time, based on the
hostname of the Zope server, or what the VHM sets the servername to.
So if you use Apache rewrite rules with the VirtualHostMonster, you
only have to change the rewrite rule and all absolute URLs will be
correct.

--
Martijn Pieters
___
Zope maillist  -  [EMAIL PROTECTED]
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] Please Help - Extracting Info From ZEXP File

2007-04-13 Thread s
I just took over a website that was done in Zope/Plone. The person formerly
responsible for it was not helpful to the client or me in the transition
process. Basically he emailed a ZEXP file to me, told me it contains
everything I need, and washed his hands of the whole project. I was able to
grab nearly all the html, css, and javascript files through the web before
he removed the site from his server, but now I realize a few pages were
missed. So, it seems the only possibility of restoring those missed pages is
if 1) everything really is in that ZEXP file and 2) I can find a way to get
to it. I know nothing about Zope/Plone and, no offense to anyone, do not
plan on adding it to my repertoire of knowledge in the near future. I just
want the normal HTML content as it would've been displayed for these
certain pages that were not grabbed before he removed the site. Is this
possible? If so, could someone please spell out exactly how I can go about
retrieving this information from the ZEXP file?

 

Sincerely,

Shawn

Spinner at networthyinc dot com

___
Zope maillist  -  [EMAIL PROTECTED]
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] Please Help - Extracting Info From ZEXP File

2007-04-13 Thread Dennis Allison

U... 

Zope is a system that provides for dynamic generation of HTML.  The 
materials you captured are likely to be a dynamic instance as served to 
one user and may not be representative ow what might be served to another 
user or served to the same user in a different context.

To extract the zope programs from the ZEXP file you will need to create a
Zope instance, put the ZEXP file into the import directory, and import
it. What you will get will be a collection of Zope objects which, when
executed dynamically, will produce the site.  You will need to learn Zope 
and Plone.



-d

On Fri, 13 Apr 2007, s wrote:

 I just took over a website that was done in Zope/Plone. The person formerly
 responsible for it was not helpful to the client or me in the transition
 process. Basically he emailed a ZEXP file to me, told me it contains
 everything I need, and washed his hands of the whole project. I was able to
 grab nearly all the html, css, and javascript files through the web before
 he removed the site from his server, but now I realize a few pages were
 missed. So, it seems the only possibility of restoring those missed pages is
 if 1) everything really is in that ZEXP file and 2) I can find a way to get
 to it. I know nothing about Zope/Plone and, no offense to anyone, do not
 plan on adding it to my repertoire of knowledge in the near future. I just
 want the normal HTML content as it would've been displayed for these
 certain pages that were not grabbed before he removed the site. Is this
 possible? If so, could someone please spell out exactly how I can go about
 retrieving this information from the ZEXP file?
 
  
 
 Sincerely,
 
 Shawn
 
 Spinner at networthyinc dot com
 
 

-- 

___
Zope maillist  -  [EMAIL PROTECTED]
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] Please Help - Extracting Info From ZEXP File

2007-04-13 Thread Dennis Allison

Couple of more things:

1) if your site is running, you can look at the actual code throught 
Zope's TTW interfact.  http://your.domaine.com/manage will get you there 
if you have the proper authentication.

2) you can ftp out the code for off line reading.  Look at The Zope Book
for instructions.  You may need to enable the ftp server in the 
configuration file.




On Fri, 13 Apr 2007, Dennis Allison wrote:

 
 U... 
 
 Zope is a system that provides for dynamic generation of HTML.  The 
 materials you captured are likely to be a dynamic instance as served to 
 one user and may not be representative ow what might be served to another 
 user or served to the same user in a different context.
 
 To extract the zope programs from the ZEXP file you will need to create a
 Zope instance, put the ZEXP file into the import directory, and import
 it. What you will get will be a collection of Zope objects which, when
 executed dynamically, will produce the site.  You will need to learn Zope 
 and Plone.
 
 
 
 -d
 
 On Fri, 13 Apr 2007, s wrote:
 
  I just took over a website that was done in Zope/Plone. The person formerly
  responsible for it was not helpful to the client or me in the transition
  process. Basically he emailed a ZEXP file to me, told me it contains
  everything I need, and washed his hands of the whole project. I was able to
  grab nearly all the html, css, and javascript files through the web before
  he removed the site from his server, but now I realize a few pages were
  missed. So, it seems the only possibility of restoring those missed pages is
  if 1) everything really is in that ZEXP file and 2) I can find a way to get
  to it. I know nothing about Zope/Plone and, no offense to anyone, do not
  plan on adding it to my repertoire of knowledge in the near future. I just
  want the normal HTML content as it would've been displayed for these
  certain pages that were not grabbed before he removed the site. Is this
  possible? If so, could someone please spell out exactly how I can go about
  retrieving this information from the ZEXP file?
  
   
  
  Sincerely,
  
  Shawn
  
  Spinner at networthyinc dot com
  
  
 
 

-- 

___
Zope maillist  -  [EMAIL PROTECTED]
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] Please Help - Extracting Info From ZEXP File

2007-04-13 Thread Paul Winkler
On Fri, Apr 13, 2007 at 12:36:13PM -0500, s wrote:
 I just took over a website that was done in Zope/Plone. The person formerly
 responsible for it was not helpful to the client or me in the transition
 process. Basically he emailed a ZEXP file to me, told me it contains
 everything I need, and washed his hands of the whole project.

The .zexp cannot contain everything you need.  It will contain all the
data (assuming he didn't miss anything), but that data can only be
loaded if you have a zope system running with all the correct
third-party software installed.  You should insist on being provided
with:

- Zope version

- Name and version number for every subdirectory of
  $INSTANCE_HOME/Products/
  (including, of course, Plone)
  ... usually each subdirectory will have a file named version.txt

- Name and version number for every add-on Python package installed to
  the system, if any.

Without this information, you will be unable to load the .zexp.

--

Paul Winkler
http://www.slinkp.com
___
Zope maillist  -  [EMAIL PROTECTED]
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] Please Help - Extracting Info From ZEXP File

2007-04-13 Thread Dennis Allison

+1 -- I'm afraid my answer assumed a vanilla Zope/Plone sight.




On Fri, 13 Apr 2007, Paul Winkler wrote:

 On Fri, Apr 13, 2007 at 12:36:13PM -0500, s wrote:
  I just took over a website that was done in Zope/Plone. The person formerly
  responsible for it was not helpful to the client or me in the transition
  process. Basically he emailed a ZEXP file to me, told me it contains
  everything I need, and washed his hands of the whole project.
 
 The .zexp cannot contain everything you need.  It will contain all the
 data (assuming he didn't miss anything), but that data can only be
 loaded if you have a zope system running with all the correct
 third-party software installed.  You should insist on being provided
 with:
 
 - Zope version
 
 - Name and version number for every subdirectory of
   $INSTANCE_HOME/Products/
   (including, of course, Plone)
   ... usually each subdirectory will have a file named version.txt
 
 - Name and version number for every add-on Python package installed to
   the system, if any.
 
 Without this information, you will be unable to load the .zexp.
 
 --
 
 Paul Winkler
 http://www.slinkp.com
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 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  -  [EMAIL PROTECTED]
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] Changing links base address

2007-04-13 Thread Peppe Top

 Does this include the following?

 style type=text/css!-- @import
 url(http://www.site.net/.../ploneStyles.css); --/style

 (this is in the HEAD section)

Yes, that is included. If this is Plone, you really do not have to
worry about this at all, the above comment is generated too.


Thanks, I cleared all my confusion! ...for now ;-)

I was able to change the address using virtual host and rewrite (apache)
plus VHM, like you suggested. Thanks again for the help.

-- Peppe
___
Zope maillist  -  [EMAIL PROTECTED]
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] Zope 2 Development Best Practices

2007-04-13 Thread Edward Pollard

Greetings,

A few years back our institution adopted Zope to support some CMS- 
like development on a zero-dollar budget. We achieved our primary  
goals in no time at all, and we very happy.


Since that time we have used Zope to deliver a number of solutions to  
our organization.


However, as the complexity of our operation increases, it becomes  
more and more apparent that our coding standards for Zope are very  
low. We've leaned on the existing Zope community - adopting code,  
borrowing ideas, trying to learn - but have never seen anything that  
helps us better understand the philosophy and structure that would  
underly a strong understanding of Zopishness.


For instance, here are a few gems from our playbook. Please note  
first that everything works to our needs and we are trying to find a  
way out of the darkness. We're smart folks, but I fear we have  
strayed far from the path of wisdom and light.


- We have never developed a python based product, although we have  
hung a gigantic amount of external methods off of a half dozen pages  
to make it go. And yes, we use ZClasses (shock)


- We have solved problems by modifying the ZServer source code.

- We have developed entire database driven products inside external  
methods.


- Every Z SQL Method we have has a python script associated with it  
to massage input and output (and manually enforces security).


Of course, a google of Zope Best Practices just brings me a bunch of  
Plone development stuff. That is of no use.


So where is the knowledge I seek to be found? Understanding that open  
source products are prone to such abuses, I've not been able to find  
anything as a starting ground to reform our ways.


Thanks in advance.

--
Edward J. Pollard, B.Sc.
Webmaster
Information Technology | WEB Team
University of Lethbridge
e. [EMAIL PROTECTED]
p. 403-380-1828


___
Zope maillist  -  [EMAIL PROTECTED]
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 2 Development Best Practices

2007-04-13 Thread Paul Winkler
On Fri, Apr 13, 2007 at 03:30:06PM -0600, Edward Pollard wrote:
 Greetings,
 
 A few years back our institution adopted Zope to support some CMS- 
 like development on a zero-dollar budget. We achieved our primary  
 goals in no time at all, and we very happy.
 
 Since that time we have used Zope to deliver a number of solutions to  
 our organization.
 
 However, as the complexity of our operation increases, it becomes  
 more and more apparent that our coding standards for Zope are very  
 low. We've leaned on the existing Zope community - adopting code,  
 borrowing ideas, trying to learn - but have never seen anything that  
 helps us better understand the philosophy and structure that would  
 underly a strong understanding of Zopishness.
 
 For instance, here are a few gems from our playbook. Please note  
 first that everything works to our needs and we are trying to find a  
 way out of the darkness. We're smart folks, but I fear we have  
 strayed far from the path of wisdom and light.
 
 - We have never developed a python based product, although we have  
 hung a gigantic amount of external methods off of a half dozen pages  
 to make it go. And yes, we use ZClasses (shock)
 
 - We have solved problems by modifying the ZServer source code

 - We have developed entire database driven products inside external  
 methods.
 
 - Every Z SQL Method we have has a python script associated with it  
 to massage input and output (and manually enforces security).
 
 Of course, a google of Zope Best Practices just brings me a bunch of  
 Plone development stuff. That is of no use.
 
 So where is the knowledge I seek to be found? Understanding that open  
 source products are prone to such abuses, I've not been able to find  
 anything as a starting ground to reform our ways.

You might start here:

http://wiki.zope.org/zope2/DiskBasedProduct
http://wiki.zope.org/zope2/Testing
http://wiki.zope.org/zope2/BestPractices

-- 

Paul Winkler
http://www.slinkp.com
___
Zope maillist  -  [EMAIL PROTECTED]
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] Johmar Landheer/NL/ABNAMRO/NL is out of the office.

2007-04-13 Thread johmar . landheer

I will be out of the office starting  13-04-2007 and will not return until
23-04-2007.

Ik ben afwezig van 13 t/m 20 april.

Voor project issues die niet kunnen wachten tot maandag 23 april,

svp contact opnemen met Ronald Daniels.

---
This message (including any attachments) is confidential and may be
privileged. If you have received it by mistake please notify the sender by
return e-mail and delete this message from your system. Any unauthorised
use or dissemination of this message in whole or in part is strictly
prohibited. Please note that e-mails are susceptible to change. ABN AMRO
Bank N.V, which has its seat at Amsterdam, the Netherlands, and is
registered in the Commercial Register under number 33002587, including its
group companies, shall not be liable for the improper or incomplete
transmission of the information contained in this communication nor for any
delay in its receipt or damage to your system. ABN AMRO Bank N.V. (or its
group companies) does not guarantee that the integrity of this
communication has been maintained nor that this communication is free of
viruses, interceptions or interference.
---

___
Zope maillist  -  [EMAIL PROTECTED]
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 )