[Zope] Announcement: 2011 Zope Foundation Board Elections and General Meeting

2011-01-27 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

(apologies in advance for the cross-post:  we need this to reach the
whole Zope community).


The Zope Foundation board is pleased to announce that the regular 2011
general meeting of the foundation will be held on Wednesday, 16 March
2011, at 15:00 UTC.  The meeting will be conducted via IRC at the
following channel:

irc://irc.freenode.net/#zope-foundation

Prior to that meeting, the current board will conduct an elections in
which foundation members will select seven (7) board members in
accordance with the foundation bylaws[1].


Summary
- ---

- - Nominations open via the foundat...@zope.org mailing list until
  Friday, 2011-02-11.

- - Voting via e-mail to a closed mailing list, from Wednesday,
  2011-02-16 through Friday, 2011-03-04.

- - Votes tallied by representatives of the current board,
  using "Meek and Warrent STV" method using OpenSTV software.

- - General meeting and seating of the new board, Wednesday, 2011-03-16.


Procedure for Elections
- ---

The procedure for the elections is as follows:

- - Foundation members may nominate any member by responding to the
  board's announcement on the foundat...@zope.org mailing list.
  Nominations will remain open until Friday, 2011-02-11, 23:00 UTC.

- - At the close of the nominations period, the board will create a new
  mailman list, 'zf-elections-2011', and approve all ZF members to post
  to the list..  In order to preserve anonymity of votes, foundation
  members will not be subscribers to the list;  access to the list
  archives will be restricted to the "tellers" appointed by the board.

- - On Wednesday, 2011-02-16, the Secretary will send an e-mail announcing
  the opening of the voting period. This e-mail will contain the ballot,
  with careful instructions about how to rank preferences in the reply.
  The Reply-to header of this e-mail will be set to the
  'zf-elections-2011' list.

- - ZF members will vote by replying to that e-mail.  Voting will remain
  open until Friday, 2011-03-04, 23:00 UTC.

- - At the close of voting, the board will appoint two of its members as
  "tellers."  The tellers will use the list archive to tabulate the
  members' votes, using the OpenSTV application[2] configured to use the
  Meek and Warren STV method[3].  The tellers will report the election
  results, along with the raw tallies, at a special board meeting to be
  held on Tuesday, 2011-03-15, 15:00 UTC.

- - After canvassing the results from the tellers, the board will notify
  all nominees of the success / failure of their candidacy, thanking
  them for their willingness to serve.

- - At the general meeting, the last item on the agenda will the
  announcement of the election results, including a vote to "seat" the
  board.


An online version of this announcement is available at:

  http://foundation.zope.org/news/2011_election_and_general_meeting/


References
- --

[1] http://foundation.zope.org/bylaws/zope_foundation_bylaws.pdf

[2] http://stv.sourceforge.net/aboutopenstv

[3] http://stv.sourceforge.net/votingmethods/meek



Tres.
- -- 
===
Tres Seaver  +1 540-429-0999  tsea...@palladion.com
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1B8owACgkQ+gerLs4ltQ7OaACfSBCwcbLsELAk/n9eW0CblmMz
UvcAn0a1hIhLiocRo8GG431ccPnzDK7/
=2p6F
-END PGP SIGNATURE-
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] MemoryError: out of memory

2011-01-27 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/27/2011 11:12 AM, Tres Seaver wrote:

> The "aliases" feature of the stock Shared.DC.ZRDB.Results.Results class
> has a leak, due to an uncollectable cycle created between the alias
> objects and the record class generated *for each query*.  If your app
> makes heavy use of stock ZSQL methods, you are probably going to have to
> plan to monitor the server's RAM usage and reboot as it gets close to
> the limit.
> 
> If you are confident either that your application does not need the
> alias feature (your SQL queries all spell the column names using the
> "canonical" spelling for your SQL server), or that you can modify them
> to do so, you might try applying the attached patch, which removes the
> aliase feature.

I should note that I never use the stock results class (or SQL methods)
any longer:  instead, I use the 'sqladapters' product we wrote when we
first discovered the leak:


http://agendaless.com/Members/tseaver/software/sqladapters/sqladapters-1.0/


Tres.
- -- 
===
Tres Seaver  +1 540-429-0999  tsea...@palladion.com
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1BmyoACgkQ+gerLs4ltQ7JpQCgw76+ltS33nnUoDJQepGAWW2c
hkMAoNn0PsLtLY1Fp91NxZjbvnv6kbCW
=DWNc
-END PGP SIGNATURE-

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


Re: [Zope] MemoryError: out of memory

