[Zope-Coders] Zope tests: 7 OK, 1 Unknown

2005-07-21 Thread Zope tests summarizer
Summary of messages to the zope-tests list.
Period Wed Jul 20 11:01:02 2005 UTC to Thu Jul 21 11:01:02 2005 UTC.
There were 8 messages: 8 from Zope Unit Tests.


Unknown
---

Subject: UNKNOWN : Zope-trunk Python-2.4.1 : Linux
From: Zope Unit Tests
Date: Wed Jul 20 23:17:27 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-July/002646.html


Tests passed OK
---

Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux
From: Zope Unit Tests
Date: Wed Jul 20 23:06:56 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-July/002639.html

Subject: OK : Zope-2_6-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Wed Jul 20 23:08:26 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-July/002640.html

Subject: OK : Zope-2_7-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Wed Jul 20 23:09:56 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-July/002641.html

Subject: OK : Zope-2_7-branch Python-2.4.1 : Linux
From: Zope Unit Tests
Date: Wed Jul 20 23:11:26 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-July/002642.html

Subject: OK : Zope-2_8-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Wed Jul 20 23:12:56 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-July/002643.html

Subject: OK : Zope-2_8-branch Python-2.4.1 : Linux
From: Zope Unit Tests
Date: Wed Jul 20 23:14:27 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-July/002644.html

Subject: OK : Zope-trunk Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Wed Jul 20 23:15:57 EDT 2005
URL: http://mail.zope.org/pipermail/zope-tests/2005-July/002645.html

___
Zope-Coders mailing list
Zope-Coders@zope.org
http://mail.zope.org/mailman/listinfo/zope-coders


Re: [Zope-dev] Listing a groups users via Python and portal_groups

2005-07-21 Thread J Cameron Cooper

Takahashi, Michael wrote:

I’m trying to work on a function call using Python that will list the 
users of any specified group using the function portal_groups.


I’ve been able to successfully do this the opposite way by getting the 
users groups via portal_membership:


portal.portal_membership.getAuthenticatedMember().getGroups()

Which will return all groups this user is associated with.

So I’ve been testing using portal_groups with function calls similar to 
this:


portal.portal_groups.getGroupById(staff).getUsers()

Where “staff” is the name of the group. This almost does what I need, 
but not quite close enough because it lists all groups and all users.  
Any suggestions or help is greatly appreciated!


It acquires 'getUsers' from somewhere, I guess.

Group objects have 'getGroupMemberIds' and 'getGroupMembers' methods.
You can see this in Products.GroupUserFolder.GroupDataTool.GroupData.
the Products.GroupUserFolder.interfaces.portal_groupdata is a bit
cleaner, but seems a little behind the times, as it's missing
'getGroupMemberIds'.

Note that this isn't a good topic for zope-dev, but more for plone-users.

--jcc

___
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] Listing a groups users via Python and portal_groups

2005-07-21 Thread J Cameron Cooper

Takahashi, Michael wrote:

Thanks for the help, I actually figured it out.  It turned out that
portal.portal_groups.getGroupById(staff).getGroupUsers() was the
solution.  However, the getGroupUsers() function returns a list of
users, but not as strings.  So I had to convert the entire call with
str() in order to run a comparison.

So in the end this is how I achieved what I needed:

portal.portal_membership.getAuthenticatedMember().getId() not in \
str(portal.portal_groups.getGroupById(staff).getGroupUsers())


The 'getGroupUsers' is not a good idea in a CMF environment. You should 
use the methods from the group tools. Like the ones I mentioned by name. 
One of them even does exactly what you want::


  context.portal_groups.getGroupById('group1').getGroupMemberIds()

--jcc


-Original Message-
From: J Cameron Cooper [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 21, 2005 12:36 PM

To: Takahashi, Michael
Cc: zope-dev@zope.org
Subject: Re: [Zope-dev] Listing a groups users via Python and
portal_groups

Takahashi, Michael wrote:


I'm trying to work on a function call using Python that will list the 
users of any specified group using the function portal_groups.


I've been able to successfully do this the opposite way by getting the




users groups via portal_membership:

portal.portal_membership.getAuthenticatedMember().getGroups()

Which will return all groups this user is associated with.

So I've been testing using portal_groups with function calls similar


to 


this:

portal.portal_groups.getGroupById(staff).getUsers()

Where staff is the name of the group. This almost does what I need, 
but not quite close enough because it lists all groups and all users.




Any suggestions or help is greatly appreciated!



It acquires 'getUsers' from somewhere, I guess.

Group objects have 'getGroupMemberIds' and 'getGroupMembers' methods.
You can see this in Products.GroupUserFolder.GroupDataTool.GroupData.
the Products.GroupUserFolder.interfaces.portal_groupdata is a bit
cleaner, but seems a little behind the times, as it's missing
'getGroupMemberIds'.

Note that this isn't a good topic for zope-dev, but more for
plone-users.

--jcc






___
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: Event Timer Service for Zope 2.8

2005-07-21 Thread Dylan Jay

Tres Seaver wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



Chris' ClockServer removes the need for such a thread, by hooking
ZServer's mainloop to generate the faux request needed to kick off
async processing.  A crontab - like schedule can be driven equally
well from ClockScheduler as from a separate thread.


So what's wrong with including ClockServer in the core or making it 
easier to install? (ie not having to put packages in the python path 
which is hard with some hosting arrangements)


And what's the argument against a core scheduler regardless of a clock? 
Isn't running background tasks a common need amoungst many very 
different tools and therefore a interstructure issue?


___
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] Re: Zope Foundation Update

2005-07-21 Thread robert rottermann

Andreas Jung wrote:



--On 20. Juli 2005 19:17:59 -0500 George Donnelly [EMAIL PROTECTED] 
wrote:



Hadar Pedhazur wrote:

ZC says: the marks were stolen
ZEA seems to be saying: the marks were registered defensively.

My read on this is that there is a serious communication problem going
on here between the lines. Why doesn't Paul come out and state what the
ZEA position is? Why are ZC's words so angry?



I am disappointed hearing that ZEA registered the trademarks silently 
already 18 months ago. The German Zope User Group (DZUG) asked ZC for 
permission using the Zope logo and the domain name zope.de for our 
community websites (which was never a problem). But in this case we 
would have to ask ZEA for permission as keeper of the trademarks in 
Europe?! I am sorry to say this but the secrecy on the ZEA side is not 
really acceptable. I can understand ZEA argument to have registered 
the trademarks for defending Zope from improper use but why did not 
you notify ZC or the community about it? As someone working in the 
Zope business I need to know who is having what and why. Such things 
should not kept secret when you are dealing in the open-source 
business. So this whole issue is a shame for the complete Zope community.


-aj

I am a casual watcher of what happens in the Zope community (I only 
check the development things actively).

However I believe that I knew that ZE did register the Zope logo.
(All tough instinctively I would have to have gone to ZC to ask for 
permission to use it should the need have presented itself).
So I do not believe it really was a secret, neither is it a cause for 
disappointment. Somebody had to do it and sometimes you just have to 
move forward. This is fine with me  if you do so as a good community 
member trying to secure things without going into to much of the legal 
paperwork that is sure to erupt when you deal in such affairs with an US 
company.


It is the handling of affairs that is .. what should I say .. fascinating.

Somehow I have the impression that we had similar exchanges on these 
canals amongst the same performers before.

Seems that being a good person does not necessarily mean you are a nice one.


Robert


___
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: Zope Foundation Update

2005-07-21 Thread Andreas Jung



--On 21. Juli 2005 08:02:32 +0200 robert rottermann [EMAIL PROTECTED] 
wrote:



I am a casual watcher of what happens in the Zope community (I only check
the development things actively).
However I believe that I knew that ZE did register the Zope logo.
(All tough instinctively I would have to have gone to ZC to ask for
permission to use it should the need have presented itself).
So I do not believe it really was a secret, neither is it a cause for
disappointment.


If it wasn't a secret I am sure that ZC would know about the secret. At 
least after the announcement for the ZF I would have expected that someone 
from the ZEA would have set: well, the ZF is fine but there is a problem 
with transfering the right to the ZF because *we* have the trademarks 
registered in Europe :-)


-aj

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


[Zope] How to solve this ?

2005-07-21 Thread Denny Varghese

Help me in this

When i am creating a task in ZEPP and saving it i am getting the following error

How to dissable the feature of sending mails to the recipients ?

site error
This site encountered an error trying to fulfill your request. The errors were: 

Error Type 
SMTPRecipientsRefused 
Error Value 
{} 
Request made at 
2005/07/21 12:02:27.343 GMT-7 







Zope Version :

(Zope 2.7.7-final, python 2.3.5, win32) 


Python Version: 

2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] 


Zepp version: 1.2


traceback (innermost last): 


Module ZPublisher.Publish, line 101, in publish 
Module ZPublisher.mapply, line 88, in mapply 
Module ZPublisher.Publish, line 39, in call_object 
Module Products.CMFPlone.FactoryTool, line 341, in __call__ 
Module ZPublisher.mapply, line 88, in mapply 
Module ZPublisher.Publish, line 39, in call_object 
Module Products.CMFFormController.FSControllerPageTemplate, line 98, in __call__ 
Module Products.CMFFormController.BaseControllerPageTemplate, line 37, in _call 
Module Products.CMFFormController.FormController, line 375, in validate 
Module ZPublisher.mapply, line 88, in mapply 
Module ZPublisher.Publish, line 39, in call_object 
Module Products.CMFFormController.FSControllerValidator, line 59, in __call__ 
Module Products.CMFFormController.Script, line 141, in __call__ 
Module Products.CMFCore.FSPythonScript, line 104, in __call__ 
Module Shared.DC.Scripts.Bindings, line 306, in __call__ 
Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec 
Module Products.CMFCore.FSPythonScript, line 160, in _exec 
Module None, line 2, in validate_baseFSControllerValidator at /myplone/validate_base used for /myplone/zepp_site/zeppproject.2005-07-20.4236096846/portal_factory/Task/task.2005-07-21.5228286783Line 2 
Module Products.Archetypes.BaseObject, line 445, in validate 
Module Products.ZEPP.ZeppTask, line 369, in post_validate 
Module Products.ZEPP.ZeppTask, line 278, in sendAlert 
Module Products.CMFFormController.FSControllerPythonScript, line 105, in __call__ 
Module Products.CMFFormController.Script, line 141, in __call__ 
Module Products.CMFCore.FSPythonScript, line 104, in __call__ 
Module Shared.DC.Scripts.Bindings, line 306, in __call__ 
Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec 
Module Products.CMFCore.FSPythonScript, line 160, in _exec 
Module None, line 25, in send_alert_mailFSControllerPythonScript at /myplone/send_alert_mail used for /myplone/zepp_site/zeppproject.2005-07-20.4236096846/portal_factory/Task/task.2005-07-21.5228286783Line 25 
Module Products.MailHost.MailHost, line 125, in send 
Module Products.MailHost.MailHost, line 145, in _send 
Module smtplib, line 687, in sendmail __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] css in filesystem based product

2005-07-21 Thread Nicholas Wieland
Hi *, I'm having issues developing a filesystem based product.
The product loads correctly and I see my zpt, but I'm not able toapply a stylesheet.
The product directory is under Zope-Instance/Products, I've created some directories where I put styles and templates - but changing this structure is no problem at all.
I don't have the slightest idea on how I can hook the .css to the .zpt, probably the css must be "published" inside zope in some ways, but I don't know how.
I'm using plain Zope, no Plone and no CMF. I've also tried to look how Plone does this but without any success (it's just too big ...).

TIA,
 ngw
		Yahoo! Mail: gratis 1GB per i messaggi, antispam, antivirus, POP3___
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] css in filesystem based product

2005-07-21 Thread Andrew Milton
+---[ Nicholas Wieland ]--
| Hi *, I'm having issues developing a filesystem based product.
| The product loads correctly and I see my zpt, but I'm not able to apply a
| stylesheet.
| The product directory is under Zope-Instance/Products, I've created some
| directories where I put styles and templates - but changing this structure is
| no problem at all.
| I don't have the slightest idea on how I can hook the .css to the .zpt,
| probably the css must be published inside zope in some ways, but I don't 
know
| how.
| I'm using plain Zope, no Plone and no CMF. I've also tried to look how Plone
| does this but without any success (it's just too big ...).

Just pretend it's a DTML file..

from Globals import DTMLFile

cssName = DTMLFile('relative/path/main.css', globals())

name your file 'main.css.dtml'

then you can use;

link rel=StyleSheet href=cssName type=text/css /

-- 
Andrew Milton
[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] How to solve this ?

2005-07-21 Thread robert rottermann

Denny Varghese wrote:

Help me in this

When i am creating a task in ZEPP and saving it i am getting the following error
 

what is ZEPP ??
___
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: Zope Foundation Update

2005-07-21 Thread Tino Wildenhain
Am Mittwoch, den 20.07.2005, 19:17 -0500 schrieb George Donnelly:
 Hadar Pedhazur wrote:
 
 ZC says: the marks were stolen
 ZEA seems to be saying: the marks were registered defensively.
 
 My read on this is that there is a serious communication problem going
 on here between the lines. Why doesn't Paul come out and state what the
 ZEA position is? Why are ZC's words so angry?
 
 ZC saying the marks were stolen seems a little over the top. What if ZEA
 registered them defensively? if that's possible then ZEA should be given
 then  benefit of the doubt and not be called a thief. If there was a
 need to register them to protect zope, then why didn't ZC do it?
 
 Everybody needs to calm down, stop insulting each other and stop
 broadcasting this problem to the whole world on zope-announce (for
 example). Its making us all look  childish.
 
 Making either side into the bad guy is not only innacurate but also
 inappropriate and is not conducive to building a community around the
 software we all love and are grateful to ZC and non-ZC related
 programmers alike for, Zope.
 
+1 this is also my understanding judging from the messages flowing
around. 

The statement of ZC indicates they want to transfer their trademark
to ZF and now find the european trademark in other hands. OTOH, why
not just transfer/licence what they have (the .us trademark) and
just agree to ZEA transfer/licence the european trademark to ZF
too? 

As I understand, the benefit of a ZF with the source in the hand 
would be to help contributors to defend against patent issues
which you probably cant avoid if you do any development.
So I really like to see ZF founded as soon as possible.

So please ZC and ZEA come together, the community really wants
it. 

May I suggest to create a temp not-public-archived mailinglist
to further discuss this issue? 
-- 
Tino Wildenhain [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] product beginer question : how to code add_xx_form and manage_add_xx such that xx finds instance of another product yy

2005-07-21 Thread santiago
Hi

sorry for the logn subjet :)

I'm using Zope 2.7.5-final, python 2.3.5, linux2, and I'm just strating
to code my first products.

Here's my problem: I want to make a product that watchs instances from
other products.

for instance, let's say I have a product yy, with its add_yy_Form,
manage_add_yy and class yy definitions, such that instances of yy just
display memorised a string.

now I want to build product xx such that when I create an instance of
xx, I can tell it, throug the form provided by add_xx_form, which
instance of yy I want it to watch at. (let's say for instance I want
instance form yy to display the reverse of the chosen instance from xx)

so I need add_yy_form to provide the end user with some kind of select
from instances at hand (in current page, or in current page plus
subpages would be nicer) and then I need the manage_add_yy to process
that and be able to find the reference of the selected zope object.

I thought of one solution : to provide a select with the url of the objects.

So here come the questions :
 - is that ok, or is there a better way ?
 - is 'absolute_url()' the simplest way to find the urls for add_yy_form
 - if I manage to find a reference back from the url in manage_add_yy,
   what will happend if someone moves the object around, using
   copy/cut/paste for instance ? will what I think of as a reference
   still be pointing to the correct item ?

(Note that my solution must not be specific to instances of xx : yy
shall be able to watch instances from any kind of product)


(sorry for such a simple question with such a long introduction... )

thanks!
___
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: ZTUtils.Iterator value in ZPT

2005-07-21 Thread Chris Withers

David Pratt wrote:
Thanks Tres.  The 1's are explained for sure but I can't see a always 
doing the job for this.  What I need is an object that keeps track of 
the last number given to it so it will supply the next based on its 
state.  For use in a flat form with say a dozen fields you are not 
repeating over each field but still you need an incrementing tabindex 
value.


Ah, I see what you're after, something akin to an SQL sequence, right?
Well, Iterator ain't that ;-)

What's so horrible about just putting these tabindexes in by hand?

Your code would certainly execture faster...

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 )


[Zope] Memory Errors

2005-07-21 Thread Malthe Borch
Hello ng, ---

After a few hours, Zope becomes irresponsive and lashes out these kind of 
errors.


Traceback (most recent call last):
  File /usr/local/lib/zope/lib/python/ZPublisher/Publish.py, line 104, 
in publish
response.setBody(result)
  File /usr/local/lib/zope/lib/python/ZServer/HTTPResponse.py, line 
256, in setBody
HTTPResponse.setBody(self, body, title, is_error, **kw)
  File /usr/local/lib/zope/lib/python/ZPublisher/HTTPResponse.py, line 
351, in setBody
zlib.DEF_MEM_LEVEL,0)
MemoryError: Can't allocate memory for compression object

Traceback (most recent call last):
  File /usr/local/lib/zope/lib/python/ZPublisher/Publish.py, line 101, 
in publish
request, bind=1)
  File /usr/local/lib/zope/lib/python/ZPublisher/mapply.py, line 88, in 
mapply
if debug is not None: return debug(object,args,context)
  File /usr/local/lib/zope/lib/python/ZPublisher/Publish.py, line 39, 
in call_object
result=apply(object,args) # Type scr to step into published object.
  File /usr/local/lib/zope/lib/python/Shared/DC/Scripts/Bindings.py, 
line 306, in __call__
return self._bindAndExec(args, kw, None)
  File /usr/local/lib/zope/lib/python/Shared/DC/Scripts/Bindings.py, 
line 343, in _bindAndExec
return self._exec(bound_data, args, kw)
  File /usr/local/lib/zope/lib/python/App/special_dtml.py, line 175, in 
_exec
try: result = render_blocks(self._v_blocks, ns)
  File /usr/local/lib/python2.3/string.py, line 135, in join
return sep.join(words)
MemoryError

What is going wrong here? I'm running an OpenBSD-system with the latest 
Python 2.3.5 and 512 MB of RAM. The stack size is 0x10, as opposed to 
0x2 that previous *BSD-distributions of Python had as default.

Any clues are appreciated,

\mb

___
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 to solve this ?

2005-07-21 Thread Peter Bengtsson
This is not a Zope issue. It's an error from your SMTP server. I can't
explain why or how an SMTP server works but I've had problems like
this before because the SMTP tried to prevent spam relaying.
Secondly, does the weird error message (with the empty curly brackets)
imply that the recipient is null? ie. empty string or None
Perhaps ZEPP has a bug that it tries to send an email even if the
address is blank.

On 7/21/05, Denny Varghese [EMAIL PROTECTED] wrote:
  
 Help me in this 
   
 When i am creating a task in ZEPP and saving it i am getting the following
 error 
   
 How to dissable the feature of sending mails to the recipients ? 
   
 
 site error 
 
 This site encountered an error trying to fulfill your request. The errors
 were: Error Type SMTPRecipientsRefused Error Value {} Request made at
 2005/07/21 12:02:27.343 GMT-7 
 
   
  
 Zope Version : 
 (Zope 2.7.7-final, python 2.3.5, win32) 
  
 Python Version: 
 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] 
  
 Zepp version: 1.2 
   
 
 traceback (innermost last): 
  
  
 Module ZPublisher.Publish, line 101, in publish 
 Module ZPublisher.mapply, line 88, in mapply 
 Module ZPublisher.Publish, line 39, in call_object 
 Module Products.CMFPlone.FactoryTool, line 341, in __call__ 
 Module ZPublisher.mapply, line 88, in mapply 
 Module ZPublisher.Publish, line 39, in call_object 
 Module Products.CMFFormController.FSControllerPageTemplate,
 line 98, in __call__ 
 Module
 Products.CMFFormController.BaseControllerPageTemplate, line
 37, in _call 
 Module Products.CMFFormController.FormController, line 375,
 in validate 
 Module ZPublisher.mapply, line 88, in mapply 
 Module ZPublisher.Publish, line 39, in call_object 
 Module Products.CMFFormController.FSControllerValidator,
 line 59, in __call__ 
 Module Products.CMFFormController.Script, line 141, in
 __call__ 
 Module Products.CMFCore.FSPythonScript, line 104, in __call__ 
 Module Shared.DC.Scripts.Bindings, line 306, in __call__ 
 Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec 
 Module Products.CMFCore.FSPythonScript, line 160, in _exec 
 Module None, line 2, in validate_base
 FSControllerValidator at /myplone/validate_base used for
 /myplone/zepp_site/zeppproject.2005-07-20.4236096846/portal_factory/Task/task.2005-07-21.5228286783
 Line 2 
 Module Products.Archetypes.BaseObject, line 445, in validate 
 Module Products.ZEPP.ZeppTask, line 369, in post_validate 
 Module Products.ZEPP.ZeppTask, line 278, in sendAlert 
 Module Products.CMFFormController.FSControllerPythonScript,
 line 105, in __call__ 
 Module Products.CMFFormController.Script, line 141, in
 __call__ 
 Module Products.CMFCore.FSPythonScript, line 104, in __call__ 
 Module Shared.DC.Scripts.Bindings, line 306, in __call__ 
 Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec 
 Module Products.CMFCore.FSPythonScript, line 160, in _exec 
 Module None, line 25, in send_alert_mail
 FSControllerPythonScript at /myplone/send_alert_mail used for
 /myplone/zepp_site/zeppproject.2005-07-20.4236096846/portal_factory/Task/task.2005-07-21.5228286783
 Line 25 
 Module Products.MailHost.MailHost, line 125, in send 
 Module Products.MailHost.MailHost, line 145, in _send 
 Module smtplib, line 687, in sendmail 
 
 __
 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 )
 
 
 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.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] Memory Errors