2011-01-27 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/26/2011 03:19 PM, Jonathan Salazar Santos wrote:
> Hi Comunity,
> 
> I have been in troubles with Zope2.10.5-final since 4 moths ago,
> related to the "MemoryError: out of memory" (in the event.log), every
> three or fourth days (more or less) the Zope starts to say in our web:
> value error: Memory, and stops to serve some pages (not all), usually
> the pages that serve file contents (to download, convert to pdf or
> view online). I solve the problem (when appears) by rebooting the zope
> server, but its not a solutions, because I dont know when the error
> its coming ¿Can you help me to giving me some light to solve the
> problem? I have 2gb of RAM, and the server (FreeBSD) it says
> no-overloaded, just have 2 services, web(zope) and database(mysql). I
> think its something related to the cache memory or kind of (I changed
> some values in config file but not success). See some of my event.log
> 
> 
> Traceback (innermost last):
>   Module ZPublisher.Publish, line 119, in publish
>   Module ZPublisher.mapply, line 88, in mapply
>   Module ZPublisher.Publish, line 42, in call_object
>   Module OFS.DTMLMethod, line 144, in __call__
>-  //suscribete/adminNewsletter>
>- URL: http:///index_html/manage_main
>- Physical Path: //index_html
>   Module DocumentTemplate.DT_String, line 476, in __call__
>   Module OFS.DTMLMethod, line 137, in __call__
>- 
>- URL: http:///suscribete/adminNewsletter/third_header/manage_main
>- Physical Path: //suscribete/adminNewsletter/third_header
>   Module DocumentTemplate.DT_String, line 476, in __call__
>   Module DocumentTemplate.DT_In, line 703, in renderwob
>   Module Products.MailHost.SendMailTag, line 114, in render
>   Module Products.MIMETools.MIMETag, line 198, in render
>   Module MimeWriter, line 177, in lastpart
> MemoryError: out of memory

The "aliases" feature of the stock Shared.DC.ZRDB.Results.Results class
has a leak, due to an uncollectable cycle created between the alias
objects and the record class generated *for each query*.  If your app
makes heavy use of stock ZSQL methods, you are probably going to have to
plan to monitor the server's RAM usage and reboot as it gets close to
the limit.

If you are confident either that your application does not need the
alias feature (your SQL queries all spell the column names using the
"canonical" spelling for your SQL server), or that you can modify them
to do so, you might try applying the attached patch, which removes the
aliase feature.


Tres.
- -- 
===
Tres Seaver  +1 540-429-0999  tsea...@palladion.com
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1BmW4ACgkQ+gerLs4ltQ41VgCfeqvB4gRnQAd2xY+EHjkbTwiP
7xcAnA7GGngAry7jqXbCWDBq8ugafIw8
=cPGc
-END PGP SIGNATURE-
=== modified file 'lib/python/Shared/DC/ZRDB/Results.py'
--- lib/python/Shared/DC/ZRDB/Results.py	2005-11-18 14:39:19 +
+++ lib/python/Shared/DC/ZRDB/Results.py	2011-01-27 16:09:13 +
@@ -38,7 +38,6 @@
 self._names=names=[]
 self._schema=schema={}
 self._data_dictionary=dd={}
-aliases=[]
 if zbrains is None: zbrains=NoBrains
 i=0
 for item in items:
@@ -49,10 +48,6 @@
 if schema.has_key(name):
 raise ValueError, 'Duplicate column name, %s' % name
 schema[name]=i
-n=name.lower()
-if n != name: aliases.append((n, SQLAlias(name)))
-n=name.upper()
-if n != name: aliases.append((n, SQLAlias(name)))
 dd[name]=item
 names.append(name)
 i=i+1
@@ -70,11 +65,6 @@
 if k[:2]=='__':
 setattr(r,k,getattr(Record,k))
 
-# Add SQL Aliases
-for k, v in aliases:
-if not hasattr(r, k):
-setattr(r, k, v)
-
 if hasattr(brains, '__init__'):
 binit=brains.__init__
 if hasattr(binit,'im_func'): binit=binit.im_func

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


Re: [Zope] Preferred non-Products Initialization Approach?

2011-01-27 Thread Jeff Rush
On 01/27/2011 06:34 AM, Jeff Rush wrote:
> In my reading I can see there are two ways to initialize a Product that
> is not sitting in the Products directory:
> 
> 1. use ZCML with the five:registerPackage directive
> 
> 2. declare in setup.py a "zope2.products" entrypoint
> 
> Which is the preferred way these days?  Is there a subtle difference?

Hmm, there seems to be a third way that some packages use:

3. declare your egg to be a 'Products' namespace package, omit any
entrypoint or registerPackage declarations and rely upon setuptools
splicing you into the Products.__path__ list and being found the
conventional way of scanning the (virtual) Products namespace.

BTW, I'm working with Zope 2.12.10, and I'm not finding -any- code that
searches for a zope2.initialize or zope2.products entrypoint - seems to
be a NOP.

-Jeff

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