2005-07-21 Thread Peter Bengtsson
   File /usr/local/lib/zope/lib/python/ZPublisher/HTTPResponse.py, line
 351, in setBody
 zlib.DEF_MEM_LEVEL,0)
 MemoryError: Can't allocate memory for compression object
 

thinking loud
zlib? Did your zope work fine before? 
Remember, about 2 weeks ago they found a vunorability in zlib, didn't
they. Maybe there are some implications into that on openbsd.
/thinking loud


 
 What is going wrong here? I'm running an OpenBSD-system with the latest
 Python 2.3.5 and 512 MB of RAM. The stack size is 0x10, as opposed to
 0x2 that previous *BSD-distributions of Python had as default.
 
 Any clues are appreciated,
 
 \mb
 
 ___
 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 )
 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.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] Re: Memory Errors

2005-07-21 Thread Malthe Borch
Peter Bengtsson [EMAIL PROTECTED] wrote in
news:[EMAIL PROTECTED]: 

 thinking loud
 zlib? Did your zope work fine before? 
 Remember, about 2 weeks ago they found a vunorability in zlib, didn't
 they. Maybe there are some implications into that on openbsd.
 /thinking loud


Well, --- it doesn't sound likely, because it's not only with zlib. I 
just got this one:


2005-07-21T12:34:18 ERROR(200) SiteError 
http://nanotek.nano.ku.dk/computere/problemer/terror
Traceback (most recent call last):
  File /usr/local/lib/zope/lib/python/ZPublisher/Publish.py, line 92, 
in publish

  File /usr/local/lib/zope/lib/python/ZPublisher/BaseRequest.py, line 
350, in traverse
got=1
  File /usr/local/lib/zope/lib/python/ZODB/Connection.py, line 600, in
setstate
# end of a transaction and if the object was invalidated
  File /usr/local/lib/zope/lib/python/ZODB/Connection.py, line 639, in
_set_ghost_state

  File /usr/local/lib/zope/lib/python/ZODB/Connection.py, line 227, in
_persistent_load
self._cache.incrgc()
MemoryError

I restart Zope and all is well. I'm running Zope 2.7.6-final by the way.
Perhaps I should upgrade to 2.7.7. Hopefully this is solved with 2.8.0, 
but it looks like the next compatible Plone release is some way ahead 
still.

\mb

___
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: Memory Errors

2005-07-21 Thread Peter Bengtsson
How about ditching OpenBSD and installing a streamline linux like
debian instead?
There seems to be a problem with your python, not Zope. Zope just
happens to manage to stresstest your python binaries.
(I'm not saying linux is better than bsd, but it appears that python
works better on linux for serious applications)

On 7/21/05, Malthe Borch [EMAIL PROTECTED] wrote:
 Peter Bengtsson [EMAIL PROTECTED] wrote in
 news:[EMAIL PROTECTED]:
 
  thinking loud
  zlib? Did your zope work fine before?
  Remember, about 2 weeks ago they found a vunorability in zlib, didn't
  they. Maybe there are some implications into that on openbsd.
  /thinking loud
 
 
 Well, --- it doesn't sound likely, because it's not only with zlib. I
 just got this one:
 
 
 2005-07-21T12:34:18 ERROR(200) SiteError
 http://nanotek.nano.ku.dk/computere/problemer/terror
 Traceback (most recent call last):
   File /usr/local/lib/zope/lib/python/ZPublisher/Publish.py, line 92,
 in publish
 
   File /usr/local/lib/zope/lib/python/ZPublisher/BaseRequest.py, line
 350, in traverse
 got=1
   File /usr/local/lib/zope/lib/python/ZODB/Connection.py, line 600, in
 setstate
 # end of a transaction and if the object was invalidated
   File /usr/local/lib/zope/lib/python/ZODB/Connection.py, line 639, in
 _set_ghost_state
 
   File /usr/local/lib/zope/lib/python/ZODB/Connection.py, line 227, in
 _persistent_load
 self._cache.incrgc()
 MemoryError
 
 I restart Zope and all is well. I'm running Zope 2.7.6-final by the way.
 Perhaps I should upgrade to 2.7.7. Hopefully this is solved with 2.8.0,
 but it looks like the next compatible Plone release is some way ahead
 still.
 
 \mb
 
 ___
 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 )
 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.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] Re: Zope Foundation Update

2005-07-21 Thread Matt Hamilton

Tino Wildenhain wrote:


The statement of ZC indicates they want to transfer their trademark
to ZF and now find the european trademark in other hands. OTOH, why
not just transfer/licence what they have (the .us trademark) and
just agree to ZEA transfer/licence the european trademark to ZF
too? 


No, just the opposite.  ZC do *not* want to transfer the marks to the 
ZF.  I do find this position strange.  Whilst they are willing to 
transfer all the IP, for which yes we are grateful.  The issue being 
that many companies around the world are investing marketing money and 
time in developing and promoting the 'zope brand'.  The problem is that 
this brand now (since ZC renamed from DC) also co-incides with Zope 
Corporation.  The value of this brand is increasing and needs to be 
protected, hence why the marks have been trademarked in the other 
companies in which ZC did not register.  I am guessing that ZC 
registered the marks in the countries that are most commercially 
valuable to them -- an understandable move as it was their bucks paying 
for it.  However the *zope community* extends beyond these countries and 
needs protection too.


The main conflict arises because:

* The zope community and Zope Corporation use the same word 'zope'
  to identify themselves.
* ZC don't want to let go of their trademarked name as that is a
  major asset to their business.
* Many people in the zope community feel uneasy that a corporation
  which can be bought and sold owns the name of the software that
  they are developing.

All these points are perfectly valid and understandable, but what we 
need to work out is a way in which we can try and combine and merge 
these conflicting points in a sane way.


I personally (remember, these views are all mine) welcome Rob's ideas on 
how to ensure that ZC's potential successors or assigns use the Zope 
trademark in a fair way.  The problem being, I don't see how that can 
happen if the trademarks are owned by ZC as if the company were bought 
it would be up to the new owned what would happen with its own property. 
 Yes we could put a contract in place between ZF and ZC to say that ZF 
can be the arbiter of any disputes, but I don't see how that can remain 
in place if ZC changes hands.


-Matt

--
Matt Hamilton   [EMAIL PROTECTED]
Netsight Internet Solutions, Ltd.Business Vision on the Internet
http://www.netsight.co.uk +44 (0)117 9090901
Web Design | Zope/Plone Development  Consulting | Co-location | Hosting
___
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] Memory Errors

2005-07-21 Thread Matt Hamilton

Malthe Borch wrote:


MemoryError

What is going wrong here? I'm running an OpenBSD-system with the latest 
Python 2.3.5 and 512 MB of RAM. The stack size is 0x10, as opposed to 
0x2 that previous *BSD-distributions of Python had as default.


Malthe,
  What architecture are you running OpenBSD on?  We have been running 
Zope on OpenBSD/AMD64 3.6 for about a year now and it works pretty well. 
 I have however recently discovered a python bug that I am trying to 
track down.  I am unsure of the exact problem, but it affects the re and 
string libs:


zeo1# uname -a
OpenBSD zeo1.netsight.co.uk 3.6 conf#0 amd64
zeo1# python
Python 2.3.4 (#1, Nov 16 2004, 08:26:06)
[GCC 3.3.2 (propolice)] on openbsd3
Type help, copyright, credits or license for more information.
 import string
 string.whitespace
'\t\n\x0b\x0c\r \x89\x8a\x8b\x8c\x8d\xa0'

on all other platforms I've tried string.whitespace stops after '\r'... 
the trailing chars cause problems in weird and wonderful places.  I 
upgraded to python 2.3.5 and get the same result.  Not tried on python 
2.4 yet.


Other than that, we've not had any memory issues.  On OpenBSD a single 
process cannot grow over 1GB of process memory (it can get more than 
that via anon-mmap, but python doesn't support that).  On OpenBSD 3.5 we 
notice that if we hit the 1GB barrier hard it would panic the kernel, 
but that was fixed in 3.6.


How much memory is python using when you get the memory errors?  Has it 
truely used up all the memory on the system?  There are soft limits that 
are set via login.conf and ulimit/limits which may be too low for you.


-Matt


--
Matt Hamilton   [EMAIL PROTECTED]
Netsight Internet Solutions, Ltd.Business Vision on the Internet
http://www.netsight.co.uk +44 (0)117 9090901
Web Design | Zope/Plone Development  Consulting | Co-location | Hosting
___
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] leave the plone site under a domain to access a php webmail

2005-07-21 Thread Roberto Pereyra
Hi

I have a question about my new plone site.

How I can configure apache or zope to access to my old webmail (php
aplication) under my new plone domain.

I using zope and plone with apache server (with ProxyPass option)

My new site is http://www.gualeguaychu.gov.ar

I want to access to my old website under
http://www.gualeguaychu.gov.ar/mail, but it would have to leave the
plone site and access with apache to my old php webmail and this not
works (I have the  404 Not Found message).

Excuse my poor english and thanls in advance.

roberto
___
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] Running more than one instance on windows often block each other

2005-07-21 Thread Sune B. Woeller

Hi list,

I run a few zope instances on a windows machine 
(xp). I start them either with runzope.bat or as 
services. The behaviour below is independent of this.


But sometimes a running instance (A) seems to 
block another instance (B) from starting. This 
does not happen every time.


If I stop instance A and start B again, it runs 
fine. The funny thing is that sometimes B starts 
fine even with a running A. (Or vice versa).


Of course I set them to run on different port 
numbers in zope.conf. (HTTP, FTP etc.)


I can see (with the excellent (and free) 'Process 
Explorer' from sysinternals) that the python 
processes always opens port 1, and connects by 
that port to themselves on another port (for 
instance 2550).


Maybe my problem has something to do with this?

Has anybody experienced the same behaviour?

greetings,
Sune

___
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] Re: Memory Errors

2005-07-21 Thread Malthe Borch
Matt Hamilton [EMAIL PROTECTED] wrote in
news:[EMAIL PROTECTED]: 

What architecture are you running OpenBSD on?  We have been running
 Zope on OpenBSD/AMD64 3.6 for about a year now and it works pretty
 well. 

We're running a dual-cpu system:

cpu0: Intel(R) Xeon(TM) CPU 2.80GHz (GenuineIntel 686-class) 2.80 GHz
cpu1: Intel(R) Xeon(TM) CPU 2.80GHz (GenuineIntel 686-class) 2.80 GHz

 How much memory is python using when you get the memory errors?  Has
 it truely used up all the memory on the system?  There are soft limits
 that are set via login.conf and ulimit/limits which may be too low for
 you. 
 

According to 'top', the total load is:

* Memory: 80M/131M act/tot  Free: 366M  Swap: 0K/1028M used/tot,

where Zope itself is using practically all of it.

\mb


___
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] Re: Re: Memory Errors

2005-07-21 Thread Malthe Borch
Peter Bengtsson [EMAIL PROTECTED] wrote in 
news:[EMAIL PROTECTED]:

 How about ditching OpenBSD and installing a streamline linux like
 debian instead?
 There seems to be a problem with your python, not Zope. Zope just
 happens to manage to stresstest your python binaries.
 (I'm not saying linux is better than bsd, but it appears that python
 works better on linux for serious applications)

Theo might be listening --- I'd rather not. OpenBSD is a great platform, 
and if there's music to be faced, OpenBSD will surely face it. But if these 
errors persist, I might have too. 

\mb

___
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: Memory Errors

2005-07-21 Thread Matt Hamilton



According to 'top', the total load is:

* Memory: 80M/131M act/tot  Free: 366M  Swap: 0K/1028M used/tot,

where Zope itself is using practically all of it.


Well the question is, should Zope be using all that memory?  how big is 
the site, what are you doing, how big are your caches etc?  Our zope 
processes normally run about 500 - 750MB so maybe you just don't have 
enough memory.


But odd that no swap is being used in your case.  I would check your 
per-process memory limits maybe they need to be higher.  Our 'zope' 
account is in login class 'daemon' which has higher default memory 
limits than 'standard'.  And even then we bumped the limits up even higher.


-Matt

--
Matt Hamilton   [EMAIL PROTECTED]
Netsight Internet Solutions, Ltd.Business Vision on the Internet
http://www.netsight.co.uk +44 (0)117 9090901
Web Design | Zope/Plone Development  Consulting | Co-location | Hosting
___
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: Re: Memory Errors

2005-07-21 Thread Matt Hamilton

Malthe Borch wrote:

Theo might be listening --- I'd rather not. OpenBSD is a great platform, 
and if there's music to be faced, OpenBSD will surely face it. But if these 
errors persist, I might have too. 


I've found OpenBSD/AMD64 and Zope to be an excellent platform.  As I say 
I just need to track down this bug in python that has just become 
apparent (we have been running for almost a year without hitting it, so 
not too serious).


The Opteron 244 (1.8Ghz) is about 20% or so faster on pystone than a 
3Ghz Xeon, not very scientific test or relevent to real life, but a good 
guide).  Especially interesting considering you can buy 2.8Ghz Opterons 
right now.


-Matt

--
Matt Hamilton   [EMAIL PROTECTED]
Netsight Internet Solutions, Ltd.Business Vision on the Internet
http://www.netsight.co.uk +44 (0)117 9090901
Web Design | Zope/Plone Development  Consulting | Co-location | Hosting
___
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] Re: Re: Re: Memory Errors

2005-07-21 Thread Malthe Borch
Matt Hamilton [EMAIL PROTECTED] wrote in
news:[EMAIL PROTECTED]: 

 The Opteron 244 (1.8Ghz) is about 20% or so faster on pystone than a 
 3Ghz Xeon, not very scientific test or relevent to real life, but a
 good guide).  Especially interesting considering you can buy 2.8Ghz
 Opterons right now.

I'm not too impressed with our system's performance, but I haven't profiled 
our site yet or set up a proper proxy. The system is always very responsive 
in the shell, so I think that Zope might use the disks too excessively.

\mb

___
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] Re: Re: Memory Errors

2005-07-21 Thread Malthe Borch
Matt Hamilton [EMAIL PROTECTED] wrote in
news:[EMAIL PROTECTED]: 

 Well the question is, should Zope be using all that memory?  how big
 is the site, what are you doing, how big are your caches etc?  Our
 zope processes normally run about 500 - 750MB so maybe you just don't
 have enough memory.

Our site isn't especially large or complex (http://nanotek.nano.ku.dk). We 
do use the re-library and PIL rather extensively, but nothing the machine 
can't handle.

 But odd that no swap is being used in your case.  I would check your 
 per-process memory limits maybe they need to be higher.  Our 'zope' 
 account is in login class 'daemon' which has higher default memory 
 limits than 'standard'.  And even then we bumped the limits up even
 higher. 

I'd like to try and set up Zope in another login-class. It seems correct, 
as there are soft limits on memory usage in the default class. How would I 
go about this? Do you use a custom zopectl or run it straight off inetd? 
I'm not too experienced in OpenBSD-specifics yet, so any advise is 
appreciated.

\mb

___
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: Re: Memory Errors

2005-07-21 Thread Matt Hamilton


I'd like to try and set up Zope in another login-class. It seems correct, 
as there are soft limits on memory usage in the default class. How would I 
go about this? Do you use a custom zopectl or run it straight off inetd? 
I'm not too experienced in OpenBSD-specifics yet, so any advise is 
appreciated.


You need to have a zope user (adduser) and put that in the deamon class 
when it asks you.  If you already has the user then you can change the 
class with 'chpass zopeuser'.  Then you need to edit /etc/login.conf to 
raise the limits of deamon if you need to, and run cap_mkdb if you use 
databse versions of the login.conf file.


Zopectl doesn't need to change.  Just remember to set the effective-user 
to zopeuser in zope.conf


-Matt


--
Matt Hamilton   [EMAIL PROTECTED]
Netsight Internet Solutions, Ltd.Business Vision on the Internet
http://www.netsight.co.uk +44 (0)117 9090901
Web Design | Zope/Plone Development  Consulting | Co-location | Hosting
___
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] Re: Re: Re: Memory Errors

2005-07-21 Thread Malthe Borch
Matt Hamilton [EMAIL PROTECTED] wrote in
news:[EMAIL PROTECTED]: 

 You need to have a zope user (adduser) and put that in the deamon
 class when it asks you.  If you already has the user then you can
 change the class with 'chpass zopeuser'.  Then you need to edit
 /etc/login.conf to raise the limits of deamon if you need to, and run
 cap_mkdb if you use databse versions of the login.conf file.

Well, that wasn't very helpful afterall. It already was in login-class 
'daemon'. However, I did try and boost the stack size for that class from 
8MB to 32MB. We'll see how that works out.

\mb

___
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] Re: Zope Foundation Update

2005-07-21 Thread Hadar Pedhazur
George Donnelly [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 ZC says: the marks were stolen
 ZEA seems to be saying: the marks were registered defensively.

I am amazed at how people pick and choose what to read and
repeat, and what to ignore. I will mix in a few quotes from
a few posts responding to my note yesterday to highlight
this problem.

After this post, unless someone makes a profound new
statement, I will remain silent, as many of you have
requested, and complete the trademark challenge process
through the official channels that have already begun.

George, others have already replied to this, but Rob has
written about this as well before, so I'm surprised that
this is still a question. A defensive registration of _our_
trademark should have been _explicitly_ called to our
attention. In fact, any reasonable company would have
alerted us to any specific danger, and asked us if _we_
intended to register our trademarks in the appropriate
jurisdiction.

Beyond that point, _we_ are the first registrants of the
ZOPE trademark in WIPO. ZEA registered our LOGO, not the
word ZOPE, which we registered _before_ they registered the
LOGO. So, everyone, please pay attention. We did _not_
ignore our trademark rights in Europe. We registered our
base trademark, the word ZOPE, in a number of countries in
Europe. ZEA then registered our LOGO (taken from our
website), including the name ZOPE in it (which we had
already registered).

I am truly unsure as to how to make this point any clearer.

 My read on this is that there is a serious communication problem going
 on here between the lines. Why doesn't Paul come out and state what the
 ZEA position is? Why are ZC's words so angry?

There isn't really a communication problem here (though it
would wonderful if there was). There is a backtracking and a
rewriting of history going on, because ZEA got caught with
their hands in our cookie jar. They could have settled this
incredibly quietly and quickly. Instead, they chose a path
that has led us here.

We could have fought it silently too, so it's 100% true that
we are the ones that brought this fight into the public. On
the other hand, I can't imagine what would have happened if
this private battle dragged on until January, and then we
got beaten up for missing the launch date on the Foundation,
and only then alerted the community as to what was going on.

So, we did what we thought was the most prudent thing, and
alerted the community 2 days after we initiated the
challenge to their registration. I don't know how we could
have been more transparent about it.

 ZC saying the marks were stolen seems a little over the top. What if ZEA
 registered them defensively? if that's possible then ZEA should be given
 then  benefit of the doubt and not be called a thief. If there was a
 need to register them to protect zope, then why didn't ZC do it?

Read the above response again (and again if necessary). More
importantly, ask yourself why ZEA admitted to us during a
phone call that they believe that there were deals that they
could not have won if they didn't control the mark? Now
extend that thought one more inch and ask yourself how the
Zope-based companies that they competed against in Europe
would feel if they knew that this was a commercial leverage
point for ZEA in winning against their bid?!?!?

And again, read the above to see that our registration of the
mark ZOPE predates theirs.

 Everybody needs to calm down, stop insulting each other and stop
 broadcasting this problem to the whole world on zope-announce (for
 example). Its making us all look  childish.

Indeed, we do look childish, and I'm perhaps _more_ to blame
for that escalation than others. That's why I will try to
keep this as my last communication (at least for a while) on
this topic. That said, a number of people responded saying
that they were not only glad to be made aware of this
problem, but were surprised that they didn't know about it
sooner.

The rhetoric (mine as well!) is louder than it should be,
but I believe the issue(s) definitely needed to be aired, as
it's utterly obvious that even the more basic of the facts
are still misunderstood by a number of posters. As an
example, the repeated questioning of why we didn't register
our own marks in Europe, which we did.

 Making either side into the bad guy is not only innacurate but also
 inappropriate and is not conducive to building a community around the
 software we all love and are grateful to ZC and non-ZC related
 programmers alike for, Zope.

Please don't say that things are innacurate when you
aren't involved, and have already repeated a number of
innacuracies yourself, which were readily available for
you to check before you repeated them...


Matt Hamilton wrote:
 No, just the opposite.  ZC do *not* want to transfer the
 marks to the ZF.  I do find this position strange.  Whilst
 they are willing to transfer all the IP, for which yes we
 are grateful.  The issue being that 

Re: [Zope] Re: ZTUtils.Iterator value in ZPT

2005-07-21 Thread David Pratt

Ah, I see what you're after, something akin to an SQL sequence, right?
Well, Iterator ain't that ;-)


Hi Chris

I guess something like that but that is what an iterator does.  ZTUtils 
just doesn't provide a method to get the values out of it (which it 
could if the methods were available).



What's so horrible about just putting these tabindexes in by hand?

Your code would certainly execture faster...


Well, by hand is not the solution either.  It is not as simple as that 
since I am using portlets in CMF and there are forms in portlets too.  
You can't just number them like 1,2,3 etc because you end up with 
conflicts in tabindex values when your templates are rendered.  This is 
the second problem I am trying to solve because ZTUtils allow you to 
pass into it whatever sequence you want.  You could give it a different 
sequence to start with so when it iterates using its own sequence, 
results keeps the tabindex from conflicting.  This is more of a case of 
looking at an existing tool to perform this so you can retrieve from 
your ZPT (that doesn't require you to write one with all the security 
bypasses to make it work).  It appears ZTUtils is the tool that could 
do this.  I mean it is an object, it iterates, it iterates on values 
you pass it , it knows its current state and the security has been 
bypassed to let you call it in a ZPT, it just doesn't provide a method 
to obtain its values directly.


Regards,
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] Memory Errors

2005-07-21 Thread Tim Peters
[Matt Hamilton]
 ...
 We have been running Zope on OpenBSD/AMD64 3.6 for about a year now
 and it works pretty well.  I have however recently discovered a python bug
 that I am trying to track down.  I am unsure of the exact problem, but it
 affects the re and string libs:

 zeo1# uname -a
 OpenBSD zeo1.netsight.co.uk 3.6 conf#0 amd64
 zeo1# python
 Python 2.3.4 (#1, Nov 16 2004, 08:26:06)
 [GCC 3.3.2 (propolice)] on openbsd3
 Type help, copyright, credits or license for more information.
   import string
   string.whitespace
 '\t\n\x0b\x0c\r \x89\x8a\x8b\x8c\x8d\xa0'

 on all other platforms I've tried string.whitespace stops after '\r'...
 the trailing chars cause problems in weird and wonderful places.  I
 upgraded to python 2.3.5 and get the same result.  Not tried on python
 2.4 yet.

Python version won't matter:  the value of string.whitespace is
entirely determined by your platform C and the locale in effect when
the C-coded portion of Python's string module (Modules/stropmodule.c)
is imported.  As you can see from that module's initstrop() function,
string.whitespace consists exactly of the 8-bit characters (0-255) for
which the platform C's isspace() macro returns a true value.  The
results you've seen on most systems:

'\t\n\x0b\x0c\r '

is what it must be in the C locale (the C standard defines this),
but if you're not in the C locale it could be anything.

It's not unusual (well, not for non-Americans wink) to see \xa0 in
that list, because \xa0 is Latin-1's non-breaking space character
(nbsp; in HTML).  It's surprising to me to see \x89-\x8d there,
though.  It could be your system is set to use an unusual locale, or
it could be a bug in the platform C libraries.  Try writing a little C
program to see what isspace() returns.
___
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] store data as long as the user is logged on

2005-07-21 Thread gabor

hi,

i need to store some data as long as the user is logged on to zope.
how can i achieve this?

using the session is not a good idea, because some parts of the code 
simply call session.clear()  (i did not write that part).


if everything fails, i can use a singleton where i put a dictionary 
based on some-kind-of user-id... but i'd like to avoid that if possible 
(don't want to think about the multi-user-asking-at-the-same-time 
problems)..


is there any place where i could attach my data structure?

thanks,
gabor
___
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] store data as long as the user is logged on

2005-07-21 Thread gabor

Tino Wildenhain wrote:

Am Donnerstag, den 21.07.2005, 16:36 +0200 schrieb gabor:


hi,

i need to store some data as long as the user is logged on to zope.
how can i achieve this?

using the session is not a good idea, because some parts of the code 
simply call session.clear()  (i did not write that part).


if everything fails, i can use a singleton where i put a dictionary 
based on some-kind-of user-id... but i'd like to avoid that if possible 
(don't want to think about the multi-user-asking-at-the-same-time 
problems)..


is there any place where i could attach my data structure?




Session is still the best thing you can use in this case.
Note that HTTP is stateless, you just dont know when
a user logs out. - unless she is so friendly to use
a button on your site where you can trigger to delete
the session and auth cookie.



yes, i know that the session is stateless..

it's just that there IS an authentication at the beginning...
the standard login/password thing...
(i just recently came to the codebase). so ZOPE know when the user logs 
in and when he logs out.

and i'd like to somehow use that information to store my data somewhere.

gabor
___
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: Zope Foundation Update

2005-07-21 Thread Matt Hamilton

Hadar Pedhazur wrote:


Beyond that point, _we_ are the first registrants of the
ZOPE trademark in WIPO. ZEA registered our LOGO, not the
word ZOPE, which we registered _before_ they registered the
LOGO. So, everyone, please pay attention. We did _not_
ignore our trademark rights in Europe. We registered our
base trademark, the word ZOPE, in a number of countries in
Europe. ZEA then registered our LOGO (taken from our
website), including the name ZOPE in it (which we had
already registered).

I am truly unsure as to how to make this point any clearer.


A few points I want to clear up... the next two paragraphs I write are 
about technicalities, I am not refering to any moral right or wrong, or 
who did what etc.


In my view the confusion is apparent.  If I go to zope.org I see the 
same logo (admittedly with the word community added to it).  If I 
install Zope and go to the ZMI one of the first things I see is the Zope 
logo.  I can clearly see how people associate the logo with the 
software.  Very few clients (and potential clients) we talk to in the UK 
are even aware of ZC... *in their mind* Zope is a CMS not a company.


And please please please remember that there is no such thing as 
'registered the trademark in Europe'.  There are many companies in 
Europe and the trademarks have to be registered in specific countries.



Read the above response again (and again if necessary). More
importantly, ask yourself why ZEA admitted to us during a
phone call that they believe that there were deals that they
could not have won if they didn't control the mark? Now
extend that thought one more inch and ask yourself how the
Zope-based companies that they competed against in Europe
would feel if they knew that this was a commercial leverage
point for ZEA in winning against their bid?!?!?


You are twisting the truth here -- I wish I had recorded the phone call 
now to prevent the chinese whispers :)  On the call to Lois, Xavier said 
that there are certain possibilities of using Zope for EU projects which 
would be hampered by a corporation (ie ZC) owning the trademark to the 
OSS software.  ZEA does not want the trademark.  Repeat.  ZEA does not 
want the trademark.



it's utterly obvious that even the more basic of the facts
are still misunderstood by a number of posters. As an
example, the repeated questioning of why we didn't register
our own marks in Europe, which we did.


Yes, you are still mis-understanding the facts.  Europe consists of many 
countries, of which you registered the mark in just six - Germany, 
Denmark, Spain, France, Great Britain and Italy.


ZEA then went on to further protect the mark registering it in: Austria, 
Bulgaria, Switzerland, Cyrus, Czech Republic, Hungary, Lithuania, 
Poland, Portugal, Romania, Russia, Slovenia, Slovakia, Ukraine



Amazingly enough, we have owned the trademark since 2002 (we
changed our name in 2001, and it took that long to get the
trademark registered in the US). There was _no_ hope of a
Foundation at the time. Yet, by your own admission, you and
others continued to invest marketing money in the brand.
Why?


Because we believed (and still want to believe) in the good of all the 
parties involved.  I guess when we started investing in promoting the 
software there was no confusion with the name, now there is.



The more amazing part is that now that we will transfer the
IP to the Foundation, and give an _irrevocable_ license to
the Foundation for the use of the word ZOPE to brand the
software (which can _never_ be taken back, even if someone
acquires us), but somehow, _now_ you are worried about
investing in the Zope brand. I simply can't connect the
dots.


I guess its because IANAL, but I just:

1) Don't understand how an irrevocable license works.
2) Am still unclear of licencing issues, when Rob spoke at EPC about the 
foundation it was very unclear as to who would make decisions on 
licensing, in some cases ZC would have the final say, and in some cases 
the ZF.  It just seemed confusing to me.
3) ZC is a very small, yet very powerful part of the Zope Community 
(maybe this is just my view from Europe).  Can you explain to me exactly 
what benefits ZC has in holding the trademarks as opposed to them being 
held by an independant foundation?  The fact that ZC doesn't want them 
to be held by an independant 3rd party makes me think something sinister 
is planned on the horizon.



Two months ago, you would invest, when there was no
Foundation on the horizon, and the Zope software could be
revoked by a future acquirer of ZC. Now, there will be a
guaranteed future for the Zope software and brand forever,
independent of ZC, but that's somehow now risky for you to
invest...


Yes a future acquirer of ZC could try and revoke the software, but it is 
licensed under the ZPL so is joint ownership.  I think this creates 
enough of an incentive to prevent this happening as much of the code is 
contributed by people other than ZC.




I agree that Rob's 

[Zope] Re: Zope Foundation Update

2005-07-21 Thread George Donnelly

Hadar Pedhazur wrote:
George Donnelly [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]



Making either side into the bad guy is not only innacurate but also
inappropriate and is not conducive to building a community around the
software we all love and are grateful to ZC and non-ZC related
programmers alike for, Zope.



Please don't say that things are innacurate when you
aren't involved, and have already repeated a number of
innacuracies yourself, which were readily available for
you to check before you repeated them...


Thankfully i'm not directly involved in these pointless  internecine
battles between ZC and one of its founders, but I am involved in the zope
community and ZC brought this issue into the community so i am involved
as is everyone else here. You don't get to make the issue public and
then tell people they aren't involved.

According to rob page's post of yesterday, Zope registered the word
Zope while ZEA registered the Zope logo. So when i ask why didn't ZC
register the marks earlier, i am clearly not repeating an innaccuracy,
unless you are saying that rob page's post to zope announce was innacurate.









___
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] store data as long as the user is logged on

2005-07-21 Thread Jerry Westrick
I'm not sure if I know what I'm talking about, but.

It seams to me that when I was reading up on the session thingy,
I read that you can add new Seesion thingy to the Zope tree thereby
creating your own private session...

Of course I'm Probably wrong

Jerry


On Thursday 21 July 2005 16:58, Tino Wildenhain wrote:
 Am Donnerstag, den 21.07.2005, 16:36 +0200 schrieb gabor:
  hi,
 
  i need to store some data as long as the user is logged on to zope.
  how can i achieve this?
 
  using the session is not a good idea, because some parts of the code
  simply call session.clear()  (i did not write that part).
 
  if everything fails, i can use a singleton where i put a dictionary
  based on some-kind-of user-id... but i'd like to avoid that if possible
  (don't want to think about the multi-user-asking-at-the-same-time
  problems)..
 
  is there any place where i could attach my data structure?

 Session is still the best thing you can use in this case.
 Note that HTTP is stateless, you just dont know when
 a user logs out. - unless she is so friendly to use
 a button on your site where you can trigger to delete
 the session and auth cookie.
___
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] store data as long as the user is logged on

2005-07-21 Thread Jonathan


- Original Message - 
From: gabor [EMAIL PROTECTED]

To: Tino Wildenhain [EMAIL PROTECTED]
Cc: zope@zope.org
Sent: Thursday, July 21, 2005 11:01 AM
Subject: Re: [Zope] store data as long as the user is logged on



Tino Wildenhain wrote:

Am Donnerstag, den 21.07.2005, 16:36 +0200 schrieb gabor:


hi,

i need to store some data as long as the user is logged on to zope.
how can i achieve this?

using the session is not a good idea, because some parts of the code 
simply call session.clear()  (i did not write that part).


if everything fails, i can use a singleton where i put a dictionary based 
on some-kind-of user-id... but i'd like to avoid that if possible (don't 
want to think about the multi-user-asking-at-the-same-time problems)..


is there any place where i could attach my data structure?


you could store the data in a cookie on the user's pc, or create a 
dictionary and store it in a temp_folder (stored in ram, not persistant). 
The dictionary would only work if you had a reliable way to identify a 
returning user (ie. do they log in with an ID that you could use as the 
dictionary key?).


hth

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 )


[Zope] Python formatting question

2005-07-21 Thread hpinson
In a Python script, how can I break up a SQL statement over more than 
one line?  For example, to transform

#generate the sql statement
sql=DELETE FROM tblUsers WHERE user_name LIKE '%'

to:

#generate the sql statement
sql=DELETE FROM tblUsers 
   WHERE user_name LIKE '%'

...does not work. Is there a way to break lines?

Any example would be appreciated.

Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED] 
Web: http://www.indepthl.com
Voice: 505-994-2135
FAX: 208-475-7678

___
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] Python formatting question

2005-07-21 Thread Jonathan


- Original Message - 
From: [EMAIL PROTECTED]

To: zope@zope.org
Sent: Thursday, July 21, 2005 12:14 PM
Subject: [Zope] Python formatting question



In a Python script, how can I break up a SQL statement over more than
one line?  For example, to transform

#generate the sql statement
sql=DELETE FROM tblUsers WHERE user_name LIKE '%'

to:

#generate the sql statement
sql=DELETE FROM tblUsers
  WHERE user_name LIKE '%'

...does not work. Is there a way to break lines?


in python you can continue a logical line over several physical lines by 
placing a '\' character in the last position of the line you want continued.



jh 



___
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] Re: Zope 2.8 Installation trouble on XP

2005-07-21 Thread Martin Raspe

Tim Peters wrote:

[Pedro Cristian]


I'm a beginner in Zope. I've just installed the Zope 2.8 final package.
The installation seems to have completed normally.
However when the zope instance is run I have the following message :

C:\Zope-Instance\binrunzope.bat

C:\Zope-Instance\binC:\Zope-2.8.0-final\bin\python.exe 
C:\Zope-2.8.0-final\lib\python\Zope2\Startup\run.py -C C:\Zope-Instance\etc\zope.conf
Traceback (most recent call last):
File C:\Zope-2.8.0-final\lib\python\Zope2\Startup\run.py, line 56, in ?
  run()
File C:\Zope-2.8.0-final\lib\python\Zope2\Startup\run.py, line 17, in run
  import Zope2.Startup
File C:\Zope-2.8.0-final\lib\python\Zope2\__init__.py, line 60, in ?
  from Zope2.Startup.run import configure
File C:\Zope-2.8.0-final\lib\python\Zope2\Startup\__init__.py, line 26, in ?

  from ZConfig.components.logger import loghandler
ImportError: No module named components.logger



Sorry, I can't reproduce this, on Win XP Pro SP2:


I have the same problem on Win 2000.


C:\Zope-Instance\binrunzope.bat

C:\Zope-Instance\binC:\Zope-2.8.0-final\bin\python.exe
C:\Zope-2.8.0-final\lib\python\Zope2\Startup\run.py -C
C:\Zope-Instance\etc\zope.conf

and that's it -- Zope is running at that point, and there's no more
console output.  \Zope-Instance\log\event.log shows Zope Ready to
handle requests, though.  You may find more clues in your event.log.



There was no previous message with keyword loghandler in the mailing list.
All Zope services are stopped.



Why the plural (services as opposed to service)?  Do you have more
than one Zope installed?  Installing Zope installs exactly one Windows
service (if you allow it to), so I expected to see the singular
service here.  Not trying to be picky for the sake of it, but there
must _something_ different in your system from what others are doing.



Here are the system variable that are relevent :
CONFIG_FILE=C:\Zope-Instance\etc\zope.conf
INSTANCE_HOME=C:\Zope-Instance
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program 
Files\Pinnacle\Shared Files\InstantCDDVD\
PYTHON=C:\Zope-2.8.0-final\bin\python.exe
PYTHONPATH=C:\Zope-2.8.0-final\lib\python
SOFTWARE_HOME=C:\Zope-2.8.0-final\lib\python
ZOPE_HOME=C:\Zope-2.8.0-final
ZOPE_RUN=C:\Zope-2.8.0-final\lib\python\Zope2\Startup\run.py



Those look normal.  Did you change \Zope-Instance\etc\zope.conf in any way?



The Zope instance is the one created by the install package.



Same for me above.



Seems that something is not working with my configuration, but what?



I don't know, and I haven't seen this reported by anyone else before. 
Let's try this:  cd to your Zope's (not Zope-Instance's) bin

directory, and start Python from there.  Your DOS box should look like
this then:

C:\Zope-2.8.0-final\binpython
Python 2.3.5 (#62, Feb  8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] on win32
Type help, copyright, credits or license for more information.


Then type in from ZConfig.components.logger import loghandler, to
try the same import you got a complaint about before.  Here's what
happens when I do that:



from ZConfig.components.logger import loghandler




That means the import worked fine -- and it should work fine.  What
happens when you try it?


I see the same error message that ZOPE gives.

Any solution?

Martin

___
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] Python formatting question

2005-07-21 Thread Andreas Jung



--On 21. Juli 2005 10:14:32 -0600 [EMAIL PROTECTED] wrote:


In a Python script, how can I break up a SQL statement over more than
one line?  For example, to transform

# generate the sql statement
sql=DELETE FROM tblUsers WHERE user_name LIKE '%'

to:

# generate the sql statement
sql=DELETE FROM tblUsers
   WHERE user_name LIKE '%'

...does not work. Is there a way to break lines?



Why don't you use ZSQL methods?

-aj


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


OpenBSD Python whitespace oddness (was Re: [Zope] Memory Errors)

2005-07-21 Thread Matt Hamilton

Tim Peters wrote:


(nbsp; in HTML).  It's surprising to me to see \x89-\x8d there,
though.  It could be your system is set to use an unusual locale, or
it could be a bug in the platform C libraries.  Try writing a little C
program to see what isspace() returns.



Bingo! Thanks for the hints.

You were correct, it was down to a mis-interpretation of the C99 and ISO 
8859 standards.  Looks like OpenBSD interprets it differently to 
everything else ;)


The policy was changed 8 days ago:

http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/gen/ctype_.c

Correct ctype classifications of chars = 0x80 wrt C99/POSIX and our
man page. ok espie@ deraadt@

-Matt

--
Matt Hamilton   [EMAIL PROTECTED]
Netsight Internet Solutions, Ltd.Business Vision on the Internet
http://www.netsight.co.uk +44 (0)117 9090901
Web Design | Zope/Plone Development  Consulting | Co-location | Hosting
___
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] Python formatting question

2005-07-21 Thread hpinson
Perfect. Thanks for the great tips.  I had looked at the various 
tutorials, but had not made the connection with 

 Why don't you use Z SQL methods?
I do, but sometimes it is more convient to do SQL through python. I 
also find that ZSQL encourages SQL duplication, especially among 
multiple developers. With a python script, the SQL calls can be 
stored as a single central library

Thanks again!

Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED] 
Web: http://www.indepthl.com
Voice: 505-994-2135
FAX: 208-475-7678

___
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] Python formatting question

2005-07-21 Thread Andreas Jung



--On 21. Juli 2005 10:53:41 -0600 [EMAIL PROTECTED] wrote:




Why don't you use Z SQL methods?

I do, but sometimes it is more convient to do SQL through python. I
also find that ZSQL encourages SQL duplication, especially among
multiple developers. With a python script, the SQL calls can be
stored as a single central library



*shivering*

-aj

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


[Zope] Re: Re: Zope Foundation Update

2005-07-21 Thread Hadar Pedhazur
Matt, unfrotuntately (for me), you make a number of very
good points, so I will break my self-imposed silence to
respond ;-)

Unfortunately for everyone else, this continues the thread,
but at least it feels to me like we're de-escalating and
hopefully actually getting somewhere good, faster...

Matt Hamilton [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Hadar Pedhazur wrote:
 Beyond that point, _we_ are the first registrants of the
 ZOPE trademark in WIPO. ZEA registered our LOGO, not the
 word ZOPE, which we registered _before_ they registered the
 LOGO. So, everyone, please pay attention. We did _not_
 ignore our trademark rights in Europe. We registered our
 base trademark, the word ZOPE, in a number of countries in
 Europe. ZEA then registered our LOGO (taken from our
 website), including the name ZOPE in it (which we had
 already registered).

 I am truly unsure as to how to make this point any clearer.

 A few points I want to clear up... the next two paragraphs I write are 
 about technicalities, I am not refering to any moral right or wrong, or 
 who did what etc.

 In my view the confusion is apparent.  If I go to zope.org I see the same 
 logo (admittedly with the word community added to it).  If I install Zope 
 and go to the ZMI one of the first things I see is the Zope logo.  I can 
 clearly see how people associate the logo with the software.  Very few 
 clients (and potential clients) we talk to in the UK are even aware of 
 ZC... *in their mind* Zope is a CMS not a company.

You are absolutely correct. In certain usages, we try to
make the distinction obvious (like Community being part of
the logo, and certainly in adding Corporation in our own
logo). That said, our Logo Usage page on zope.com, which
has been there for a _very_ long time, makes it clear that
we own the trademark for _all_ variations of the mark, and
that we _freely_ license it (without any signatures!) for
certain usage, and license it under a contract for all other
usages (most of those are free too!):

http://www.zope.com/about_us/legal/zope_logo_usage.html

The point is that even the logo in the free Zope software is
owned by us. It just happens to be freely licensed, with
no fee or contract. That doesn't make it available to be
registered as an owned trademark by someone else.

We don't care if potential clients of yours don't associate
the logo with us, that's obviously fine. We _do_ care if
they associate the logo with ZEA and nobody else. If they
associate it with Zope the software, that's fine too, and
doesn't require a license, but that still leaves us as the
owners of the mark.

 And please please please remember that there is no such thing as 
 'registered the trademark in Europe'.  There are many companies in Europe 
 and the trademarks have to be registered in specific countries.

Again, you are correct. I noted in my previous response to
you that you were also correct that we picked countries that
were economically interesting to us.

 Read the above response again (and again if necessary). More
 importantly, ask yourself why ZEA admitted to us during a
 phone call that they believe that there were deals that they
 could not have won if they didn't control the mark? Now
 extend that thought one more inch and ask yourself how the
 Zope-based companies that they competed against in Europe
 would feel if they knew that this was a commercial leverage
 point for ZEA in winning against their bid?!?!?

 You are twisting the truth here -- I wish I had recorded the phone call 
 now to prevent the chinese whispers :)  On the call to Lois, Xavier said 
 that there are certain possibilities of using Zope for EU projects which 
 would be hampered by a corporation (ie ZC) owning the trademark to the OSS 
 software.  ZEA does not want the trademark.  Repeat.  ZEA does not want 
 the trademark.

Huh? ZEA does not represent everyone in the Zope Community
(as Rob has already pointed out) and worse, does not even
represent all commercial Zope companies in Europe. How does
ZEA holding the trademark make an EU project less hampered
than ZC holding it? You can keep repeating that ZEA doesn't
want the trademark, and yet, you registered it...

 it's utterly obvious that even the more basic of the facts
 are still misunderstood by a number of posters. As an
 example, the repeated questioning of why we didn't register
 our own marks in Europe, which we did.

 Yes, you are still mis-understanding the facts.  Europe consists of many 
 countries, of which you registered the mark in just six - Germany, 
 Denmark, Spain, France, Great Britain and Italy.

This is the third time that I am publicly agreeing that we made a choice.

 ZEA then went on to further protect the mark registering it in: Austria, 
 Bulgaria, Switzerland, Cyrus, Czech Republic, Hungary, Lithuania, Poland, 
 Portugal, Romania, Russia, Slovenia, Slovakia, Ukraine

Really? We registered the base word Zope, from which all of
our other marks derive (except for 

Re: [Zope] Python formatting question

2005-07-21 Thread Peter Bengtsson
 
  Why don't you use Z SQL methods?
  I do, but sometimes it is more convient to do SQL through python. I
  also find that ZSQL encourages SQL duplication, especially among
  multiple developers. With a python script, the SQL calls can be
  stored as a single central library
 
 
 *shivering*
 

I agree with Andreas. ZSQLs are a good thing. If you mix python code
and sql code you're likely to run into problems sooner or later.
Bare in mind that ZSQLs aren't just a method to store the sql
statement, they also have caching and other nifty functions such as
parameter handling.

Let me guess... you write your HTML in python code strings? :)


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.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] Re: Re: Memory Errors - solved

2005-07-21 Thread Malthe Borch
Matt Hamilton [EMAIL PROTECTED] wrote in
news:[EMAIL PROTECTED]: 

 Well the question is, should Zope be using all that memory?  how big
 is the site, what are you doing, how big are your caches etc?  Our
 zope processes normally run about 500 - 750MB so maybe you just don't
 have enough memory.
 
 But odd that no swap is being used in your case.  I would check your 
 per-process memory limits maybe they need to be higher.  Our 'zope' 
 account is in login class 'daemon' which has higher default memory 
 limits than 'standard'.  And even then we bumped the limits up even
 higher. 

I bumped up the stacksize to 32MB, i.e. in /etc/login.conf:

daemon:\
:ignorenologin:\
:datasize=infinity:\
:maxproc=infinity:\
:openfiles-cur=128:\
:stacksize-cur=32M:\
:localcipher=blowfish,8:\
:tc=default:

This seems to have done the trick. At least I haven't experienced any 
errors during the last couple of hours, and everything seems quite healthy.

I'll follow up if it turns out to be a fluke.

\mb

___
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: Zope 2.8 Installation trouble on XP

2005-07-21 Thread Tim Peters
[Tim Peters]
...
 I don't know, and I haven't seen this reported by anyone else before.
 Let's try this:  cd to your Zope's (not Zope-Instance's) bin
 directory, and start Python from there.  Your DOS box should look like
 this then:

 C:\Zope-2.8.0-final\binpython
 Python 2.3.5 (#62, Feb  8 2005, 16:23:02) [MSC v.1200 32 bit
(Intel)] on win32
 Type help, copyright, credits or license for more information.


 Then type in from ZConfig.components.logger import loghandler, to
 try the same import you got a complaint about before.  Here's what
 happens when I do that:


  from ZConfig.components.logger import loghandler

 That means the import worked fine -- and it should work fine.  What
 happens when you try it?
 
[Martin Raspe]
 I see the same error message that ZOPE gives.

FYI, pasting the exact DOS box input and output (as I did above) saves
the reader from needing to guess at 100 details.

 Any solution?

Sorry, not unless someone can give useful information.  If you're
familiar with Python, you should be able to figure out why the import
doesn't work, and tell us the solution.  If you're not familiar with
Python, it will have to wait until someone who is familiar, and can
reproduce the problem (I cannot), does this work.
___
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: Zope Foundation Update

2005-07-21 Thread Lennart Regebro
ZC: Potay-to.
ZEA: Potah-to.
ZC: Potay-to!
ZEA: Potah-to!
ZC: Potay-to!!
ZEA: Potah-to!!
ZC: POTAY-TO, you evil thief!!!
ZEA: POTAH-TO you dictatiorial pig!!

Not a communications problem? My ass.
___
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] Re: Zope 2.8 Installation trouble on XP

2005-07-21 Thread Martin Raspe

Tim Peters wrote:

That means the import worked fine -- and it should work fine.  What
happens when you try it?
 
[Martin Raspe]



I see the same error message that ZOPE gives.


FYI, pasting the exact DOS box input and output (as I did above) saves
the reader from needing to guess at 100 details.


Any solution?


Sorry, not unless someone can give useful information.  If you're
familiar with Python, you should be able to figure out why the import
doesn't work, and tell us the solution.  If you're not familiar with
Python, it will have to wait until someone who is familiar, and can
reproduce the problem (I cannot), does this work.


Sorry, I thought that was clear. It says exactly the same as the ZOPE 
error message:


U:\U:\programme\Zope-2.8.0\bin\python.exe
Python 2.3.5 (#62, Feb  8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] on 
win32

Type help, copyright, credits or license for more information.
 from ZConfig.components.logger import loghandler
Traceback (most recent call last):
  File stdin, line 1, in ?
ImportError: No module named components.logger


But I think I found the error: On Windows, Python seems to prefer 
information from the Registry to the environment vars. The wrong 
registry information was left there from a prior Zope/Plone 
installation. It seems the Zope-2.8.0 Windows installer does not update 
the registry for Python, so Python takes a wrong import path. I found 
out by saying

  import ZConfig
  globals()
and the wrong directory would show up. Removing the old installation 
solved the problem. Other Zope installations (2.7.4, 2.7.6) were not 
affected by the left-over registry entries. So I suppose this is a 
subtle bug in the 2.8.0 Windows installer.


Martin

___
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: emergency user account does not work

2005-07-21 Thread Tim Suter
The emergency user account will not work.  I have tried deleting and
creating it no with no domain restrictions.  Outside of that, I don't
know what to do.  The LDAPUserFolder IS at the root folder of the ZMI.
Could that be hanging it up?  

Thanks,
Tim



On Wed, 2005-07-20 at 09:39 -0400, Derrick Hudson wrote:
 On Fri, Jul 15, 2005 at 03:55:06PM -0500, Tim Suter wrote:
 | After logging out of the ZMI, I have tried to log in as the emergency
 | user by filling in the proper credentials.  The page never loads.  Could
 | there be a tick I am missing in the security settings for the root
 | folder/ZMI?  OR is this something that has to be run via localhost from
 | the server on which Zope is installed?  
 
 I believe you can restrict the host(s) the emergency user's
 credentials are valid from.  This will only happen if you specify it,
 though, and you can always change the emergency user data (username,
 password, and host restrictions) by editing the 'access' file in the
 zope instance.
 
 -D
 
 ___
 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] Re: emergency user account does not work

2005-07-21 Thread Jens Vagelpohl


On 21 Jul 2005, at 20:44, Tim Suter wrote:


The emergency user account will not work.  I have tried deleting and
creating it no with no domain restrictions.  Outside of that, I don't
know what to do.  The LDAPUserFolder IS at the root folder of the ZMI.
Could that be hanging it up?


No. The LDAPUserFolder does not interfere with emergency user handling.

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] FSZSQLMethod.py refactory

2005-07-21 Thread Jean Rodrigo Ferri

Hi,

I did a refactory in the FSZSQLMethod.py module of CMFCore from SVN. I 
want to use my ZSQLs from the filesystem and I improved the module to 
better support to this feature.


Can someone commit this patch to the CMFCore SVN?

Now, the sintax to the FS ZSQLs is:

##title=My query
##connection_id=DataBase
##arguments=arg1 arg2 arg3
##max_rows=1000
##max_cache=100
##cache_time=0
select * from table

For each file with .zsql extension. Only connection_id is required. The 
same pattern of FSPythonScript.


Sorry for the attachment, the CMF SVN does't work at this moment, to 
promote my diff!


Regards!

--
Jean Ferri
TcheZope.org
# Copyright (c) 2001 New Information Paradigms Ltd
#
# This Software is released under the MIT License:
# http://www.opensource.org/licenses/mit-license.html
# See license.txt for more details.
 (not yet) Customizable ZSQL methods that come from the filesystem.

$Id: FSZSQLMethod.py 36999 2005-05-04 20:32:18Z jens $


import Globals
from AccessControl import ClassSecurityInfo
from Acquisition import ImplicitAcquisitionWrapper
from Products.ZSQLMethods.SQL import SQL
from zLOG import LOG, ERROR

from DirectoryView import registerFileExtension
from DirectoryView import registerMetaType
from FSObject import FSObject
from permissions import View
from permissions import ViewManagementScreens
from utils import _dtmldir
from utils import expandpath


class FSZSQLMethod(SQL, FSObject):
FSZSQLMethods act like Z SQL Methods but are not directly
modifiable from the management interface.

meta_type = 'Filesystem Z SQL Method'

manage_options=(
(
{'label':'Customize', 'action':'manage_customise'},
{'label':'Test', 'action':'manage_testForm',
 'help':('ZSQLMethods','Z-SQL-Method_Test.stx')},
)
)

# Use declarative security
security = ClassSecurityInfo()

security.declareObjectProtected(View)

# Make mutators private
security.declarePrivate('manage_main','manage_edit','manage_advanced','manage_advancedForm')
manage=None

security.declareProtected(ViewManagementScreens, 'manage_customise')
manage_customise = Globals.DTMLFile('custzsql', _dtmldir)

def __init__(self, id, filepath, fullname=None, properties=None):
FSObject.__init__(self, id, filepath, fullname, properties)

def _createZODBClone(self):
Create a ZODB (editable) equivalent of this object.
# I guess it's bad to 'reach inside' ourselves like this,
# but Z SQL Methods don't have accessor methdods ;-)
s = SQL(self.id,
self.title,
self.connection_id,
self.arguments_src,
self.src)
s.manage_advanced(self.max_rows_,
  self.max_cache_,
  self.cache_time_,
  self.class_name_,
  self.class_file_,
  connection_hook=self.connection_hook,
  direct=self.allow_simple_one_argument_traversal)
return s

def _readFile(self, reparse):
fp = expandpath(self._filepath)
file = open(fp, 'r')# not 'rb', as this is a text file!
try:
data = file.read()
finally: file.close()

# parse parameters
parameters = {}
template = ''
for line in data.split('\n'):
if line.startswith('##'):
pair = line.replace('##','').split('=',1)
parameters[pair[0].strip().lower()]=pair[1].strip()
else:
template += '\n'+line

# check for required parameters
try:
connection_id = parameters['connection_id']
except KeyError,e:
raise ValueError,The '%s' parameter is required but was not supplied % e

# optional parameters
title =   parameters.get('title','')
arguments =   parameters.get('arguments','')
max_rows =parameters.get('max_rows',1000)
max_cache =   parameters.get('max_cache',100)
cache_time =  parameters.get('cache_time',0)
class_name =  parameters.get('class_name','')
class_file =  parameters.get('class_file','')
connection_hook = parameters.get('connection_hook',None)
direct = parameters.get('allow_simple_one_argument_traversal', None)

self.manage_edit(title, connection_id, arguments, template=template)

self.manage_advanced(max_rows,
 max_cache,
 cache_time,
 class_name,
 class_file,
 connection_hook=connection_hook,
 direct=direct)

# do we need to do anything on reparse?


if Globals.DevelopmentMode:
# Provide an opportunity to update the properties.
def __of__(self, parent):
  

Re: [Zope] Re: Zope 2.8 Installation trouble on XP

2005-07-21 Thread Tim Peters
...

[Martin Raspe]
 I see the same error message that ZOPE gives.

[Tim Peters]
 FYI, pasting the exact DOS box input and output (as I did above) saves
 the reader from needing to guess at 100 details.

 Any solution?

 Sorry, not unless someone can give useful information.  If you're
 familiar with Python, you should be able to figure out why the import
 doesn't work, and tell us the solution.  If you're not familiar with
 Python, it will have to wait until someone who is familiar, and can
 reproduce the problem (I cannot), does this work.

[Martin] 
 Sorry, I thought that was clear. It says exactly the same as the ZOPE
 error message:

 U:\U:\programme\Zope-2.8.0\bin\python.exe
 Python 2.3.5 (#62, Feb  8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] on
 win32
 Type help, copyright, credits or license for more information.
   from ZConfig.components.logger import loghandler
 Traceback (most recent call last):
   File stdin, line 1, in ?
 ImportError: No module named components.logger
  

Thank you -- that way we don't have to guess about anything.  I note
there that you did _not_ run Python while in Zope's bin\ directory,
but instead ran it while in the root of your U: disk.  That differs
from what I did, and may be significant (although I doubt it, the
current directory does play a role in setting up sys.path).

 But I think I found the error: On Windows, Python seems to prefer
 information from the Registry to the environment vars.

No, despite popular myth, Python on Windows normally doesn't consult
the registry for anything.  The exception is obscure application
paths, never used in core Python, described in the near-inscrutable
comment block at top of this:

   http://cvs.sf.net/viewcvs.py/python/python/dist/src/PC/getpathp.c?rev=1.

Unfortunately, older (than build 204) versions of the pywin32 (aka
win32all) extensions did set application paths in the registry, and
Zope used to go on to install pywin32 in a broken way, causing no end
of potential PYTHONPATH confusions.  The Zope Windows installer does
not (and never did) set application paths in this sense.

 The wrong registry information was left there from a prior Zope/Plone
 installation.

Do recall exactly which registry keys seemed to be significant?

 It seems the Zope-2.8.0 Windows installer does not update
 the registry for Python,

As above.

 so Python takes a wrong import path.

Since Python doesn't normally consult the registry to build sys.path,
I don't think the problem is understood yet.

 I found out by saying
   import ZConfig
   globals()
 and the wrong directory would show up.

I'm not clear on what you did here.  Earlier you showed that you were
unable to import ZConfig.components.logger.  But you _were_ able to
import ZConfig on its own?

 Removing the old installation solved the problem.

That's good -- I think wink.

 Other Zope installations (2.7.4, 2.7.6) were not affected by the left-over
 registry entries.

Which registry entries, specifically?

 So I suppose this is a subtle bug in the 2.8.0 Windows installer.

The Zope Windows installer installs pywin32 in a very different way
than it used to, and installs a very different version of pywin32 than
it used to, but the zope.iss.in files (which are the input Inno Setup
uses to build the installer, and which contain the code for setting
Zope's registry entries) are byte-for-byte identical across 2.7 and
2.8.
___
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] FSZSQLMethod.py refactory

2005-07-21 Thread Jens Vagelpohl
I did a refactory in the FSZSQLMethod.py module of CMFCore from  
SVN. I want to use my ZSQLs from the filesystem and I improved the  
module to better support to this feature.


First of all, CMF-related items are better discussed on the zope- 
[EMAIL PROTECTED] list.


Can you explain how your changes better support ZSQL methods on the  
file system? They work perfectly fine the way they are.


Oh, and what exactly is not working about the CMF Subversion repository?

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 )


Re: [Zope] ZPyIRC and Zope 2.7

2005-07-21 Thread J Cameron Cooper

David wrote:

Hi

I installed ZPyIRC version 0.1.3 in Zope 2.7.5 and I get Zope  Template 
Errors on two of the frames when trying to start a chat  client. I don't 
know ZTP very well. (Python is 2.3.5)


I was hoping that maybe somebody has fixed the templates for 2.7.

Any help very welcome!

DR

Here a traceback from cwindowlist:

Traceback (innermost last):

Module ZPublisher.Publish, line 101, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 39, in call_object
Module Shared.DC.Scripts.Bindings, line 306, in __call__
Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
Module Products.PageTemplates.PageTemplateFile, line 106, in _exec
Module Products.PageTemplates.PageTemplate, line 88, in pt_render
PageTemplateFile at /site/chat/stratis/ 
4d9d10fad2a83777ee81bbbae6be3f44/cwindowlist

Warning: Compilation failed
Warning: TAL.HTMLTALParser.NestingError: Open tags html, head,  
script do not match close tag /div, at line 262, column 50

PTRuntimeError: Page Template has errors.

Here a traceback from cuserlist:

Traceback (innermost last):

Module ZPublisher.Publish, line 101, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 39, in call_object
Module Shared.DC.Scripts.Bindings, line 306, in __call__
Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
Module Products.PageTemplates.PageTemplateFile, line 106, in _exec
Module Products.PageTemplates.PageTemplate, line 88, in pt_render
PageTemplateFile at /site/chat/stratis/ 
4d9d10fad2a83777ee81bbbae6be3f44/cuserlist

Warning: Compilation failed
Warning: TAL.HTMLTALParser.NestingError: Open tags html, head,  
script do not match close tag /td, at line 32, column 79

PTRuntimeError: Page Template has errors.


The HTML is imbalanced. HTMLTidy may help you, or maybe an editor, but 
you can always count the tags by hand.


--jcc

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