[Zope] Preferred non-Products Initialization Approach?

2011-01-27 Thread Jeff Rush
In my reading I can see there are two ways to initialize a Product that
is not sitting in the Products directory:

1. use ZCML with the five:registerPackage directive

2. declare in setup.py a "zope2.products" entrypoint

Which is the preferred way these days?  Is there a subtle difference?

In particular I'm having trouble with an Extensions/ subdirectory of the
Product -not- being found in an import stmt when I moved it outside the
Products directory.

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


Re: [Zope] MemoryError: out of memory

2011-01-27 Thread Peter Bengtsson
This little something form 2008 might work
http://www.peterbe.com/plog/zope-memory-readings


On 27 January 2011 05:15, Andreas Jung  wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> You should monitoring memory usage over time. Obviously something
> in your application is leaking memory.
>
> - -aj
>
> Jonathan Salazar Santos schrieb:
>> Hi Comunity,
>>
>> I have been in troubles with Zope2.10.5-final since 4 moths ago,
>> related to the "MemoryError: out of memory" (in the event.log), every
>> three or fourth days (more or less) the Zope starts to say in our web:
>> value error: Memory, and stops to serve some pages (not all), usually
>> the pages that serve file contents (to download, convert to pdf or
>> view online). I solve the problem (when appears) by rebooting the zope
>> server, but its not a solutions, because I dont know when the error
>> its coming ¿Can you help me to giving me some light to solve the
>> problem? I have 2gb of RAM, and the server (FreeBSD) it says
>> no-overloaded, just have 2 services, web(zope) and database(mysql). I
>> think its something related to the cache memory or kind of (I changed
>> some values in config file but not success). See some of my event.log
>>
>>
>> Traceback (innermost last):
>>   Module ZPublisher.Publish, line 119, in publish
>>   Module ZPublisher.mapply, line 88, in mapply
>>   Module ZPublisher.Publish, line 42, in call_object
>>   Module OFS.DTMLMethod, line 144, in __call__
>>    - > //suscribete/adminNewsletter>
>>    - URL: http:///index_html/manage_main
>>    - Physical Path: //index_html
>>   Module DocumentTemplate.DT_String, line 476, in __call__
>>   Module OFS.DTMLMethod, line 137, in __call__
>>    - 
>>    - URL: http:///suscribete/adminNewsletter/third_header/manage_main
>>    - Physical Path: //suscribete/adminNewsletter/third_header
>>   Module DocumentTemplate.DT_String, line 476, in __call__
>>   Module DocumentTemplate.DT_In, line 703, in renderwob
>>   Module Products.MailHost.SendMailTag, line 114, in render
>>   Module Products.MIMETools.MIMETag, line 198, in render
>>   Module MimeWriter, line 177, in lastpart
>> MemoryError: out of memory
>>
>>
>
>
> - --
> ZOPYX Limited           | zopyx group
> Charlottenstr. 37/1     | The full-service network for Zope & Plone
> D-72070 Tübingen        | Produce & Publish
> www.zopyx.com           | www.produce-and-publish.com
> - 
> E-Publishing, Python, Zope & Plone development, Consulting
>
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.11 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQGUBAEBAgAGBQJNQP9kAAoJEADcfz7u4AZjARQLv25A9rr7JyaaBg8SZDl1G1EN
> t19RNt1nXOg4tw+6r82IhH8I55FH+RbP+dHI73DuNTVJuSPYg2s9xuRtfOMdyhE1
> AqRTew6MK0paLaoRH9QtjWvPnhr4dnKSBn2FK4kRxzc0mKh9tTHefbwN+CUmGQmv
> lO+t0ZVdK+SqUwcfG9BekjVr/VYXUukhkm6WzxLTBkOo67sT+fTk2i8fZ7QH3dDw
> 7q6f+dgOV0E1MWlQ1OeydEm+SAGo7EwqB1iaArCxwpJDN6YPLWQZk3DbA0kM9nNQ
> U6YAKsBI5urwuOoLiFJYHSGwy91Wgm9uLkNicx7sQ0zyJnGdReFfMNcf0BQWlz8X
> k0FGnaQ1oHo8qXGisgJPn1vZZxFlNtnnH7QLKk53lt4+9B6tBW3WI5RJXO9g+w2s
> Us/vpTLEHamyjb9bZNVvFI6qqQ0TiV1CmmsMSiOsEBTD56i7oS6SA594RyM65d0R
> BNUWKcU6pN/7W21MxhzGf3kLJirEgw4=
> =WPMi
> -END PGP SIGNATURE-
>
> ___
> Zope maillist  -  Zope@zope.org
> https://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  https://mail.zope.org/mailman/listinfo/zope-announce
>  https://mail.zope.org/mailman/listinfo/zope-dev )
>
>



-- 
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby donecal.com
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )