[Zope] ANN: eGenix mxODBC Plone/Zope Database Adapter 2.2.3

2015-09-14 Thread eGenix Team: M.-A. Lemburg

ANNOUNCING

  mxODBC Plone/Zope Database Adapter

Version 2.2.3

  for the Plone CMS and Zope server platform

  Available for Plone 4.0-4.3 and Plone 5.0,
Zope 2.12 and 2.13, on
Windows, Linux, Mac OS X, FreeBSD and other platforms

This announcement is also available on our web-site for online reading:
http://www.egenix.com/company/news/eGenix-mxODBC-Zope-DA-2.2.3-GA.html


INTRODUCTION

The eGenix mxODBC Zope DA allows you to easily connect your Zope or
Plone CMS installation to just about any database backend on the
market today, giving you the reliability of the commercially supported
eGenix product mxODBC and the flexibility of the ODBC standard as
middle-tier architecture.

The mxODBC Zope Database Adapter is highly portable, just like Zope
itself, and provides a high performance interface to all your ODBC
data sources, using a single well-supported interface on Windows,
Linux, Mac OS X, FreeBSD and other platforms.

This makes it ideal for deployment in ZEO Clusters and Zope hosting
environments where stability and high performance are a top priority,
establishing an excellent basis and scalable solution for your Plone
CMS.

Product page:

http://www.egenix.com/products/zope/mxODBCZopeDA/


NEWS

The 2.2.3 release of our mxODBC Zope/Plone Database Adapter product is
a patch level release of the popular ODBC database interface for Plone
and Zope. It includes these enhancements and fixes:

Feature Updates
---

 * We have integrated a new option to force serialized connects on a
   per Zope connection object basis. This can be used to work around
   bugs in ODBC drivers which are not fully thread-safe in the connect
   phase. The option is disabled per default.

Driver Compatibility Enhancements
-

 * ODBC driver compatibility updated. Upgraded to the latest mxODBC
   3.3.5 release, adding compatibility enhancements for MS SQL
   Server. See the mxODBC 3.3.5 release announcements for full
   details.

Installation Enhancements
-

 * Added pip install compatibility to mxODBC Zope DA by creating
   prebuilt archives and uploading a web installer to PyPI. This can
   be useful if you are installing Zope or Plone using a
   requirements.txt type approach, e.g. using

   pip install ThreadLock Products.ZSQLMethods egenix-mxodbc-zopeda

 * Enabled creating wheels from the prebuilt archives, which helps
   when running pip with the wheels package installed. pip then tries
   to build wheels during installation and caches them for future
   reuse.

The complete list of changes is available on the mxODBC Zope DA
changelog page.

http://www.egenix.com/products/zope/mxODBCZopeDA/changelog.html

mxODBC Zope DA 2.2.0 was released on 2014-12-11. Please see the mxODBC
Zope DA 2.2.0 release announcement for all the new features we have
added.

http://www.egenix.com/company/news/eGenix-mxODBC-Zope-DA-2.2.0-GA.html

For the full list of features, please see the mxODBC Zope DA feature
list:

http://www.egenix.com/products/zope/mxODBCZopeDA/#Features

The complete list of changes is available on the mxODBC Zope DA
changelog page.



UPGRADING

Users are encouraged to upgrade to this latest mxODBC Plone/Zope
Database Adapter release to benefit from the new features and updated
ODBC driver support. We have taken special care not to introduce
backwards incompatible changes, making the upgrade experience as
smooth as possible.

For major and minor upgrade purchases, we will give out 20% discount
coupons going from mxODBC Zope DA 1.x to 2.2 and 50% coupons for
upgrades from mxODBC 2.x to 2.2. After upgrade, use of the original
license from which you upgraded is no longer permitted. Patch level
upgrades (e.g. 2.2.0 to 2.2.3) are always free of charge.

Please contact the eGenix.com Sales Team with your existing license
serials for details for an upgrade discount coupon.

If you want to try the new release before purchase, you can request
30-day evaluation licenses by visiting our web-site or writing to
sa...@egenix.com, stating your name (or the name of the company) and
the number of eval licenses that you need.

http://www.egenix.com/products/python/mxODBCZopeDA/#Evaluation


DOWNLOADS

Please visit the eGenix mxODBC Zope DA product page for downloads,
instructions on installation and documentation of the packages:

http://www.egenix.com/company/products/zope/mxODBCZopeDA/

If you want to try the package, please jump straight to the download
instructions:

http://www.egenix.com/produ

[Zope] ANN: eGenix mxODBC Plone/Zope Database Adapter 2.2.2

2015-06-10 Thread eGenix Team: M.-A. Lemburg

ANNOUNCING

  mxODBC Plone/Zope Database Adapter

Version 2.2.2

  for the Plone CMS and Zope server platform

  Available for Plone 4.0-4.3 and Plone 5.0,
Zope 2.12 and 2.13, on
Windows, Linux, Mac OS X, FreeBSD and other platforms

This announcement is also available on our web-site for online reading:
http://www.egenix.com/company/news/eGenix-mxODBC-Zope-DA-2.2.2-GA.html


INTRODUCTION

The eGenix mxODBC Zope DA allows you to easily connect your Zope or
Plone CMS installation to just about any database backend on the
market today, giving you the reliability of the commercially supported
eGenix product mxODBC and the flexibility of the ODBC standard as
middle-tier architecture.

The mxODBC Zope Database Adapter is highly portable, just like Zope
itself and provides a high performance interface to all your ODBC data
sources, using a single well-supported interface on Windows, Linux,
Mac OS X, FreeBSD and other platforms.

This makes it ideal for deployment in ZEO Clusters and Zope hosting
environments where stability and high performance are a top priority,
establishing an excellent basis and scalable solution for your Plone
CMS.

Product page:

http://www.egenix.com/products/zope/mxODBCZopeDA/


NEWS

The 2.2.2 release of our mxODBC Zope/Plone Database Adapter product is
a patch level release of the popular ODBC database interface for Plone
and Zope. It includes these enhancements and fixes:

Driver Compatibility Enhancements
-

 * Reenabled returning cursor.rowcount for FreeTDS >= 0.91. In
   previous versions, FreeTDS could return wrong data for .rowcount
   when using SELECTs.

Fixes
-

 * Removed exists() built-in from mxODBC Zope DA's implicit addition
   of new built-ins via mxTools.

   This resolves a hard to track bug where the new built-in could
   potentially override the TAL python:exists function (in
   e.g. tal:condition="exists:something"). See this
   Products.CMFEditions fix for an example where the problem
   surfaced. This is a bug in TAL (it shouldn't give preference to
   built-ins over its own helpers), but we're providing the fix as
   easy work-around.

The complete list of changes is available on the mxODBC Zope DA
changelog page.

http://www.egenix.com/products/zope/mxODBCZopeDA/changelog.html

mxODBC Zope DA 2.2.0 was released on 2014-12-11. Please see the mxODBC
Zope DA 2.2.0 release announcement for all the new features we have
added.

http://www.egenix.com/company/news/eGenix-mxODBC-Zope-DA-2.2.0-GA.html

For the full list of features, please see the mxODBC Zope DA feature
list:

http://www.egenix.com/products/zope/mxODBCZopeDA/#Features

The complete list of changes is available on the mxODBC Zope DA
changelog page.



UPGRADING

Users are encouraged to upgrade to this latest mxODBC Plone/Zope
Database Adapter release to benefit from the new features and updated
ODBC driver support. We have taken special care not to introduce
backwards incompatible changes, making the upgrade experience as
smooth as possible.

For major and minor upgrade purchases, we will give out 20% discount
coupons going from mxODBC Zope DA 1.x to 2.2 and 50% coupons for
upgrades from mxODBC 2.x to 2.2. After upgrade, use of the original
license from which you upgraded is no longer permitted. Patch level
upgrades (e.g. 2.2.0 to 2.2.2) are always free of charge.

Please contact the eGenix.com Sales Team with your existing license
serials for details for an upgrade discount coupon.

If you want to try the new release before purchase, you can request
30-day evaluation licenses by visiting our web-site or writing to
sa...@egenix.com, stating your name (or the name of the company) and
the number of eval licenses that you need.

http://www.egenix.com/products/python/mxODBCZopeDA/#Evaluation


DOWNLOADS

Please visit the eGenix mxODBC Zope DA product page for downloads,
instructions on installation and documentation of the packages:

http://www.egenix.com/company/products/zope/mxODBCZopeDA/

If you want to try the package, please jump straight to the download
instructions:

http://www.egenix.com/products/zope/mxODBCZopeDA/#Download

Fully functional evaluation licenses for the mxODBC Zope DA are
available free of charge:

http://www.egenix.com/products/zope/mxODBCZopeDA/#Evaluation


SUPPORT

Commercial support for this product is available directly from
eGenix.com.

Please see the support section of our website for details:

[Zope] ANN: eGenix mxODBC Plone/Zope Database Adapter 2.2.1

2015-04-20 Thread eGenix Team: M.-A. Lemburg

ANNOUNCING

  mxODBC Plone/Zope Database Adapter

Version 2.2.1

  for the Plone CMS and Zope server platform

  Available for Plone 4.0-4.3 and Plone 5.0,
Zope 2.12 and 2.13, on
Windows, Linux, Mac OS X, FreeBSD and other platforms

This announcement is also available on our web-site for online reading:
http://www.egenix.com/company/news/eGenix-mxODBC-Zope-DA-2.2.1-GA.html


INTRODUCTION

The eGenix mxODBC Zope DA allows you to easily connect your Zope or
Plone CMS installation to just about any database backend on the
market today, giving you the reliability of the commercially supported
eGenix product mxODBC and the flexibility of the ODBC standard as
middle-tier architecture.

The mxODBC Zope Database Adapter is highly portable, just like Zope
itself and provides a high performance interface to all your ODBC data
sources, using a single well-supported interface on Windows, Linux,
Mac OS X, FreeBSD and other platforms.

This makes it ideal for deployment in ZEO Clusters and Zope hosting
environments where stability and high performance are a top priority,
establishing an excellent basis and scalable solution for your Plone
CMS.

Product page:

http://www.egenix.com/products/zope/mxODBCZopeDA/


NEWS

The 2.2.1 release of our mxODBC Zope/Plone Database Adapter product is
a patch level release of the popular ODBC database interface for Plone
and Zope. It includes these enhancements and fixes:

Feature Updates
---

 * Fully compatible with *Zope External Methods* and Zope's built-in
   transaction mechanism: use Connection Objects in Python modules set
   up as Zope External Methods to all the features of the mxODBC Zope
   DA from Python and even tap into the low-level features of mxODBC
   within Zope's transaction mechanism.

 * Full support of *Stored Procedures*: when using Zope External
   Methods, you have full access to SQL stored procedures, which
   allows direct integration with external database APIs.

Driver Compatibility Enhancements
-

 * ODBC driver compatibility updated. Upgraded to the latest mxODBC
   3.3.2 release, adding compatibility enhancements for MS SQL Server,
   SAP Sybase ASE and stored procedure output parameters. See the
   mxODBC 3.3.0 and 3.3.2 release announcements for full details.

   http://www.egenix.com/company/news/eGenix-mxODBC-3.3.2-GA.html

Fixes
-

 * Documented use of allow_hosts in buildout.cfg

The complete list of changes is available on the mxODBC Zope DA
changelog page.

http://www.egenix.com/products/zope/mxODBCZopeDA/changelog.html

mxODBC Zope DA 2.2.0 was released on 2014-12-11. Please see the mxODBC
Zope DA 2.2.0 release announcement for all the new features we have
added.

http://www.egenix.com/company/news/eGenix-mxODBC-Zope-DA-2.2.0-GA.html

For the full list of features, please see the mxODBC Zope DA feature
list:

http://www.egenix.com/products/zope/mxODBCZopeDA/#Features

The complete list of changes is available on the mxODBC Zope DA
changelog page.



UPGRADING

Users are encouraged to upgrade to this latest mxODBC Plone/Zope
Database Adapter release to benefit from the new features and updated
ODBC driver support. We have taken special care not to introduce
backwards incompatible changes, making the upgrade experience as
smooth as possible.

For major and minor upgrade purchases, we will give out 20% discount
coupons going from mxODBC Zope DA 1.x to 2.2 and 50% coupons for
upgrades from mxODBC 2.x to 2.2. After upgrade, use of the original
license from which you upgraded is no longer permitted. Patch level
upgrades (e.g. 2.2.0 to 2.2.1) are always free of charge.

Please contact the eGenix.com Sales Team with your existing license
serials for details for an upgrade discount coupon.

If you want to try the new release before purchase, you can request
30-day evaluation licenses by visiting our web-site or writing to
sa...@egenix.com, stating your name (or the name of the company) and
the number of eval licenses that you need.

http://www.egenix.com/products/python/mxODBCZopeDA/#Evaluation


DOWNLOADS

Please visit the eGenix mxODBC Zope DA product page for downloads,
instructions on installation and documentation of the packages:

http://www.egenix.com/company/products/zope/mxODBCZopeDA/

If you want to try the package, please jump straight to the download
instructions:

http://www.egenix.com/products/zope/mxODBCZopeDA/#Download

Fully functional evaluation licenses for the mxODBC Zope DA are
available free of charge:

   

[Zope] ANN: eGenix mxODBC Plone/Zope Database Adapter 2.2.0

2014-12-11 Thread eGenix Team: M.-A. Lemburg

ANNOUNCING

  mxODBC Plone/Zope Database Adapter

Version 2.2.0

  for the Plone CMS and Zope server platform

  Available for Plone 4.0-4.3 and Plone 5.0,
Zope 2.12 and 2.13, on
Windows, Linux, Mac OS X, FreeBSD and other platforms

This announcement is also available on our web-site for online reading:
http://www.egenix.com/company/news/eGenix-mxODBC-Zope-DA-2.2.0-GA.html


INTRODUCTION

The eGenix mxODBC Zope DA allows you to easily connect your Zope or
Plone CMS installation to just about any database backend on the
market today, giving you the reliability of the commercially supported
eGenix product mxODBC and the flexibility of the ODBC standard as
middle-tier architecture.

The mxODBC Zope Database Adapter is highly portable, just like Zope
itself and provides a high performance interface to all your ODBC data
sources, using a single well-supported interface on Windows, Linux,
Mac OS X, FreeBSD and other platforms.

This makes it ideal for deployment in ZEO Clusters and Zope hosting
environments where stability and high performance are a top priority,
establishing an excellent basis and scalable solution for your Plone
CMS.

Product page:

http://www.egenix.com/products/zope/mxODBCZopeDA/


NEWS

We are pleased to announce our new version 2.2.0 of the mxODBC
Zope/Plone Database Adapter product.

In this release, we have upgraded the adapter to mxODBC 3.3.1 and
added compatibility with the latest Plone releases and ODBC
drivers/managers.

Feature Enhancements


 * Compatible with Plone 4.0 - 4.3.

 * Compatible with the upcoming Plone 5.0.

Enhanced Support for Stored Procedures

 * Added documentation on how to call stored procedures from Plone /
   Zope.

 * Added support for input, output and input/output parameters to the
   .callproc() method for calling stored procedures.

 * Added documentation on how to use External Methods to access and
   use the mxODBC Zope DA connection objects.

Fast Cursor Types

 * Switched to forward-only cursor types for all database backends,
   since this provides a much better performance for MS SQL Server and
   IBM DB2 drivers.

Updated mxODBC API

 * Access all new features from the updated mxODBC 3.3 API via the
   DatabaseConnect.connection attribute or by importing the mxODBC API
   directly. Please see the mxODBC 3.3.0 and 3.3.1 release
   announcements for full details.

Easier Installation

 * ThreadLock egg distribution provided by eGenix to avoid having a
   compiler installed for the installation buildout run. Please see
   our ThreadLock distribution release announcement for details:

   
http://www.egenix.com/company/news/eGenix-ThreadLock-Distribution-2.13.0.1.html

For the full list of features, please see the mxODBC Zope DA feature
list:

http://www.egenix.com/products/zope/mxODBCZopeDA/#Features


Driver Compatibility Enhancements
-

 * ODBC driver compatibility updated. By upgrading to the latest
   mxODBC 3.3 release, we are bringing all compatibility enhancements
   added to mxODBC 3.3 to the mxODBC Zope DA. This includes updated
   support for Oracle, MS SQL Server, Sybase ASE, IBM DB2, PostgreSQL
   and MySQL. See the mxODBC 3.3.0 and 3.3.1 release announcements for
   full details:

   http://www.egenix.com/company/news/eGenix-mxODBC-3.3.0-GA.html
   http://www.egenix.com/company/news/eGenix-mxODBC-3.3.1-GA.html

 * ODBC manager compatibility updated. Built against unixODBC 2.3.2,
   iODBC 3.52.8, DataDirect 7.1.2 on Unix. Built against the MS
   Windows Manager ODBC on Windows. Built against iODBC 3.52.8 on Mac
   OS X.

The complete list of changes is available on the mxODBC Zope DA
changelog page.

http://www.egenix.com/products/zope/mxODBCZopeDA/changelog.html


UPGRADING

Users are encouraged to upgrade to this latest mxODBC Plone/Zope
Database Adapter release to benefit from the new features and updated
ODBC driver support. We have taken special care not to introduce
backwards incompatible changes, making the upgrade experience as
smooth as possible.

For major and minor upgrade purchases, we will give out 20% discount
coupons going from mxODBC Zope DA 1.x to 2.2 and 50% coupons for
upgrades from mxODBC 2.x to 2.2. After upgrade, use of the original
license from which you upgraded is no longer permitted. Patch level
upgrades (e.g. 2.2.0 to 2.2.1) are always free of charge.

Please contact the eGenix.com Sales Team with your existing license
serials for details for an upgrade discount coupon.

If you want to try the new release before purchase, you can request
30-day evaluation licenses by v

[Zope] ANN: eGenix ThreadLock Distribution 2.13.0.1

2014-11-06 Thread eGenix Team: M.-A. Lemburg


ANNOUNCING

   eGenix.com ThreadLock Distribution

 Version 2.13.0.1


 eGenix is making a ThreadLock binary distribution
  available to simplify the setup for users of our mxODBC
  Plone/Zope database adapter.


This announcement is also available on our web-site for online reading:
http://www.egenix.com/company/news/eGenix-ThreadLock-Distribution-2.13.0.1.html



INTRODUCTION

Several people have approached us about a problem they are facing
with installing our mxODBC database adapter for Plone and Zope:

http://www.egenix.com/products/zope/mxODBCZopeDA/

The adapter product has dependencies on
 * ThreadLock
 * Products.ZSQLMethods

The Products.ZSQLMethods package is a pure Python package, so it
installs fine on all platforms.

ThreadLock comes with a Python C extension, so buildout needs
to either find egg files for the platforms or have a compiler
installed to build the C extensions.

On Unix platforms, installing a compiler is fairly straight forward,
but on Windows setting up compilers for Python is difficult and
the ThreadLock entry on PyPI only comes with egg files for Python
2.6 on Windows.



SOLUTION

To overcome this problem, we have taken the ThreadLock package
and created an internal setup to have it compiled by our
build farm.

You can now use these buildout configuration settings to pull
the egg files from our indexes.

For UCS2 Python builds (16-bit Unicode on Unix, Python for Windows):


[buildout]
...
find-links =
...
https://downloads.egenix.com/python/index/ucs2/
eggs =
...
ThreadLock

[versions]
...
ThreadLock = 2.13.0.1


For UCS4 Python builds (32-bit Unicode on Unix):


[buildout]
...
find-links =
...
https://downloads.egenix.com/python/index/ucs4/
eggs =
...
ThreadLock

[versions]
...
ThreadLock = 2.13.0.1


Available binaries
--

We provide egg files for Linux x86 and x64, Windows x86 and x64 as
well as the source package as fallback solution. The binaries were
compiled with Python 2.4, 2.5, 2.6 and 2.7.

Version number
--

Note that we have added a build number to the package version. This
allows us to issue updates to the package builds should these be
necessary and also makes sure that your buildout will use the packages
from our indexes instead of PyPI or other indexes.



ABOUT THE EGENIX MXODBC PLONE/ZOPE DATABASE ADAPTER

The eGenix mxODBC Zope DA allows you to easily connect your Zope or
Plone CMS installation to just about any database backend on the
market today, giving you the reliability of the commercially supported
eGenix product mxODBC and the flexibility of the ODBC standard as
middle-tier architecture.

The mxODBC Zope Database Adapter is highly portable, just like Zope
itself and provides a high performance interface to all your ODBC data
sources, using a single well-supported interface on Windows, Linux,
Mac OS X, FreeBSD and other platforms.

This makes it ideal for deployment in ZEO Clusters and Zope hosting
environments where stability and high performance are a top priority,
establishing an excellent basis and scalable solution for your Plone
CMS.

Product page:

http://www.egenix.com/products/zope/mxODBCZopeDA/



MORE INFORMATION

For more information on the eGenix ThreadLock distribution, the eGenix
mxODBC Zope DA, licensing and download instructions, please write to
sa...@egenix.com.

Enjoy,
-- 
-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Nov 06 2014)
>>> Python Projects, Consulting and Support ...   http://www.egenix.com/
>>> mxODBC.Zope/Plone.Database.Adapter ...   http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/

2014-10-24: Released eGenix pyOpenSSL 0.13.5 ...  http://egenix.com/go63

: Try our mxODBC.Connect Python Database Interface for free ! ::

   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
   Registered at Amtsgericht Duesseldorf: HRB 46611
   http://www.egenix.com/company/contact/
___
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:

[Zope] ANN: eGenix mxODBC Zope/Plone Database Adapter 2.1.2

2013-05-07 Thread eGenix Team: M.-A. Lemburg


ANNOUNCEMENT

  mxODBC Zope/Plone Database Adapter

Version 2.1.2

 for Zope and the Plone CMS

Available for Plone 4.0, 4.1 and 4.2,
Zope 2.12 and 2.13, on
Windows, Linux, Mac OS X, FreeBSD and other platforms

This announcement is also available on our web-site for online reading:
http://www.egenix.com/company/news/eGenix-mxODBC-Zope-DA-2.1.2-GA.html



INTRODUCTION

The eGenix mxODBC Zope DA allows you to easily connect your Zope or
Plone CMS installation to just about any database backend on the
market today, giving you the reliability of the commercially supported
eGenix product mxODBC and the flexibility of the ODBC standard as
middle-tier architecture.

The mxODBC Zope Database Adapter is highly portable, just like Zope
itself and provides a high performance interface to all your ODBC data
sources, using a single well-supported interface on Windows, Linux,
Mac OS X, FreeBSD and other platforms.

This makes it ideal for deployment in ZEO Clusters and Zope hosting
environments where stability and high performance are a top priority,
establishing an excellent basis and scalable solution for your Plone
CMS.

Product page:

http://www.egenix.com/products/zope/mxODBCZopeDA/



NEWS

We are pleased to announce the new version 2.1.2 of our mxODBC
Zope/Plone Database Adapter product.

Compatibility Enhancements
--

 * Added a work-around for a regression in Python 2.7.4 that results
   in a segfault when exiting Zope/Plone after loading the mxODBC Zope
   DA.

   The regression will be fixed in Python 2.7.5, but we don't want to
   expose our users to segfaults, so added a work-around.

   See http://bugs.python.org/issue17703 for the bug ticket.

 * Upgraded the underlying mxODBC library to version 3.2.3. Please see
   the mxODBC 3.2.3 release announcement for additional details:

   http://www.egenix.com/company/news/eGenix-mxODBC-3.2.3-GA.html


Driver Compatibility


 * Please also see the mxODBC Zope DA 2.1.1 announcement for an
   important new feature which allows to dramatically increase the
   fetch performance when working with MS SQL Server and IBM DB2
   databases.

   http://www.egenix.com/company/news/eGenix-mxODBC-Zope-DA-2.1.1-GA.html


For the full set of changes please check the change log:

http://www.egenix.com/products/zope/mxODBCZopeDA/changelog.html



FEATURES

Version 2.1.0 of our mxODBC Zope/Plone Database Adapter product was
released on 2012-09-18. Please see the announcement for highlights of
the 2.1 release:

http://www.egenix.com/company/news/eGenix-mxODBC-Zope-DA-2.1.0-GA.html

For the full set of features mxODBC Zope DA has to offer, please see:

http://www.egenix.com/products/zope/mxODBCZopeDA/#Features



UPGRADING

Users are encouraged to upgrade to this latest mxODBC Zope/Plone DA
release to benefit from the new features and updated ODBC driver
support.

We have taken special care not to introduce backwards incompatible
changes, making the upgrade experience as smooth as possible.

As always, patch level upgrades (e.g. from 2.1.0 to 2.1.2) are free of
charge. The licenses you have purchased for 2.1 will continue to work
with this new release.

For major and minor upgrade purchases, we will give out 20% discount
coupons going from mxODBC Zope DA 1.x to 2.1 and 50% coupons for
upgrades from mxODBC 2.x to 2.1. After upgrade, use of the original
license from which you upgraded is no longer permitted.

Please contact the eGenix.com Sales Team with your existing license
serials for details for an upgrade discount coupon.

If you want to try the new release before purchase, you can request
30-day evaluation licenses by visiting our web-site or writing to
sa...@egenix.com, stating your name (or the name of the company) and
the number of evaluation licenses that you need.

___

SUPPORT

Commercial support for this product is available from eGenix.com.
Please see

http://www.egenix.com/services/support/

for details about our support offerings.



MORE INFORMATION

For more information on the mxODBC Zope Database Adapter, licensing
and download instructions, please visit our web-site:

http://www.egenix.com/products/zope/mxODBCZopeDA/

You can buy mxODBC Zope DA licenses online from the eGenix.com shop at:

http://shop.egenix.com/

About Python (http://www.python.org/):

Python is an object-oriented Open S

[Zope] ANN: eGenix mxODBC Zope/Plone Database Adapter 2.1.1

2013-04-02 Thread eGenix Team: M.-A. Lemburg


ANNOUNCEMENT

  mxODBC Zope/Plone Database Adapter

Version 2.1.1

 for Zope and the Plone CMS

Available for Plone 4.0, 4.1 and 4.2,
Zope 2.12 and 2.13, on
Windows, Linux, Mac OS X, FreeBSD and other platforms

This announcement is also available on our web-site for online reading:
http://www.egenix.com/company/news/eGenix-mxODBC-Zope-DA-2.1.1-GA.html



INTRODUCTION

The eGenix mxODBC Zope DA allows you to easily connect your Zope or
Plone CMS installation to just about any database backend on the
market today, giving you the reliability of the commercially supported
eGenix product mxODBC and the flexibility of the ODBC standard as
middle-tier architecture.

The mxODBC Zope Database Adapter is highly portable, just like Zope
itself and provides a high performance interface to all your ODBC data
sources, using a single well-supported interface on Windows, Linux,
Mac OS X, FreeBSD and other platforms.

This makes it ideal for deployment in ZEO Clusters and Zope hosting
environments where stability and high performance are a top priority,
establishing an excellent basis and scalable solution for your Plone
CMS.

Product page:

http://www.egenix.com/products/zope/mxODBCZopeDA/



NEWS

We are pleased to announce the new version 2.1.1 of our mxODBC
Zope/Plone Database Adapter product.

Feature Enhancements


 * Added a new connection property "ODBC cursor type" which allows
   easily adjusting the ODBC cursor type to be used for mxODBC Zope DA
   connection objects.

   This new property allows enhancing the performance of the adapter
   significantly, when using it with MS SQL Server or IBM DB2 database
   backends. Please see below for details.

Driver Compatibility


 * MS SQL Server performance can now be much enhanced, and increased
   to levels beyond that of previous mxODBC Zope DA releases, by
   adjusting the connection ODBC cursor type to "Forward only
   cursors".

   The performance increase compared to mxODBC Zope DA 2.1.0 is
   enormous: from 2-3x faster executes/fetches for average queries, up
   to 300x faster for simple cases.

   In mxODBC Zope DA 2.2, we will switch to using "Forward only
   cursors" per default for all database backends.

 * IBM DB2 can benefit from the same performance enhancements using
   "Forward only cursors".

   The effect is a lot smaller, but still noticeable: up to 2x faster
   executes/fetches with forward-only cursors, compared to mxODBC Zope
   DA 2.1.0.

 * Added documentation to explain the different cursor types,
   compatibility with different database backends and effects on
   performance.

Fixes
-

 * Fixed the installation instructions to be more generic and easily
   adaptable to Plone and Zope installations on both Windows and Unix
   platforms.

For the full set of changes please check the change log:

http://www.egenix.com/products/zope/mxODBCZopeDA/changelog.html



FEATURES

Version 2.1.0 of our mxODBC Zope/Plone Database Adapter product
was released on 2012-09-18. Please see the full
announcement for highlights of the 2.1 release:

http://www.egenix.com/company/news/eGenix-mxODBC-Zope-DA-2.1.0-GA.html

For the full set of features mxODBC has to offer, please see:

http://www.egenix.com/products/zope/mxODBCZopeDA/#Features



UPGRADING

Users are encouraged to upgrade to this latest mxODBC Zope/Plone DA
release to benefit from the new features and updated ODBC driver
support.

We have taken special care not to introduce backwards incompatible
changes, making the upgrade experience as smooth as possible.

As always, patch level upgrades (e.g. from 2.1.0 to 2.1.1) are free of
charge. The licenses you have purchased for 2.1 will continue to work
with this new release.

For major and minor upgrade purchases, we will give out 20% discount
coupons going from mxODBC Zope DA 1.x to 2.1 and 50% coupons for
upgrades from mxODBC 2.x to 2.1. After upgrade, use of the original
license from which you upgraded is no longer permitted.

Please contact the eGenix.com Sales Team with your existing license
serials for details for an upgrade discount coupon.

If you want to try the new release before purchace, you can request
30-day evaluation licenses by visiting our web-site or writing to
sa...@egenix.com, stating your name (or the name of the company) and
the number of eval licenses that you need.

___

SUPPORT

Commercial support for this product is available from eGenix.c

[Zope] ANN: eGenix mxODBC Zope/Plone Database Adapter 2.1.0

2012-09-18 Thread eGenix Team: M.-A. Lemburg

ANNOUNCEMENT

  mxODBC Zope/Plone Database Adapter

Version 2.1.0

 for Zope and the Plone CMS

Available for Plone 4.0, 4.1 and 4.2,
Zope 2.12 and 2.13, on
Windows, Linux, Mac OS X, FreeBSD and other platforms

This announcement is also available on our web-site for online reading:
http://www.egenix.com/company/news/eGenix-mxODBC-Zope-DA-2.1.0-GA.html


INTRODUCTION

The eGenix mxODBC Zope DA allows you to easily connect your Zope or
Plone CMS installation to just about any database backend on the
market today, giving you the reliability of the commercially supported
eGenix product mxODBC and the flexibility of the ODBC standard as
middle-tier architecture.

The mxODBC Zope Database Adapter is highly portable, just like Zope
itself and provides a high performance interface to all your ODBC data
sources, using a single well-supported interface on Windows, Linux,
Mac OS X, FreeBSD and other platforms.

This makes it ideal for deployment in ZEO Clusters and Zope hosting
environments where stability and high performance are a top priority,
establishing an excellent basis and scalable solution for your Plone
CMS.

Product page:

http://www.egenix.com/products/zope/mxODBCZopeDA/


NEWS

We are pleased to announce a new version 2.1.0 of our mxODBC
Zope/Plone Database Adapter product.

Updated Plone Support
-

In this new release, we have focused on a simplified zc.buildout
deployment as used in Plone 4.x and the latest Zope 2.13 releases.

The mxODBC Zope DA is now again compatible with all recent Plone
versions. Please see the mxODBC Zope DA documentation for details on
how to install the product for use in Plone.

For the full list of features, please see the mxODBC Zope DA feature
list:

http://www.egenix.com/products/zope/mxODBCZopeDA/#Features

Enhanced ODBC Driver Support


We have also updated the integrated mxODBC Python Extension to the
latest 3.2 release, which includes a number of important new features
and ODBC driver compatibility enhancements:

 * Added support for the DataDirect ODBC manager on Linux which is
   used by several data warehouse database backends

 * Added MS SQL Server ODBC Driver 1.0 for Linux support

 * Added Teradata support

 * Added Netezza support

 * Switched to unixODBC 2.3.1+ API for better 64-bit support on
   Linux

 * Enhanced Oracle Instance Client support

 * Enhanced IBM DB2 driver support

 * Enhanced Sybase ASE driver support

 * Enhanced FreeTDS ODBC driver support

 * Enhanced PostgreSQL driver support

 * Enhanced generic support for many other ODBC compatible databases

Please see the mxODBC 3.2 release announcement for a complete set of
changes available in the underlying mxODBC 3.2 package used in mxODBC
Zope/Plone DA 2.1:

http://www.egenix.com/company/news/eGenix-mxODBC-3.2.0-GA.html

Lowered Overall Licensing Costs
---

Starting with version 2.1, we have also simplified our license terms
to clarify the situation on multi-core and virtual machines. In most
cases, you no longer need to purchase more than one license per
Zope/Plone instance, if you are running on a multi-core processor or
virtual machine, scaling down the overall license costs significantly
compared to earlier mxODBC Zope DA releases.

Minor other changes
---

 * Error screens have been changed to plain text after the recent hot
   fix which disabled showing HTML in error messages

 * The "Security" tab now also works in Zope 2.13


UPGRADING

Users are encouraged to upgrade to this latest mxODBC Zope/Plone DA
release to benefit from the new features and updated ODBC driver
support.

We have taken special care not to introduce backwards incompatible
changes, making the upgrade experience as smooth as possible.

For upgrade purchases, we will give out 20% discount coupons going
from mxODBC Zope DA 1.x to 2.1 and 50% coupons for upgrades from
mxODBC 2.x to 2.1. After upgrade, use of the original license from
which you upgraded is no longer permitted.

Please contact the eGenix.com Sales Team with your existing license
serials for details for an upgrade discount coupon.

If you want to try the new release before purchace, you can request
30-day evaluation licenses by visiting our web-site or writing to
sa...@egenix.com, stating your name (or the name of the company) and
the number of eval licenses that you need.


MORE INFORMATION

For more information on the mxODBC Zope Database Adapter, licensing
and download instructions, plea

[Zope] ANN: eGenix mxODBC Zope Database Adapter 2.0.2

2012-02-09 Thread eGenix Team: M.-A. Lemburg

ANNOUNCEMENT

 mxODBC Zope Database Adapter

Version 2.0.2

 for Zope and the Plone CMS

Available for Zope 2.10 and later on
Windows, Linux, Mac OS X, FreeBSD and other platforms

This announcement is also available on our web-site for online reading:
http://www.egenix.com/company/news/eGenix-mxODBC-Zope-DA-2.0.2-GA.html


INTRODUCTION

The eGenix mxODBC Zope Database Adapter allows you to easily connect
your Zope or Plone installation to just about any database backend on
the market today, giving you the reliability of the commercially
supported eGenix product mxODBC and the flexibility of the ODBC
standard as middle-tier architecture.

The mxODBC Zope Database Adapter is highly portable, just like Zope
itself and provides a high performance interface to all your ODBC data
sources, using a single well-supported interface on Windows, Linux,
Mac OS X, FreeBSD and other platforms.

This makes it ideal for deployment in ZEO Clusters and Zope hosting
environments where stability and high performance are a top priority,
establishing an excellent basis and scalable solution for your Plone
CMS.

Product page:

http://www.egenix.com/products/zope/mxODBCZopeDA/


NEWS

We are pleased to announce a new version 2.0.2 of our mxODBC Zope DA
product.

With the patch level 2.0.2 release we have updated the integrated
mxODBC Python Extension to the latest 3.1.1 release, which
includes a number of important workarounds for these ODBC drivers:

 * Oracle 10gR1 and 10gR2
 * Oracle 11gR1 and 11gR2
 * Teradata 13
 * Netezza

Due to popular demand, we have also added instructions on how to
install mxODBC Zope DA 2.0 with Plone 4.1 and Zope 2.13 - even though
this combination is not officially supported by the mxODBC Zope DA 2.0
series:

http://www.egenix.com/products/zope/mxODBCZopeDA/#Installation


UPGRADING

Licenses purchased for version 2.0.x of the mxODBC Zope DA will continue
to work with the 2.0.2 patch level release.

Licenses purchased for version 1.0.x of the mxODBC Zope DA will not
work with version 2.0. More information about available licenses
is available on the product page:

http://www.egenix.com/products/zope/mxODBCZopeDA/#Licensing

Compared to the popular mxODBC Zope DA 1.0, version 2.0 offers
these enhancements:

 * Includes mxODBC 3.1 with updated support for many current ODBC
   drivers, giving you more portability and features for a wider
   range of database backends.

 * Mac OS X 10.6 (Snow Leopard) support.

 * Plone 3.2, 3.3, 4.0 support. Plone 4.1 works as well.

 * Zope 2.10, 2.11, 2.12 support. Zope 2.13 works as well.

 * Python 2.4 - 2.6 support.

 * Zero maintenance support to automatically reconnect the
   Zope connection after a network or database problem.

 * More flexible Unicode support with options to work with
   pure Unicode, plain strings or mixed setups - even for
   databases that don't support Unicode

 * Automatic and transparent text encoding and decoding

 * More flexible date/time support including options to work
   with Python datetime objects, mxDateTime, strings or tuples

 * New decimal support to have the Zope DA return decimal
   column values using Python's decimal objects.

 * Fully eggified to simplify easy_install and zc.buildout based
   installation


MORE INFORMATION

For more information on the mxODBC Zope Database Adapter, licensing
and download instructions, please visit our web-site:

http://www.egenix.com/products/zope/mxODBCZopeDA/

You can buy mxODBC Zope DA licenses online from the eGenix.com shop at:

http://shop.egenix.com/



Thank you,
-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Feb 09 2012)
>>> Python/Zope Consulting and Support ...http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/


::: Try our new mxODBC.Connect Python Database Interface for free ! 


   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
   Registered at Amtsgericht Duesseldorf: HRB 46611
   http://www.egenix.com/company/contact/
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Rela

[Zope] application/json request in Zope 2

2011-05-16 Thread Baiju M
Hi,

How to listen for application/json request in Zope 2

Is this project is the way to go ?
http://pypi.python.org/pypi/Products.jsonserver/1.2a1

Or is there any better approach ?
I am using Zope 2.12

Regards,
Baiju M
___
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] Zope document root or where do I keep my swfobject in Zope

2010-08-17 Thread Baiju M
On Tue, Aug 17, 2010 at 10:45 PM, Andreas Jung  wrote:
> Tapas Mishra wrote:
>>
>> I am having a javascript which I am using in my site.
>> My server is Zope I am not able to find where should I keep the
>> javascript in it.
>> Can any one help?
>
> Check the browser:resource ZCML directive.

http://bluebream.zope.org/doc/1.0/manual/browserresource.html

--
Baiju M
___
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] How to get context from Zope 2

2010-08-10 Thread Baiju M
Hi,
How can I get the context (say, root folder) within a function
called by a scheduler.  I am using tgscheduler to call a function
at particular interval: http://code.google.com/p/tgscheduler/

How can I get the root folder (context) from this function ?


Regards,
Baiju M
___
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] ANN: eGenix pyOpenSSL Distribution 0.10.0-1.0.0a

2010-06-10 Thread eGenix Team: M.-A. Lemburg


ANNOUNCING

   eGenix.com pyOpenSSL Distribution

  Version 0.10.0-1.0.0a


 An easy-to-install and easy-to-use distribution
 of the pyOpenSSL Python interface for OpenSSL -
available for Windows, Mac OS X and Unix platforms


This announcement is also available on our web-site for online reading:
http://www.egenix.com/company/news/eGenix-pyOpenSSL-Distribution-0.10.0-1.0.0a-1.html



INTRODUCTION

The eGenix.com pyOpenSSL Distribution includes everything you need to
get started with SSL in Python.

It comes with an easy-to-use installer that includes the most recent
OpenSSL library versions in pre-compiled form, making your application
independent of OS provided OpenSSL libraries:

http://www.egenix.com/products/python/pyOpenSSL/

pyOpenSSL is an open-source Python add-on that allows writing SSL/TLS-
aware network applications as well as certificate management tools:

https://launchpad.net/pyopenssl/

OpenSSL is an open-source implementation of the SSL/TLS protocol:

http://www.openssl.org/



NEWS

This new release of the eGenix.com pyOpenSSL Distribution updates the
included pyOpenSSL version to 0.10.0 and the included OpenSSL version
to 1.0.0a.


Main new features in pyOpenSSL 0.10.0 (from the announcement)
-

* pyOpenSSL 0.10 exposes several more OpenSSL APIs, including
  support for running TLS connections over in-memory BIOs, access
  to the OpenSSL random number generator, the ability to pass
  subject and issuer parameters when creating an X509Extension
  instance, more control over PKCS12 creation and an API for
  exporting PKCS12 objects, and APIs for controlling the client CA
  list servers send to clients.

* Several bugs have also been fixed, including a crash when
  certain X509Extension instances are deallocated, a mis-handling
  of the OpenSSL error queue in the X509Name implementation,
  Windows build issues, and a possible double free when using a
  debug build.

See Jean-Paul Calderone's full announcement for all details:

https://launchpad.net/pyopenssl/+announcement/4318


New features in OpenSSL 1.0.0a since our last release
-

The main new features in OpenSSL 0.9.8m is the new support for RFC
5746, which addresses the SSL renegotiation problem found in earlier
OpenSSL versions.

* RFC 5746 - Transport Layer Security (TLS) Renegotiation
  Indication Extension: http://tools.ietf.org/html/rfc5746

* For a complete list of changes see:
  http://www.openssl.org/news/news.html

Version 0.9.8n fixes this vulnerability (see
http://www.openssl.org/news/secadv_20100324.txt):

* "Record of death" vulnerability in OpenSSL 0.9.8f through
  0.9.8m

Version 1.0.0 adds many new features, including (see
http://www.openssl.org/news/news.html):

* Support for Whirlpool hash algorithm
* Support for GOST cipher

Version 1.0.0a fixes two security issues (see
http://www.openssl.org/news/secadv_20100601.txt):

* Invalid ASN1 module definition for CMS.
* Invalid Return value check in pkey_rsa_verifyrecover


New features in the eGenix pyOpenSSL Distribution
-

* The embedded OpenSSL libs will now look for certificates in
  /etc/ssl on Unix platforms and /System/Library/OpenSSL on
  Mac OS X

  Note that it's usually better to explicitly tell OpenSSL where
  to look for trusted certificates via
  .load_verify_locations(None, certs_dir) than to rely on the
  above defaults using context.set_default_verify_paths()

* Added support for Win64 and precompiled Python 2.6 compatible
  binaries for that platform (you can find the OpenSSL libs in
  openssl-win64/vc9)

* Added support for Mac OS X 10.6 on Intel x64.

* Added .egg Distributions for Python 2.4 as well (in order to
  support Plone 3).


As always, we provide binaries that include both pyOpenSSL and the
necessary OpenSSL libraries for all supported platforms: Windows x86
and x64, Linux x86 and x64, Mac OS X PPC, x86 and x64.

Due to popular demand, we've also added .egg-file format versions of
our eGenix.com pyOpenSSL Distribution for Windows, Linux and Mac OS X
to the available download options.

These makes setups using e.g. zc.buildout and other egg-file based
installers a lot easier.



DOWNLOADS

The download archives and instructions for installing the package can
be found at:

http://www.egenix.com/products/python/pyOpenSSL/

__

Re: [Zope] cron like service

2010-05-05 Thread Baiju M
On Wed, May 5, 2010 at 6:49 PM, Garry Saddington
 wrote:
> Can anyone suggest the easiest way to automatically have a python script
> fire at set times of the day/month/year.

Well, these things may not be easiest:

http://celeryproject.org/
http://packages.python.org/zc.async/1.5.0/

Regards,
Baiju M
___
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] identity values from sql server , mxodbc da

2010-04-24 Thread M.-A. Lemburg
Josh Burvill wrote:
> Hi I am using zope 2.8.11
> 
> I am using mxodbc da to connect to sql server and I was wondering what is
> the best way to get the new value of the primary key (an identity field)
> after inserting.
> 
> It looks like there are 3 slightly different functions I could use:
> 
> """
> 
> SCOPE_IDENTITY, IDENT_CURRENT, and @@IDENTITY are similar functions because
> they return values that are inserted into identity columns.
> 
> IDENT_CURRENT is not limited by scope and session; it is limited to a
> specified table. IDENT_CURRENT returns the value generated for a specific
> table in any session and any scope. For more information, see IDENT_CURRENT
> (Transact-SQL) .
> 
> SCOPE_IDENTITY and @@IDENTITY return the last identity values that are
> generated in any table in the current session. However, SCOPE_IDENTITY
> returns values inserted only within the current scope; @@IDENTITY is not
> limited to a specific scope.
> 
> "" (from http://msdn.microsoft.com/en-us/library/ms190315.aspx)
> It seems like scope_identity might be the best one to use, but is it
> possible that two zope transactions might occur within the one sql server
> "scope" and "session" and therefore get the wrong identity value depending
> on timing etc.

All of these methods have issues and there's always the possibility
of them returning NULL or, even worse, wrong values (e.g. due to
a trigger or stored procedure inserting rows as result of the initial
insert).

I'd suggest to consider a somewhat different approach:

Method 1:

When inserting a row into a table, you typically know that a
certain combination of column values has to be unique (perhaps
even protected by an additional constraint like a unique index).

After the insert query the identity column value by using this
column value combination.

That will work in all cases and is more robust than any of the
above helper functions.

Method 2:

Another strategy that we often use is based on probability:
instead of letting the database determine an identity value,
we chose one using a random number generator (RNG).

Chances are high that the identity value hasn't been used if
you use a good RNG, so it's very likely to be able to insert new
rows without problems.

In the event of a collision, the database will raise an error
and you can then choose a different identity value, again
based on an RNG.

Method 2 has the advantage of knowing the identity value
before the insert actually happens. That's often useful
and it (usually) avoids the extra query needed by method 1.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Apr 24 2010)
>>> Python/Zope Consulting and Support ...http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/


::: Try our new mxODBC.Connect Python Database Interface for free ! 


   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
   Registered at Amtsgericht Duesseldorf: HRB 46611
   http://www.egenix.com/company/contact/
___
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] ANN: eGenix mxODBC Zope Database Adapter 2.0.1

2010-04-23 Thread eGenix Team: M.-A. Lemburg

ANNOUNCEMENT

 mxODBC Zope Database Adapter

Version 2.0.1

 for Zope and the Plone CMS

Available for Zope 2.12 and later on
Windows, Linux, Mac OS X, FreeBSD and other platforms

This announcement is also available on our web-site for online reading:
http://www.egenix.com/company/news/eGenix-mxODBC-Zope-DA-2.0.1-GA.html


INTRODUCTION

The eGenix mxODBC Zope Database Adapter allows you to easily connect
your Zope or Plone installation to just about any database backend on
the market today, giving you the reliability of the commercially
supported eGenix product mxODBC and the flexibility of the ODBC
standard as middle-tier architecture.

The mxODBC Zope Database Adapter is highly portable, just like Zope
itself and provides a high performance interface to all your ODBC data
sources, using a single well-supported interface on Windows, Linux,
Mac OS X, FreeBSD and other platforms.

This makes it ideal for deployment in ZEO Clusters and Zope hosting
environments where stability and high performance are a top priority,
establishing an excellent basis and scalable solution for your Plone
CMS.


NEWS

We are pleased to announce a new version 2.0.1 of our mxODBC Zope DA
product.

With the patch level 2.0.1 release we have backported the mxODBC Zope DA
product to also run on Zope 2.10, 2.11 as well as Python 2.4. This was
done to meet popular demand, since Plone 3 still uses these Zope and
Python versions.

The mxODBC Zope DA is now fully compatible with all recent Plone
versions, including the upcoming Plone 4.0 release. Please see the
mxODBC Zope DA documentation for details on how to install the
product for use in Plone.

Compared to the previous 1.0 version of the mxODBC Zope DA, the 2.0
version includes these enhancements:

 * Includes mxODBC 3.1 with updated support for many current ODBC
   drivers, giving you more portability and features for a wider
   range of database backends.

 * Mac OS X 10.6 (Snow Leopard) support.

 * Python 2.4, 2.5 and 2.6 support.

 * Zope 2.10, 2.11 and 2.12 support.

 * Zero maintenance support to automatically reconnect the
   Zope connection after a network or database problem.

 * More flexible Unicode support with options to work with
   pure Unicode, plain strings or mixed setups - even for
   databases that don't support Unicode

 * Automatic and transparent text encoding and decoding

 * More flexible date/time support including options to work
   with Python datetime objects, mxDateTime, strings or tuples

 * New decimal support to have the Zope DA return decimal
   column values using Python's decimal objects.

 * Fully eggified to simplify easy_install and zc.buildout based
   installation


UPGRADING

Licenses purchased for version 2.0.0 of the mxODBC Zope DA will continue
to work with the 2.0.1 patch level release.

If you have already bought mxODBC Zope DA 1.0.x licenses, we offer you
a time limited upgrade option:

 * If you have purchased the licenses between 2009-06-01 and 2009-12-31
   you can get a 20% discount on the full price of version 2.0.

 * If you have purchased the licenses after 2010-01-01
   you can get a 40% discount on the full price of version 2.0.

This offer is time limited until 2010-09-30.

Please write to sa...@egenix.com for details on how to get the
needed discount coupons.


MORE INFORMATION

For more information on the mxODBC Zope Database Adapter, licensing
and download instructions, please visit our web-site:

http://www.egenix.com/products/zope/mxODBCZopeDA/

You can buy mxODBC Zope DA licenses online from the eGenix.com shop at:

http://shop.egenix.com/



Thank you,
-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Apr 23 2010)
>>> Python/Zope Consulting and Support ...http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/


::: Try our new mxODBC.Connect Python Database Interface for free ! 


   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
   Registered at Amtsgericht Duesseldorf: HRB 46611
   http://www.egenix.com/company/contact/
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No 

[Zope] ANN: eGenix mxODBC Zope Database Adapter 2.0.0

2010-03-24 Thread eGenix Team: M.-A. Lemburg

ANNOUNCEMENT

 mxODBC Zope Database Adapter

Version 2.0.0

 for Zope and the Plone CMS

Available for Zope 2.12 and later on
Windows, Linux, Mac OS X, FreeBSD and other platforms

This announcement is also available on our web-site for online reading:
http://www.egenix.com/company/news/eGenix-mxODBC-Zope-DA-2.0.0-GA.html


INTRODUCTION

The eGenix mxODBC Zope Database Adapter allows you to easily connect
your Zope or Plone installation to just about any database backend on
the market today, giving you the reliability of the commercially
supported eGenix product mxODBC and the flexibility of the ODBC
standard as middle-tier architecture.

The mxODBC Zope Database Adapter is highly portable, just like Zope
itself and provides a high performance interface to all your ODBC data
sources, using a single well-supported interface on Windows, Linux,
Mac OS X, FreeBSD and other platforms.

This makes it ideal for deployment in ZEO Clusters and Zope hosting
environments where stability and high performance are a top priority,
establishing an excellent basis and scalable solution for your Plone
CMS.


NEWS

We are pleased to announce a new version 2.0 of our mxODBC Zope DA
product.

The new version was changes to conform with the new Zope 2.12 layout
and installation system and includes many enhancements over our
previous 1.0 version:

 * Includes mxODBC 3.1 with updated support for many current ODBC
   drivers, giving you more portability and features for a wider
   range of database backends.

 * Mac OS X 10.6 (Snow Leopard) support.

 * Python 2.5 and 2.6 support.

 * Zero maintenance support to automatically reconnect the
   Zope connection after a network or database problem.

 * More flexible Unicode support with options to work with
   pure Unicode, plain strings or mixed setups - even for
   databases that don't support Unicode

 * Automatic and transparent text encoding and decoding

 * More flexible date/time support including options to work
   with Python datetime objects, mxDateTime, strings or tuples

 * New decimal support to have the Zope DA return decimal
   column values using Python's decimal objects.

 * Fully eggified to simplify easy_install and buildout based
   installation


UPGRADING

If you have already bought mxODBC Zope DA 1.0.x licenses, we offer you
a time limited upgrade option:

 * If you have purchased the licenses between 2009-06-01 and 2009-12-31
   you can get a 20% discount on the full price of version 2.0.

 * If you have purchased the licenses after 2010-01-01
   you can get a 40% discount on the full price of version 2.0.

This offer is time limited until 2010-09-30.

Please write to sa...@egenix.com for details on how to get the
needed discount coupons.


MORE INFORMATION

For more information on the mxODBC Zope Database Adapter, licensing
and download instructions, please visit our web-site:

http://www.egenix.com/products/zope/mxODBCZopeDA/

You can buy mxODBC Zope DA licenses online from the eGenix.com shop at:

http://shop.egenix.com/



Thank you,
-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Mar 24 2010)
>>> Python/Zope Consulting and Support ...http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/


::: Try our new mxODBC.Connect Python Database Interface for free ! 


   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
   Registered at Amtsgericht Duesseldorf: HRB 46611
   http://www.egenix.com/company/contact/
___
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] Graceful Zope 2 restart (ZServer)

2010-02-03 Thread Baiju M
Hi,
Any pointers to restart Zope 2 (ZServer) gracefully ?

Does "Lifetime.shutdown(1)" will do that ?

Regards,
Baiju M
___
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] Cann't we use 'get' as object name in Zope 2.12 ?

2010-01-27 Thread Baiju M
Hi,
Any idea about this ?

>>> app.manage_addFolder('get')
Traceback (most recent call last):
  File "", line 1, in 
  File "/opt/baiju/zesite/eggs/Zope2-2.12.1-py2.6-linux-i686.egg/OFS/Folder.py",
line 51, in manage_addFolder
self._setObject(id, ob)
  File 
"/opt/baiju/zesite/eggs/Zope2-2.12.1-py2.6-linux-i686.egg/OFS/ObjectManager.py",
line 332, in _setObject
v = self._checkId(id)
  File 
"/opt/baiju/zesite/eggs/Zope2-2.12.1-py2.6-linux-i686.egg/OFS/ObjectManager.py",
line 116, in checkValidId
'The id "%s" is invalid - it is already in use.' % id)
zExceptions.BadRequest: The id "get" is invalid - it is already in use.

Regards,
Baiju M
___
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] exUserFolder and Zope 2.12

2010-01-02 Thread Baiju M
On Sat, Jan 2, 2010 at 11:12 AM, William Heymann  wrote:
> On Thursday 17 December 2009, Andrew Milton wrote:
>> +---[ Baiju M ]--
>>
>> | Hi,
>> |     In exUserFolder there are few exceptions raised like this:
>> |
>> | raise 'LoginRequired', self.docLogin(self, request)
>> |
>> | This will not working in Zope 2.12 (Python 2.6)
>> |
>> | Any idea, how to change it ?
>>
>> Replace the raise with;
>>
>> request.RESPONSE.setStatus(401)
>> request.RESPONSE.setHeader('Content-Type','text/html')
>> request.RESPONSE.write(self.docLogin(self,request))
>>
>
> I just tried that and it works in Firefox, Chrome and Opera but it is failing
> in IE and Konqueror. I tried a few versions of each of these browsers and
> the results are consistent. I don't see why it is failing though.
>
> I tried exactly what is up there along with also trying self.docLoginRedirect
> instead of docLogin. I used wireshark to watch the connection and I don't see
> anything wrong with it.

FYI, the solution suggested by Andrew worked for us in IE & FF.

Regards,
Baiju M
___
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] Fork another process from Zope

2009-12-22 Thread Baiju M
Hi,
 Is it possible to fork another process within Zope ? Any suggestion ?

Regards,
Baiju M
___
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] exUserFolder and Zope 2.12

2009-12-17 Thread Baiju M
On Thu, Dec 17, 2009 at 10:18 PM, Andrew Milton  wrote:
> +---[ Baiju M ]--
> | Hi,
> |     In exUserFolder there are few exceptions raised like this:
> |
> | raise 'LoginRequired', self.docLogin(self, request)
> |
> | This will not working in Zope 2.12 (Python 2.6)
> |
> | Any idea, how to change it ?
>
> Replace the raise with;
>
> request.RESPONSE.setStatus(401)
> request.RESPONSE.setHeader('Content-Type','text/html')
> request.RESPONSE.write(self.docLogin(self,request))

Thank you very much, this works !

Regards,
Baiju M
___
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] exUserFolder and Zope 2.12

2009-12-17 Thread Baiju M
Hi,
In exUserFolder there are few exceptions raised like this:

raise 'LoginRequired', self.docLogin(self, request)

This will not working in Zope 2.12 (Python 2.6)

Any idea, how to change it ?

Regards,
Baiju M
___
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] [Zope-Annce] Zope 2.12.0 released

2009-10-01 Thread Baiju M
Hi Andreas,

On Thu, Oct 1, 2009 at 8:45 AM, Andreas Jung  wrote:
> On behalf of the Zope 2 developers community I am pleased to announce
> the official release of Zope 2.12.0.

Thanks for making the great release and thanks to all contributors.

Regards,
Baiju M
___
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] zc.recipe.egg

2009-07-16 Thread Baiju M
On Fri, Jul 17, 2009 at 2:41 AM, Jonas wrote:
> On Thursday 16 July 2009 11:04:13 Baiju M wrote:
>> On Fri, Jul 17, 2009 at 12:58 AM, Jonas wrote:
>> > Hallo,
>> >
>> > Can somebody tell me what is the purpose of zc.recipe.egg. It just puts
>> > eggs in eggs directory from servers or it does a bit more???
>>
>> May be you are looking for this:
>> http://pypi.python.org/pypi/zc.recipe.egg
>>
>
> Yes, but there is some general information that this recipe istalls eggs, 
> where
> how, what kind of installation I wasn`t able to find in this documentation. 
> Can
> you explain about this recipe in short. Thanks :)

Please spend some time with Buildout documentation:
http://www.buildout.org/
http://pypi.python.org/pypi/zc.buildout

Regards,
Baiju M
___
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] zc.recipe.egg

2009-07-16 Thread Baiju M
On Fri, Jul 17, 2009 at 12:58 AM, Jonas wrote:
> Hallo,
>
> Can somebody tell me what is the purpose of zc.recipe.egg. It just puts eggs 
> in
> eggs directory from servers or it does a bit more???

May be you are looking for this:
http://pypi.python.org/pypi/zc.recipe.egg

--
Baiju M
___
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] Database Adapter For Windows DB

2009-04-15 Thread Baiju M
On Tue, Apr 14, 2009 at 1:22 AM, Andreas Jung  wrote:
>
> On 13.04.2009 23:33 Uhr, Bobby wrote:
>> Hi,
>>

>> I'm running Zope on a Linux box and need to connect to a Window's SQL
>> Server machine. Which Zope's DB Adapter should I use? Thanks.
>
> mxODBC

Here is a free (as in freedom) software created by Andreas Jung:

  http://pypi.python.org/pypi/z3c.sqlalchemy

You will be required to install:

1. "SQLAlchemy" (Object Relational Mapper)
http://www.sqlalchemy.org

More details about using M$ SQL Server with SQLAlchemy:
  http://www.sqlalchemy.org/docs/05/reference/dialects/mssql.html

2. "pyodbc" (Python DB API 2.0 compatible module)
http://pyodbc.sourceforge.net/

3. "FreeTDS" (ODBC Driver for M$ SQL Server)
http://www.freetds.org/

4. "unixODBC" (ODBC Manager)
http://www.unixodbc.org/

Well, it's all very easy to setup.  More detailed steps:

1. Install Python

2. Install unixODBC

   While configuring unixODBC use "--disable-gui" option::

 $ ./configure --prefix=/path/to/usr --disable-gui

3. Install FreeTDS

 While installing FreeTDS use these options::

   $ ./configure --prefix=/path/to/usr --with-tdsver=8.0
--with-unixodbc=/path/to/usr/

4. Configure "odbc.ini"

   In the "/path/to/usr/etc/odbc.ini" file, add something like
   this::

 [db_connections]
 first_db = MS SQL Server

 [first_db]
 Driver = FreeTDS
 Description = My First Database
 Trace = No
 Server = 192.168.1.18
 Port = 1433
 Database = test_database

5. Configure "odbcinst.ini"

 [FreeTDS]
 Description = v0.68 with protocol v8.0
 Driver = /path/to/usr/lib/libtdsodbc.so
 UsageCount = 1

5. Set environment variables

 ODBCINI="/path/to/usr/etc/odbc.ini"
 ODBCINSTINI="/path/to/usr/etc/odbcinst.ini"
 LD_LIBRARY_PATH="/path/to/usr/lib"
 export ODBCINI ODBCINSTINI LD_LIBRARY_PATH

   To test your connection:

 /path/to/usr/bin/isql first_db username password

6. Isstall "pyodbc"

   (Refer: http://www.easysoft.com/developer/languages/python/pyodbc.html)

   Here is some relevant text:

   To build pyodbc against unixODBC, you need to tell the compiler
   and linker where to find the unixODBC include files and
   libraries. To do this, open setup.py in a text editor and find
   these lines:

 extra_compile_args = None
 extra_link_args= None

   Edit the second line so that it looks likes this:

 extra_compile_args = None
 extra_link_args= ['-L/path/to/usr/lib']

   Find this line:

 extra_compile_args = ['-Wno-write-strings']

   Edit the line so that it looks like this:

 extra_compile_args = ['-Wno-write-strings', '-I/path/to/usr/include']

7. Install SQLAlchemy
8. Install z3c.sqlalchemy


If you succeed with this, can you create a tutorial about how to do
it ? :)

Regards,
Baiju M
___
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] ANN: eGenix mxODBC Connect 1.0.1 - Python Database Interface

2009-03-19 Thread eGenix Team: M.-A. Lemburg


ANNOUNCING
  eGenix.com mxODBC Connect

  Python Database Interface

Version 1.0.1


   Our new client-server product for connecting Python applications
  to relational databases - from all major platforms


This announcement is also available on our web-site for online reading:
http://www.egenix.com/company/news/eGenix-mxODBC-Connect-1.0.1-GA.html



INTRODUCTION

The mxODBC Connect Database Interface for Python allows users to
easily connect Python applications to all major databases on the
market today in a highly portable and convenient way.

Unlike our mxODBC Python extension, mxODBC Connect is designed
as client-server application, so you no longer need to find production
quality ODBC drivers for all the platforms you target with your Python
application.

Instead you use an easy to install Python client library which
connects directly to the mxODBC Connect database server over the
network.

This makes mxODBC Connect the ideal basis for writing cross-platform
database programs and utilities in Python, especially if you run
applications that need to communicate with databases such as MS SQL
Server and MS Access, Oracle Database, IBM DB2 and Informix, Sybase
ASE and Sybase Anywhere, MySQL, PostgreSQL, SAP MaxDB and many more,
that run on Windows or Linux machines.

By removing the need to install and configure ODBC drivers on the
client side, mxODBC Connect greatly simplifies setup and
configuration of database driven client applications, while at
the same time making the network communication between client and
database server more efficient and more secure.

For more information, please see the product page:

http://www.egenix.com/products/python/mxODBCConnect/



NEWS

mxODBC Connect 1.0.1 is a patch-level release of our new mxODBC Connect
product.

* More Robust

We have made the client and server more robust in case of communication
failures. Even if the client applications fail to shutdown the server
connection before exiting, the server will free up resources used by the
client on the server side and rollback transactions as necessary.

* More Platform Support

With the 1.0.1 release we are also providing much better platform
support for the mxODBC Connect Client: we have fixed a problem in 1.0.0
that prevented the installation of the pre-built clients on non-Linux
systems.

The mxODBC Connect Client can now be installed on most platforms
supported by Python, since it is written in a platform independent,
portable way.

The pre-built archives also make it possible to integrate the clients
into build system such as buildout (used in Zope and Plone) or other
distutils-based deployment systems.

* Ideal for Building Bridges

As a result, connecting from e.g. Mac OS X to an SQL Server database
has never been easier. You can even keep the data sources you already
have configured on your Windows machine and connect to them as if your
application were running on the database server itself.



UPGRADING

You are encouraged to upgrade to this latest mxODBC Connect release.
When upgrading, please always upgrade both the server and the client
installations to the same version - even for patch level releases.

Customers who have purchased mxODBC Connect 1.0 licenses can download
and upgrade their existing installations without having to purchase
new licenses or upgrades. The licenses will continue to work with
version 1.0.1.

Users of our stand-alone mxODBC product will have to purchase new
licenses from our online shop in order to use mxODBC Connect.

You can request 30-day evaluation licenses by visiting our web-site
or writing to sa...@egenix.com, stating your name (or the name of the
company) and the number of eval licenses that you need.

http://www.egenix.com/products/python/mxODBCConnect/#Evaluation



DOWNLOADS

The download archives as well as instructions for installation and
configuration of the product can be found on the product page:

http://www.egenix.com/products/python/mxODBCConnect/

Evaluation licenses for the server part are available free of
charge:

http://www.egenix.com/products/python/mxODBCConnect/#Evaluation

The client part of mxODBC Connect is always free of charge.

___

SUPPORT

Commercial support for this product is available from eGenix.com.

Please see

http://www.egenix.com/services/support/

for details about our support offerings.

Enjoy,
-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Mar 19 2009)
>>> Python/Z

Re: [Zope] which platform independent database?

2008-09-24 Thread M.-A. Lemburg
On 2008-09-24 08:02, Jaroslav Lukesh wrote:
> Hi Andreas & all,
> 
> I know, I does not use Zope and DB first day, but, are somewhere list of 
> pros/cons for that databases and zope/python DA?
> 
> For example, my cons for ODBC at Win32 (NT, 2k, XP) - it is not ideal in 
> case of huge simultaneous access, it sometimes does not make write query 
> (generally, not only from Zope, but from any app). We have 2 apps - one for 
> production on Zope going thru sybase to MSSQL, we run multiple access many 
> years without any problems, second on ASP with nice ;) interface for 
> managers. When I was run my Zope at win32 over ODBC, here was problems in 
> production with missing data at DB, so I was switch to Linux. Now we have 
> same problems with ASP part - I need to repair inconsistency coming from 
> manager interface up to few times per month. My zope servers on linux runs 
> as blackbox - they are serving without problems, no intervetion needed if no 
> HW problems. So I think, that you know my reasons to non-odbc DB access. All 
> my words to our windoze IT staff in case of any production problems are 
> obligatory - "Golden zope!".

Which database adapter have you been using for the Zope database
connection ?

We've never had reports of missing data or anything the like from our
mxODBC Zope DA customers in all the years it has been in production
on Windows.

Perhaps you are facing database problems with the database that
originate in the way the database does row level locking ?

Or are you talking about ZODB conflict errors ?

> But now I want to make some kind of portable, near OS independent (win/lin) 
> compact zope solution. So I look for RDB with like "blackbox" functionality, 
> with nothing special to make backups of running system (like make backup of 
> Data.fs) and nothing to install when move - make backup copy of live system 
> and then run it on another machine. Installations are allowed only in case 
> of change OS platform.

I guess you're better off with storing your data in the ZODB if
you're looking for file copy based consistent backups.

I don't know of any RDBMS that would allow file copy based backups
from a running system while still maintaining consistency. At the very
least, the database system has to flush its buffers to the database
files, so you need special tools for the backup one way or another.

OTOH, nearly all database systems provide live backup tools
which create consistent backups of a running system.

> Many thanks, J. Lukesh
> 
> - Original Message - 
> From: "Andreas Jung" <[EMAIL PROTECTED]>
> 
> --On 23. September 2008 16:05:03 +0200 Jaroslav Lukesh <[EMAIL PROTECTED]>
> wrote:
> 
>> Hi all,
>>
>> Does somebody know some free database and free database adapter for Zope,
>> which exists for Linux and for windows too, please? Do you know some
>> pros/cons and some wiev from praxis for that?
>>
>>
> 
> Zope supports all standard databases like Postgres, MySQL, Oracle and M$
> SQL server. On Windows it might be necessary to use the commercial mxODBC
> product (cheap enough).
> 
> -aj 
> 
> ___
> 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 )

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Sep 24 2008)
>>> Python/Zope Consulting and Support ...http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/


 Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! 


   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
   Registered at Amtsgericht Duesseldorf: HRB 46611
___
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] Script (Python) insecure ?

2008-08-16 Thread M.-A. Lemburg
On 2008-08-16 13:39, Andreas Jung wrote:
> 
> 
> --On 16. August 2008 13:11:13 +0200 "M.-A. Lemburg" <[EMAIL PROTECTED]> wrote:
> 
> 
>>
>> In my experience, attempts to create a sandbox that protects
>> sufficiently against unwanted resource usage are either too
>> restrictive and slow to make them useful or have problems
>> preventing DOS attacks.
> 
> I think you can't solve the issue with the standard technology we have 
> in CPython. I remember that Python once had a restricted execution 
> environment. Wasn't it buggy as hell? 

It used to be fairly safe at one point (I think around Python 1.4),
but maintenance was then dropped and so it was deprecated later
on. The main module was called Bastion.py.

> RestrictedPython of Zope surely similar 
> problems. As with all such restricted execution environment (not only in 
> Zope): they are attackable.

Right.

While some of them are fairly good at restricting
access to e.g. the file system or object system, they usually
lack protection against unlimited CPU and memory use.

A multi-threaded approach makes hard as well, since killing of
a thread often doesn't release the associated resources.

In a multi-process environment things are easier, since the OS
will take care of most of the monitoring and apply this at a
much lower level.

>> It's usually a lot better (and more efficient) to use trusted
>> code only.
> 
> Definitely. A common development pattern is the usage of CMF and 
> portal_skins where you work with PythonScripts on the filesystem.
> The scripts themselves still run under the control of RestrictedPython 
> however the whole development model can be regarded as being trusted.
 >
>> BTW: The reason why I had a look at these was that Chris Withers
>> mentioned at EuroPython that they are currently causing delays
>> in the Python 2.5 adoption (or at least are one of the reasons
>> for them).
>>
> 
> Is Chris' talk somewhere online?

It was a lightning talk. I'm not sure whether those are online
somewhere.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Aug 16 2008)
 >>> Python/Zope Consulting and Support ...http://www.egenix.com/
 >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
 >>> mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/


 Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! 


eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
___
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] Script (Python) insecure ?

2008-08-16 Thread M.-A. Lemburg
On 2008-08-16 08:00, Dieter Maurer wrote:
> M.-A. Lemburg wrote at 2008-8-12 13:41 +0200:
>> ...
>> While I have not yet been able to break out of the restricted
>> environment without help from installed products, there are a few
>> denial-of-service attacks which can easily be deployed on sites
>> allowing adding Python Scripts to a user folder:
>>
>> 1. Attack:
>>
>> Put this into a "Script (Python)" object and run it:
>>
>> return 'kaboom'.encode('test.testall')
> 
> Attacks like this are well known and it is very difficult
> to prevent them reliably:
> 
>Script (Python) (for good reasons) allows "while"
>and with it it is trivial to
> 
>  * create infinite loops
> 
>  * consume an unbound amount of memory
> 
> That we hear very few problem reports in this respect
> indicates that these "insecurities" have very
> little practical importance -- maybe, because few installations grant
> the creation of scripts to untrusted people.

... and that's good :-)

I think the only problem with PythonScripts is that they advertise
themselves as providing a secure way to run Python code (see the
help documentation) and that can potentially cause serious security
problems.

In my experience, attempts to create a sandbox that protects
sufficiently against unwanted resource usage are either too
restrictive and slow to make them useful or have problems
preventing DOS attacks.

It's usually a lot better (and more efficient) to use trusted
code only.

BTW: The reason why I had a look at these was that Chris Withers
mentioned at EuroPython that they are currently causing delays
in the Python 2.5 adoption (or at least are one of the reasons
for them).

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Aug 16 2008)
 >>> Python/Zope Consulting and Support ...http://www.egenix.com/
 >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
 >>> mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/


 Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! 


eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
___
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] Script (Python) insecure ?

2008-08-12 Thread M.-A. Lemburg
On 2008-08-12 20:49, Andreas Jung wrote:
> --On 12. August 2008 17:14:15 + Maurits van Rees 
> <[EMAIL PROTECTED]> wrote:
> 
>> Andreas Jung, on 2008-08-12:
> After rough test: it seems to work for Zope trunk, 2.10 and 2.11
> but has a failure for Zope 2.8.

 I forgot to mention that the hotfix also seems to work for Zope 2.9.
 (third-party confirmations are highly appreciated).
>>>
>>> Update: the hotfix although works for Zope 2.8 (tested with
>>> a running Zope instance - however the testrunner does not seem
>>> to import Hotfix though the included tests under 2.8 aren't
>>> found/executed).
>>
>> In Zope 2.8, when I place the Hotfix in the Products dir of the
>> instance, the two tests pass when I run the tests like this:
>>
>>   bin/zopectl test --dir=Products/Hotfix_20080812/
>>
>> That's with: http://www.zope.org/advisories/Hotfix_20080812_0.1.tar.gz
>>
>> I tested on Zope 2.8, 2.9, 2.10, 2.11.  All with python 2.4.  Without
>> the hotfix "raise SystemExit" crashed Zope.  I could not confirm the
>> other problem; that just gave me a LookupError.  With the hotfix in
>> the Products dir of the instance, the crash did not occur and the
>> tests passed.

The .encode() example will only trigger if the Python test suite is
installed in your Python version. Some distros move this into a
separate package, so if this is not installed, that particular
example won't work.

> Thanks for further testing. I released V 0.2 of the hotfix containing
> your fixes. The hotfix also works with Zope 2.7...this should be enough.
> If there are no objections I would like to release the hotfix officially 
> at some time tomorrow.

Please add a warning to be extra careful when enabling edit/create/modify
access to PythonScripts in the ZMI.

Thanks,
-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Aug 13 2008)
 >>> Python/Zope Consulting and Support ...http://www.egenix.com/
 >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
 >>> mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/


 Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! 


eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
___
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] Script (Python) insecure ?

2008-08-12 Thread M.-A. Lemburg
On 2008-08-12 18:04, Tres Seaver wrote:
> Garito wrote:
>> The same question again and again
> 
>> As a Zope user I prefer to know as soon as possible if Zope has security
>> problems like those
> 
>> Perhaps the correct way will be to send the problem to the zope people and 2
>> weeks later then make it public
> 
>> I think 2 weeks is a very correct period to solve a problem if not, I want
>> to try to solve the problem for myself
> 
>> But I shout my mouth, sorry Andreas ;)
> 
>> 2008/8/12 Andreas Jung <[EMAIL PROTECTED]>
> 
>>> *sigh*
>>>
>>> I wished that both exploits were reported to the Zope bugtracker in order
>>> to work on solutions before making the exploits public.
> 
> Right:  we would just like time to investigate the problem so that we
> can announce the problem and the workaround / hotfix / new releases
> simultaneously.  Two weeks would be longer than I would expect that
> process to take.

Next time, I'll post the report to the tracker and mark it private.

I really didn't have any intention of making your work harder than
it already is - I must admit that I wouldn't have thought of the
issue being that important.

OTOH, I do think that the PythonScript product will need some
more security audit, esp. since the restricted environment
safety belt checks are no longer being maintained in the Python
interpreter code and will likely go away completely for
Python 3.x.

It may be better to remove the PythonScript product altogether and
instead use ExternalMethods.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Aug 12 2008)
>>> Python/Zope Consulting and Support ...http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/


 Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! 


eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
___
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] Script (Python) insecure ?

2008-08-12 Thread M.-A. Lemburg
Sorry about the posting. I should have known better not to use a public
mailing list for these sort of posts.

Apologies,
-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Aug 12 2008)
 >>> Python/Zope Consulting and Support ...http://www.egenix.com/
 >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
 >>> mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/


 Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! 


eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
___
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] Script (Python) insecure ?

2008-08-12 Thread M.-A. Lemburg
Hello,

after Chris Withers lightning talk at EPC 2008 I had a closer look
at the implementation of Python Scripts in Zope 2.11.

While I have not yet been able to break out of the restricted
environment without help from installed products, there are a few
denial-of-service attacks which can easily be deployed on sites
allowing adding Python Scripts to a user folder:

1. Attack:

Put this into a "Script (Python)" object and run it:

return 'kaboom'.encode('test.testall')

This results in a denial-of-service, since Zope will hang
running the Python test suite.

The reason for this is a problem in the way the encoding search
function works in Python 2.4. This was changed in 2.5 to no longer
allow searching for codecs outside the encodings package.


2. Attack:

Put this into a "Script (Python)" object and run it:

raise SystemExit

This shuts down Zope.

The Python Script environment should obviously catch such exceptions
and not let them propagate up the call stack.


I found the second attack rather surprising, as it doesn't require
deep knowledge about Python's interna.

Regards,
-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Aug 12 2008)
 >>> Python/Zope Consulting and Support ...http://www.egenix.com/
 >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
 >>> mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/


 Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! 


eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
___
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: Problems with buildout and zope.interface

2008-07-25 Thread Baiju M

Christian Scholz wrote:

 Daniel Nouri wrote:

>
> The solution to this one is quite simple: Use virtualenv with
> --no-site-packages and then use bin/python to run bootstrap.py

 Ok, thanks. How do I deploy such a thing? I guess virtualenv then has
 to run by the one setting up his development sandbox? What files
 can/need to be in subversion? (I never used virtualenv before, only
 buildout).

 So my main question is probably: Is there a way to automate the
 process of installing and running virtualenv similar to what
 bootstrap.py does for buildout so that people do not need to care
 about the virtualenv part?


Use a clean custom built Python.

Regards,
Baiju M


___
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] ANN: eGenix mx Base Distribution 3.1.0

2008-06-18 Thread eGenix Team: M.-A. Lemburg



ANNOUNCING

eGenix.com mx Base Distribution

Version 3.1.0

  Open Source Python extensions providing important and useful
  services for Python programmers.


This announcement is also available on our web-site for online reading:
http://www.egenix.com/company/news/eGenix-mx-Base-Distribution-3.1.0-GA.html



ABOUT

The eGenix.com mx Base Distribution for Python is a collection of
professional quality software tools which enhance Python's usability
in many important areas such as fast text searching, date/time
processing and high speed data types.

The tools have a proven record of being portable across many Unix and
Windows platforms. You can write applications which use the tools on
Windows and then run them on Unix platforms without change due to the
consistent platform independent interfaces.

Contents of the distribution:

 * mxDateTime - Date/Time Library for Python
 * mxTextTools - Fast Text Parsing and Processing Tools for Python
 * mxProxy - Object Access Control for Python
 * mxBeeBase - On-disk B+Tree Based Database Kit for Python
 * mxURL - Flexible URL Data-Type for Python
 * mxUID - Fast Universal Identifiers for Python
 * mxStack - Fast and Memory-Efficient Stack Type for Python
 * mxQueue - Fast and Memory-Efficient Queue Type for Python
 * mxTools - Fast Everyday Helpers for Python

All available packages have proven their stability and usefulness in
many mission critical applications and various commercial settings all
around the world.

* About Python:
Python is an object-oriented Open Source programming language which
runs on all modern platforms (http://www.python.org/). By integrating
ease-of-use, clarity in coding, enterprise application connectivity
and rapid application design, Python establishes an ideal programming
platform for todays IT challenges.

* About eGenix:
eGenix is a consulting and software product company focused on
providing professional quality services and products to Python
users and developers (http://www.egenix.com/).



NEWS

The 3.1.0 release of the eGenix mx Base Distribution has a number
of enhancements over the previous version 3.0.0. Apart from a few
minor bug fixes, it provides a few new features:

Some highlights:

* mxTools now has a new mx.Tools.dlopen() function which allow
  loading shared libraries explicitly and from a specific
  path. This allows working around problems with not being able to
  dynamically set LD_LIBRARY_PATH on Unix platforms.

* mxTools can be configured to expose a new API called
  mx.Tools.setproctitle() which allows setting the process title
  on Unix platforms.

* mxBeeBase comes with a new on-disk dictionary version called
  BeeFixedLengthStringDict, which allows using keys with embedded
  \0 characters.

* mxSetup, our Python distutils extension, can now build prebuilt
  archives that no longer require the "... build --skip ..."
  command to skip the build process.  The uninstall command now
  also works for prebuilt archives and the bdist_prebuilt command
  has been enhanced to be able to build pure Python distributions
  as well.

* mxSetup now also works together with setuptools to e.g. build
  and install the packages as eggs. Run setup.py with
  --use-setuptools to enable this support.

For a more detailed description of changes, please see the respective
package documentation on our web-site.

As always, we are providing pre-compiled versions of the package for
the most popular Python platforms. For all others, you can compile the
package from source using "python setup.py install".



DOWNLOADS

The download archives and instructions for installing the packages can
be found on the eGenix mx Base Distribution page:

http://www.egenix.com/products/python/mxBase/



LICENSE

The eGenix mx Base package is distributed under the eGenix.com Public
License 1.1.0 which is a CNRI Python License style Open Source
license.  You can use the package in both commercial and
non-commercial settings without fee or charge.

The package comes with full source code



SUPPORT

Commercial support for these packages is available from eGenix.com.
Please see

http://www.egenix.com/services/support/

for details about our support offerings.

Enjoy,
--
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Jun 18 2008)

Python/Zope Consulting and Support ...http://www.egenix.com/
mxODBC.Zope.Database.Adapter ...   

[Zope] Re: acl_users folder > 25000

2008-06-06 Thread Max M

Kees de Brabander skrev:

A client of mine wants a site that is only accessible for members. However,
there are more than 25000 members. Are there any reasons that would make it
unwise to populate an ordinary acl_users folder with such a number of user
accounts?



Have you tried to just generate 25K users in an empty site and see what 
happens? It should take 15 about minutes to set up and write the code.


Members are stored in a dict, and the ZODB. They should be plenty fast.

Last week I wrote a tool that imported 10K lines of data from a csv file 
as dicts. It took about 2 seconds to read them from disk and save them 
in the ZODB. That is comparable.


Perhaps you don't have a problem?



--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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: problem migrating ZClasses from Zope 2.6.1 to Zope 2.9.8

2008-03-26 Thread Max M

Allen Schmidt Sr. skrev:
No idea even where to start. I played with creating a 'boring' object a 
while back but I am pretty sure ours is a tad more complicated. All the 
parts of our site I work on are in SQL and was never involved in the 
ZClass News stuff. It just works...and continues to work...but is 
limiting us from upgrading.



This product only needs minor changes in the initialization code to be 
used as a generic product:


http://www.mxm.dk/products/public/minimalPloneTool/

A bit more info here. Even though it is a bit outdated, it is pretty sound:

http://www.zope.org/Members/maxm/HowTo/minimal_01



So, where to start. Once we get some guidance, we could probably do it 
ourselves.  Anyone willing to a$$$ist? We don't have a budget for it but 
could scrape something together to get started.


You understand how to motivate ;-)



--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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] Looks like a great tool for making web apis with minimal effort.

2008-02-13 Thread Max M

A web based tool for making any site into an api using xml, json etc.

See the screencast:
http://grid.orch8.net/extractions/grab

--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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/plone behind ISS

2008-02-07 Thread Max M

TrashMan skrev:

I can't. There is another service active with IIS .


Oh yes. Just put apache in front of that and proxy it. No one will know 
the difference.



--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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: urlparse equivalent

2007-12-15 Thread Max M

David Bear skrev:

On Fri, Dec 14, 2007 at 09:16:54PM +, [EMAIL PROTECTED] wrote:



I'm a little suprised that there isn't anything like urlparse
functionaly in zope. I would think parsing urls would be a fairly
common chore. Which leads me to think that I may be thinking
completely wrong about what I want to accomplish.



You practically newer use urlparse like functionality when scripting and 
skinning zope.


You sometimes do when developing special products, but then you got the 
entire python library to use.



--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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: Groupmember in ATWorkgroups

2007-11-20 Thread Max M

PaulGoe skrev:


My problem is that I'm not good in Python. But I'm willing to look for a
possibility to change the code if I'm sure that I'm working at the right
part. :-)


You are, but you need to change the portlet too, so that you don't link 
to the homefolder. Afair there si probably a few more place that needs a 
bit of changing for it to work.


The main reason I have not changed it, is because it would change break 
the installed based.


--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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: Groupmember in ATWorkgroups

2007-11-20 Thread Max M

PaulGoe skrev:

I'm using ATWorkgroups for Plone 2.5.3. It works fine but I've the problem
that a part of the members of the workgroup will not be listed inside the
portlet of the workgroup members. I think that the reason of this behavour
is that a member must have a member folder for being listed. But a great
number of members of my plone site are without a member folder. How can I
change the behaviour that all members of a workgoup will be listed?


You cannot. Not without some recoding of the Products.

--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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] ANN: eGenix mxODBC and mxODBC Zope DA on AIX 5.3 (and later)

2007-11-19 Thread eGenix Team: M.-A. Lemburg


ANNOUNCING

   eGenix.com mxODBC Database Interface

  eGenix.com mxODBC Zope Database Adapter

   for AIX 5.3 and later


This announcement is also available on our web-site for online reading:
http://www.egenix.com/company/news/eGenix-mxODBC-on-AIX53-POWER5-GA.html



eGenix mxODBC Distribution

The eGenix mxODBC Distribution is a Python database interface add-on
distribution for our eGenix mx Base Distribution. It comes with mxODBC,
our universal ODBC database interface for Python.

Customers who have purchased licenses for other platforms and wish to
move their installation to AIX 5.3 (or later), can do so without having
to buy a new license. The licenses will continue to work on the AIX
platform.

Users of mxODBC 2.0 will have to purchase new licenses from our online
shop in order to upgrade to mxODBC 3.0.

You can request 30-day evaluation licenses on the product page.

Downloads
-

Please visit the eGenix mxODBC Distribution page for downloads,
instructions on installation and documentation of the packages.

http://www.egenix.com/products/python/mxODBC/

Note that in order to use the eGenix mxODBC Distribution you need to
install the eGenix mx Base Distribution first.



eGenix mxODBC Zope DA


eGenix mxODBC Zope DA is our database interface for Zope and Plone. It
is based on the mxODBC interface.

Customers who have purchased licenses for other platforms and wish to
move their installation to AIX 5.3 (or later), can do so without having
to buy a new license. The licenses will continue to work on the AIX
platform.

You can request 30-day evaluation licenses on the product page.

Downloads
-

Please visit the eGenix mxODBC Zope DA product page for downloads,
instructions on installation and documentation of the packages.

http://www.egenix.com/products/zope/mxODBCZopeDA/



More Information

For more information on our products, licensing and download
instructions, please write to [EMAIL PROTECTED]

Enjoy,
-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Nov 19 2007)
>>> Python/Zope Consulting and Support ...http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/


 Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! 


   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
   Registered at Amtsgericht Duesseldorf: HRB 46611


___
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: How to use Zope2 products in Zope3 ?

2007-10-10 Thread Max M

Andreas Jung skrev:



--On 10. Oktober 2007 15:05:31 +1000 Andrew Milton 
<[EMAIL PROTECTED]> wrote:



+---[ Andreas Jung ]--
|
|  Look at Philipp von Weitershausens Zope 3 Book or the Zope 3 Cockbock
|  by Stefan Richter.

I think you mean cookbook. d8)


ups :-)



I believe the cockbook is by Steven Rooster. A synonym for Charles Dickens.


--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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] Static Zope 3 APIDOC available!

2007-09-28 Thread Baiju M

Stephan Richter wrote:

 Hi everyone,

 I am happy to announce that the second Foliage sprint task is
 completed. Julian Bonilla, Graham Stratton and I worked on the
 outstanding issues on creating a functional version of the APIDOC,
 which comes with Zope.

 Thanks to Jens Vagelpohl, the static APIDOC is now available at:

 http://apidoc.zope.org

 I have also uploaded a TGZ archive to:

 http://download.zope.org/distribution/static-apidoc.tgz

 I hope that this development will spark renewed interest in the tool.
 In the future I plan to make more packages available in APIDOC and
 make it work with eggs. If you are interested, please let me know!


Great news !
Congratulations to you all !!

Regards,
Baiju M


___
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 is in trouble

2007-09-27 Thread Max M

Andreas Jung skrev:
Basically everything is true. The time of www.zope.org as a software 
repository has gone. In earlier times zope.org has been the only Zope 
related site. Nowadays with the growth and Zope and a lot of new 
projects, projects moved out into different sites. zope.org is an 
official project of the Zope Foundation and there were some talks on 
relaunching zope.org - however I don't know about details and the 
current state. The new site is likely to become a small site 
representing the Zope platform  in the first place.



I used to be pretty active on the original Zope site. Then we got what 
we asked for, and it was migrated to Plone.


Then it got too cumbersome to work with, and I put all the new stuff out 
on my own site.


These days I use a mix of plone.org and my own site.

zope.org is pretty irrelevant to what I do these days. I believe it is 
so for many zope people.


--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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: z3c.offlinepack

2007-09-27 Thread Baiju M

Philipp von Weitershausen wrote:

 Ross Patterson wrote:
> Also, I can't seem to get the ReStructuredText in the
> long_description on the pypi page to display as ReStructuredText
> instead of just displaying as test.  Anyone got any pointers?

 I assume you're generating long_description from a README.txt file or
 so. If you have docutils installed, you can render this file yourself
 using the rst2html script. It will show warnings and errors during
 the rendering. Fix those, and PyPI will happily render your reST as
 well.


You can do it like this :

 $ python setup.py --long_description > ld.txt

Now remove first line of ld.txt , it's a junk info, then :

 $ rst2html ld.txt > ld.html

Regards,
Baiju M

___
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] ANN: eGenix mxODBC and mxODBC Zope DA on 64-bit FreeBSD

2007-09-12 Thread eGenix Team: M.-A. Lemburg


ANNOUNCING

   eGenix.com mxODBC Database Interface

  eGenix.com mxODBC Zope Database Adapter

   for 64-bit FreeBSD


This announcement is also available on our web-site for online reading:
http://www.egenix.com/company/news/eGenix-mxODBC-on-FreeBSD-amd64-GA.html



eGenix mxODBC Distribution

The eGenix mxODBC Distribution is a Python database interface add-on
distribution for our eGenix mx Base Distribution. It comes with mxODBC,
our universal ODBC database interface for Python.

Customers who have purchased licenses for other platforms and wish to
move their installation to FreeBSD 64-bit, can do so without having to
buy a new license. The licenses will continue to work on the 64-bit
platform.

Users of mxODBC 2.0 will have to purchase new licenses from our online
shop in order to upgrade to mxODBC 3.0.

You can request 30-day evaluation licenses on the product page.

Downloads
-

Please visit the eGenix mxODBC Distribution page for downloads,
instructions on installation and documentation of the packages.

http://www.egenix.com/products/python/mxODBC/

Note that in order to use the eGenix mxODBC Distribution you need to
install the eGenix mx Base Distribution first.



eGenix mxODBC Zope DA


eGenix mxODBC Zope DA is our database interface for Zope and Plone. It
is based on the mxODBC interface.

Customers who have purchased licenses for other platforms and wish to
move their installation to FreeBSD 64-bit, can do so without having to
buy a new license. The licenses will continue to work on the 64-bit
platform.

You can request 30-day evaluation licenses on the product page.

Downloads
-

Please visit the eGenix mxODBC Zope DA product page for downloads,
instructions on installation and documentation of the packages.

http://www.egenix.com/products/zope/mxODBCZopeDA/



More Information

For more information on our products, licensing and download
instructions, please write to [EMAIL PROTECTED]

Enjoy,
-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Sep 12 2007)
>>> Python/Zope Consulting and Support ...http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/

2007-08-22: Released mxODBC 3.0.1  http://python.egenix.com/

 Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! 


   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
   Registered at Amtsgericht Duesseldorf: HRB 46611


___
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: genealogy product?

2007-09-07 Thread Max M

Mihamina (R12y) Rakotomandimby skrev:

Hi,
Would you know any genealogy product for Zope?
Is zope a tool for managing a big (20 members) of genealogy oriented 
group, which has over 150,000,000 entries in the genealogy tree?


It is now managed with about 20 servers and SQL databases but Zope might 
be a solution, isn't it?



It depends a bit on what kind of data is in the genealogy product.

If it is 150,000,000 of very similar data objects, it might be better 
stored in a relational database.


It would probably be relatively simple to create a small working 
product, to import some of the data and see how it pans out.


--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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] ANN: eGenix EuroPython 2007 Presentations & Videos

2007-07-26 Thread eGenix Team: M.-A. Lemburg



  eGenix EuroPython 2007 Presentations & Videos



eGenix is pleased to announce the immediate availability of PDF and
Flash video versions of the presentations we gave at this years
EuroPython 2007 conference in Vilnius.

This announcement is also available on our web-site for online reading:
http://www.egenix.com/company/news/EuroPython-2007-Presentations.html


INTRODUCTION

The EuroPython Conference is the one of the premier conferences for
Python & Zope users and developers. This year it was being held from
the 9th to 11th July in Vilnius, Lithuania.

eGenix was one of the founding members of the EuroPython conference
team and played a major role in organizing the first EuroPython
conference in the year 2002.

Since then we have attended every EuroPython conference to meet up
face-to-face with the people from the Python & Zope communities and
have given regular talks at these conferences.



TALKS AT EUROPYTHON 2007

We gave the following two talks at the conference. The presentations
are available for viewing and download from our Presentations and
Talks section:

http://www.egenix.com/library/presentations/

As special feature, we have added talk videos in addition to providing
the slide PDFs. You can view the talks online if you have the Adobe
Flash Player 8 or later installed.

* Parsing Languages with mxTextTools

mxTextTools comes with a high performance Tagging Engine for text and
Unicode
data which can be used to tokenize and parse languages. The resulting
abstract
syntax tree can then be hooked up to a generator to build a complete and
fast
compiler in pure Python. The talk gives a short introduction to the way the
mxTextTools Tagging Engine works and how it can be used to build compilers.
mxTextTools is an eGenix Open Source product available as part of the
eGenix mx
Base Distribution.

* An introduction to working with relational databases from Zope

Although Zope has been around for quite a while, it continues to find
new users
particularly amongst non-programmers who are looking for a way to work with
existing data which is usually in some relational database (PostgreSQL,
MySQL,
MS SQL, Oracle, DB2, etc.). One of the reasons for this is that Zope
provides an
extremely powerful, yet secure, through-the-web programming environment.

The presentation is directed towards new users and will provide a brief
introduction by example into the Zope way of doing things. At the same
time it
highlights how working within Zope is automatic training in good programming
methodology: data management is delegated to ZSQL methods, PythonScripts
act as
controllers and Zope Page Templates provide the views. Together they
encourage
modularity and reusability. The sample application and database are
available
for download.

Enjoy,
-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Jul 26 2007)
>>> Python/Zope Consulting and Support ...http://www.egenix.com/ 
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ 
>>> mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/


 Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! 


   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
   Registered at Amtsgericht Duesseldorf: HRB 46611


___
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] Interest in a one-day business conference for Python, Zope and Plone companies ?

2007-07-02 Thread eGenix Team: M.-A. Lemburg
Hello,

eGenix is looking into organizing a one day conference
specifically for companies doing business with Python, Zope and
Plone. The conference will likely be held in or close to
Düsseldorf, Germany, which is lively medium-sized city, with good
airport connections world-wide and specifically to all major
European  cities, so it's easy getting there and ideal for a one
day event.

The focus of the conference is on networking, meeting people,
exchanging experience and exploring ways of working together.

We are aiming at having a small conference program with just a few
talks. The main intent of the presentations should be to initiate
discussions among the attendees.

Since this will be a business-only event, we will likely get
professional help from a conference organizer and also try to
sign up with a hotel to do all the catering, conference room
maintenance, etc.

My questions to you:

* Would there be interest in such a conference event ?
* How many people from your company would likely attend ?
* Would a weekday or weekend conference date be more attractive ?
* Does the focus suit your needs ?

We will be giving a short presentation of what we have in mind
at EuroPython 2007 in Vilnius in the context of the Open Space
sessions:

   http://wiki.python.org/moin/EuroPython2007OpenSpace

If you're interested, please contact us.

Thanks,
-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Jul 02 2007)
>>> Python/Zope Consulting and Support ...http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/

2007-07-09: EuroPython 2007, Vilnius, Lithuania 6 days to go

 Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! 


   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
   Registered at Amtsgericht Duesseldorf: HRB 46611

___
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] eGenix Partner Network (Pre-Announcement)

2007-07-01 Thread eGenix Team: M.-A. Lemburg
Hello,

we are currently looking into setting up a partner network of
companies interested and able to sell and support our products with a
more regional focus than we can deliver.

The idea is to provide customers with a closer and more direct contact
for first level support. Network partners should be able to do projects
using or based on eGenix products and maintain a proper customer
relationship in their native language.

If you are interested in joining the network, please contact us
or, even better, arrange a meeting at EuroPython or PyCon UK
with us to discuss the details.

We will be making an official announcement of the eGenix Partner
Network sometime after EuroPython:

http://www.egenix.com/company/partners/

Thanks,
-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Jul 01 2007)
>>> Python/Zope Consulting and Support ...http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/

2007-07-09: EuroPython 2007, Vilnius, Lithuania 7 days to go

 Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! 


   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
   Registered at Amtsgericht Duesseldorf: HRB 46611
___
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 products that allows people to Add Commentsto publications

2007-06-29 Thread Max M

Shane Graber skrev:


A quick look at svn
(http://squishdot.svn.sourceforge.net/viewvc/squishdot/) shows no
activity for 11 months, which also lends itself to this inference.
I'm not meaning to sound harsh so I hope it doesn't come across this
way.


Ahh ... spoken as a true Plone developer. You are too used to minor 
versions breaking stuff.


The upshot of the dev team moving their time and efforts to zope 3 is 
that the zope 2 base stays very stable :-s


I have some stuff from years ago that runs unchanged on recent zope 2's

If it it aint broke ... :-)


--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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] ANN: eGenix mxODBC Distribution 3.0.0 (mxODBC Database Interface)

2007-05-10 Thread eGenix Team: M.-A. Lemburg


ANNOUNCING

   eGenix.com mxODBC Database Interface

  Version 3.0.0


   Our commercially supported Python extension providing
ODBC database connectivity to Python applications
 on Windows and Unix platforms


This announcement is also available on our web-site for online reading:
http://www.egenix.com/company/news/eGenix-mxODBC-Distribution-3.0-GA.html



ABOUT

The mxODBC Database Interface allows users to easily connect
Python applications to just about any database on the market
today - on both Windows and Unix platforms in a highly portable
and convenient way.  This makes mxODBC the ideal basis for writing
cross-platform database programs and utilities in Python.

mxODBC is included in the eGenix.com mxODBC Distribution
for Python, a commercial part of the eGenix.com mx Extension Series,
a collection of professional quality software tools which enhance
Python's usability in many important areas such as ODBC database
connectivity, fast text processing, date/time processing and
web site programming.

The package has proven its stability and usefulness in many mission
critical applications and various commercial settings all around
the world.

* About Python:
Python is an object-oriented Open Source programming language which
runs on all modern platforms (http://www.python.org/). By integrating
ease-of-use, clarity in coding, enterprise application connectivity
and rapid application design, Python establishes an ideal programming
platform for todays IT challenges.

* About eGenix:
eGenix is a consulting and software product company focused on
providing professional quality services and products to Python
users and developers (http://www.egenix.com/).



NEWS

mxODBC 3.0 has received a large number of enhancements and supports
more ODBC drivers than ever.

Some highlights:

* mxODBC has been ported to Python 2.5.

* We've worked a lot on the Unicode support and made it more
  robust, especially on Unix platforms where the ODBC Unicode
  support has stabilized over the last few years. You can now issue
  commands using Unicode and exchange Unicode data with the database
  in various configurable ways.

* We've also added a methods to give you more control of the
  connections and cursors as well as the .callproc() method for
  calling stored procedures that mxODBC 2.0 was missing.

* Multiple result sets via the .nextset() are also supported, so
  working with stored procedures should be a lot easier now.

* Another highlight is the added support for Python's datetime
  module types and the option to use strings for date/time
  processing (e.g. to be able to use timezones in timestamps if
  that's supported by the database).

* Python's decimal module is now supported as well and it's possible
  to configure mxODBC to return Decimal types for numeric values.

* mxODBC 3.0 received full 64-bit support, so that you can run
  mxODBC (and all other mx Extensions) on e.g. AMD64 platforms.

* We've switched from the old distutils wininst installer to the
  new MSI installer for the Windows Python 2.5 build. This gives
  you a lot more options for automatic installs, including
  unattended installs.
  See http://www.python.org/download/releases/2.5/msi/ for details.

Note that in order to avoid confusion, we've decided to rename the
eGenix.com mx Commercial Distribution to eGenix.com mxODBC Distribution
with this release. The commercial distribution has always only contained
the mxODBC package, so this was an obvious step to clarify things for
our users.

As always we are providing pre-compiled versions of the package for
Windows, Linux, Mac OS X, FreeBSD and Solaris as well as sources
which allow you to install the package on all other supported
platforms.



DOWNLOADS

The download archives and instructions for installing the package can
be found at:

http://www.egenix.com/products/python/mxODBC/

IMPORTANT:
In order to use the eGenix mx Commercial package you will first
need to install the eGenix mx Base package which can be downloaded
from here:

http://www.egenix.com/products/python/mxBase/



UPGRADING

Please note that mxODBC 2.0 does not support Python 2.5 on 64-bit
platforms due to the Py_ssize_t changes in the Python C API.

You are encouraged to upgrade to the new mxODBC 3.0 release, if you plan
to deploy on 64-bit platforms and use Python 2.5 as basis for your
applications.



LICENSES & COSTS

This release br

[Zope] ANN: eGenix mx Base Distribution 3.0.0 (mxDateTime, mxTextTools, etc.)

2007-05-10 Thread eGenix Team: M.-A. Lemburg


ANNOUNCING

eGenix.com mx Base Extension Package

Version 3.0.0

  Open Source Python extensions providing important and useful
  services for Python programmers.


This announcement is also available on our web-site for online reading:
http://www.egenix.com/company/news/eGenix-mx-Base-Distribution-3.0-GA.html



ABOUT

The eGenix.com mx Base Extensions for Python are a collection of
professional quality software tools which enhance Python's usability
in many important areas such as fast text searching, date/time
processing and high speed data types.

The tools have a proven record of being portable across many Unix and
Windows platforms. You can write applications which use the tools on
Windows and then run them on Unix platforms without change due to the
consistent platform independent interfaces.

All available packages have proven their stability and usefulness in
many mission critical applications and various commercial settings all
around the world.

* About Python:
Python is an object-oriented Open Source programming language which
runs on all modern platforms (http://www.python.org/). By integrating
ease-of-use, clarity in coding, enterprise application connectivity
and rapid application design, Python establishes an ideal programming
platform for todays IT challenges.

* About eGenix:
eGenix is a consulting and software product company focused on
providing professional quality services and products to Python
users and developers (http://www.egenix.com/).



NEWS

The 3.0 release of the eGenix mx Base Distributions comes with a huge
number of enhancements, bug fixes and additions.

Some highlights:

* All mx Extensions have been ported to Python 2.5.

* mxDateTime has support for working with Python's datetime module
  types, so you can use and combine both if necessary. The parser
  was enhanced to support even more formats and make it more
  reliable than ever before.

* mxTextTools now fully supports Unicode, so you can parse Unicode
  data just as fast as you can 8-bit string data. The package also
  includes a tag table compiler and new jump target support to
  simplify working with tag tables.

* mxURL and mxUID were previously released as part of our
  mx Experimental distribution. They have now been integrated into
  the base distribution, providing easy-to-use data types for
  common tasks in web programming.

* We've switched from the old distutils wininst installer to the
  new MSI installer for the Windows Python 2.5 build. This gives
  you a lot more options for automatic installs, including
  unattended installs.
  See http://www.python.org/download/releases/2.5/msi/ for details.

For a more detailed description of changes, please see the respective
package documentation on our web-site.

As always we are providing pre-compiled versions of the package for
Windows, Linux, Mac OS X, FreeBSD and Solaris as well as sources
which allow you to install the package on all other supported
platforms.



DOWNLOADS

The download archives and instructions for installing the packages can
be found on the eGenix mx Base Distribution page:

http://www.egenix.com/products/python/mxBase/



UPGRADING

Please note that the 2.0 series of the eGenix mx Base Distribution does
not support Python 2.5 on 64-bit platforms due to the Py_ssize_t
changes in the Python C API.

You are encouraged to upgrade to the new 3.0 series, if you plan to
deploy on 64-bit platforms and use Python 2.5 as basis for your
applications.



LICENSES & COSTS

The eGenix mx Base package is distributed under the eGenix.com Public
License which is a CNRI Python License style Open Source license.
You can use the package in both commercial and non-commercial settings
without fee or charge.

The package comes with full source code



SUPPORT

Commercial support for these packages is available from eGenix.com.
Please see

http://www.egenix.com/services/support/

for details about our support offerings.

Enjoy,
-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, May 10 2007)
>>> Python/Zope Consulting and Support ...http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/


[Zope] Re: Urgent Help Required......

2007-01-15 Thread Max M

Reena Karthikeyan skrev:

*Dear All,*

* *
*I am a new user of Zope. I am sure, all of you all are masters at using
Zope. I am not sure if I am writing my query to the right place. However,
please forgive me if I am doing something wrong. *
**



Please read this document

http://www.catb.org/~esr/faqs/smart-questions.html#urgent


--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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: a question about aq_base

2006-11-29 Thread Max M

Dieter Maurer skrev:

Yuri wrote at 2006-11-28 14:23 +0100:

here: http://docs.neuroinf.de/programming-plone/ate we can read:

   obj = brain.getObject().aq_base

why .aq_base and not only brain.getObject()? :)


Usually, it is a bad idea to use "aq_base" in Zope applications

You should carefully examine the context of the code fragment above.
Maybe, the context is one of the rare situations where "aq_base"
is called for...


Why is it rare?

I often need to check if an object has a certain attribute. Getting 
aquisition into the mix is a bad idea there.::


name = getattr(obj, 'name')

Is a lot different than

name = getattr(obj.aq_base, 'name')

In the first example you don't know if the name attribute is an aquired 
object or an attribute on the actual object. Which can make for 
uncontrollable results.


--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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: newbie -- creating a Product

2006-11-06 Thread Max M

Andreas Jung skrev:

The future of Zope 2 and Zope 
3 are open - 


Yes so please stop arguing as if we are arguing anything but opinions.


read the corresponding posting on Zope 2+3 by Jim Fulton 
published after the last PyCon. There is no word of phasing out Zope 2.


I believe it will happen a lot faster than you think. New versions of 
Plone will use it exensively, so there will be a lot of new developers 
from that comunity. Which is pretty big. That will drive the shift forward.


I know plenty of Plone developers, and I don't recall that any of them 
yearn to stay in Z2 after having tried Z3. Quite the opposite.



Btw. I don't see any reason to use words like 'drivel' and 'bullshit'.

It is rude and counterproductive. And I don't recall that I have been 
rude on this list in general or to you specifically.


I am not trolling I just gave a new developer what I believe is good advice.


--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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: newbie -- creating a Product

2006-11-06 Thread Max M

Max M skrev:

Andreas Jung skrev:



--On 6. November 2006 20:01:55 +0100 Max M 
<[EMAIL PROTECTED]> wrote:


Well the problem is that Zope 2 was never easy for beginners either. And
by now it is starting to get phased out for Zope 3.


BS



A case of bear says that in the next two years (1. Jan. 2008) the vast 
majority of Zope development will take place in Z3 technologies.



A case of beer will do in lack of bears.

--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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: newbie -- creating a Product

2006-11-06 Thread Max M

Andreas Jung skrev:



--On 6. November 2006 20:01:55 +0100 Max M 
<[EMAIL PROTECTED]> wrote:


Well the problem is that Zope 2 was never easy for beginners either. And
by now it is starting to get phased out for Zope 3.


BS



A case of bear says that in the next two years (1. Jan. 2008) the vast 
majority of Zope development will take place in Z3 technologies.


--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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: newbie -- creating a Product

2006-11-06 Thread Max M

Jonathan skrev:

Well the problem is that Zope 2 was never easy for beginners either. 
And by now it is starting to get phased out for Zope 3.


This is the first I have heard about Zope 2 being phased out...


Well .. get used to it then ;-)

Z2 will keep on being maintained until it is replaced by Z3. The goal of 
the zope developers is not about keeping Z2 and Z3 running for as long 
as possible. Only for as long as necessary.


Z2 is still being maintained, and will be for a long time. But the 
development is all moving in the direction of Z3.


Read the changelog of the latest Z2 releases. They are practially only 
about bugfixes and Z3 integration. Core Zope 2 development has 
practically grinded to a halt. New developments are taking place in Zope 3.



How is that not an outphasing?

--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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: newbie -- creating a Product

2006-11-06 Thread Max M

Jonathan skrev:

P.S.  if you want a complete newbie NOT to use zope, throw them into the 
deep end with Zope 3 (compared to Zope 2 there is not a lot of 
documentation, examples, and expertise available to help newbies; not to 
mention the fact that Zope 3 is still rapidly evolving).


There is a *lot* more documentation of Z3 than there was of Z2 when I 
was a newbie in that...



--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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: newbie -- creating a Product

2006-11-06 Thread Max M

Jens Vagelpohl skrev:

Mind what I said (or tried to say). If you are a *new developer*, with 
a *new project*, you are far better of starting with Zope 3 than with 
Zope 2.


That's questionable. Answers like this only add to a certain FUD factor 
out there about Zope2 being thrown out shortly.


You don't have to throw out Zope 2 to start using Zope 3. Just ignore 
Zope 2 and get on with it.



If you need features that are in Zope 2 but not in Zope 3, you are 
better of using a framework like Plone.


Hell no. Trying to throw a complete newbie not just into developing with 
Zope, but developing with Plone on top of Zope is, IMHO, insane. Not 
only do you need to learn Zope, you also need to learn the various Plone 
programming paradigms.


That is why I recommended Zope 3 as the first choice. Zope 3 is clearly 
ready for production. In many areas it is allready far better than Zope 2.


I don't understand why it is better for a newbie to learn Zope 2 than 
Zope 3? Zope 2 has so many warts, and is a dead end.



That's just bad advice, unless someone truly 
wants those portal-like functionalities in Plone.


And if they don't, they should use Zope 3.


I did not say that Zope 2 was useless. I still spend most of my time 
working on Plone based projects.


This is a case of professional "blinders". You've been working with a 
specific combination for years so these things come easy to you. The 
problem is you don't seem to see that there is healthy life outside of 
Plone. Or outside of Zope 3, for that matter.



Well the problem is that Zope 2 was never easy for beginners either. And 
by now it is starting to get phased out for Zope 3.


This is not something I make up. It is the stated goal for all the Zope 
2 based projects I have heard about. They call it slowly migrating to 
Zope 3, but it really is the same goal!


This will take years. But it is happening. Eg. any new development in 
Plone will be in Zope 3. At least afaik.


--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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: newbie -- creating a Product

2006-11-06 Thread Max M

Jens Vagelpohl skrev:

If your are using Zope 2 and is a newbie, do yourself the favour of 
starting with Zope 3.


If you want to work in zope 2 you should use Plone as a base, and 
create  products with Archgen XML (AGX)


There are no advantages in using plain Zope 2 anymore.


I'm sorry, that's just complete BS.



No it isn't!

Mind what I said (or tried to say). If you are a *new developer*, with a 
*new project*, you are far better of starting with Zope 3 than with Zope 2.


If you need features that are in Zope 2 but not in Zope 3, you are 
better of using a framework like Plone.


I have done Zope for +6 years, and I would not dream of starting up a 
project from scratch in Zope 2 anymore.


I did not say that Zope 2 was useless. I still spend most of my time 
working on Plone based projects.


--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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: newbie -- creating a Product

2006-11-06 Thread Max M

Aidan skrev:
I'm a complete Zope novice. Forgive me if my question is inane. 


I need to be able to send an e-mail (following a form submit) with an attachment
(and I prefer not to use DTML). I can send e-mails withOUT attachments, but
according to this: http://mail.zope.org/pipermail/zope/2005-May/159291.html



If your are using Zope 2 and is a newbie, do yourself the favour of 
starting with Zope 3.


If you want to work in zope 2 you should use Plone as a base, and create 
 products with Archgen XML (AGX)


There are no advantages in using plain Zope 2 anymore.


--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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] ANN: eGenix mxODBC Zope Database Adapter 1.0.10 for Intel Mac OS X

2006-09-20 Thread eGenix Team: M.-A. Lemburg

ANNOUNCEMENT

  EGENIX.COM

 mxODBC Zope Database Adapter

Version 1.0.10

 Usable with Zope and the Plone CMS.

Available for Zope 2.3 through 2.10 on
Windows, Linux, Mac OS X, Solaris and FreeBSD


INTRODUCTION

The eGenix mxODBC Zope Database Adapter allows you to easily connect
your Zope or Plone installation to just about any database backend on
the market today, giving you the reliability of the commercially
supported eGenix product mxODBC and the flexibility of the ODBC
standard as middle-tier architecture.

The mxODBC Zope Database Adapter is highly portable, just like Zope
itself and provides a high performance interface to all your ODBC data
sources, using a single well-supported interface on Windows, Linux,
Mac OS X, Solaris and FreeBSD.

This makes it ideal for deployment in ZEO Clusters and Zope hosting
environments where stability and high performance are a top priority,
establishing an excellent basis and scalable solution for your CMS.


NEWS

Our mxODBC Zope DA product is now available and supported on
both Intel and PPC Mac OS X versions.


UPGRADING

If you have already bought mxODBC Zope DA 1.0.x licenses, you can use
these license for the 1.0.10 version as well. There is no need to buy
new licenses. The same is true for evaluation license users.


MORE INFORMATION

For more information on the mxODBC Zope Database Adapter, licensing
and download instructions, please visit our web-site:

http://zope.egenix.com/

You can buy mxODBC Zope DA licenses online from the eGenix.com shop at:

http://shop.egenix.com/


Enjoy,
-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Sep 20 2006)
>>> Python/Zope Consulting and Support ...http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/


::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! 


___
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 or python reading big or little Endian...

2006-08-28 Thread Max M

Allen Huang wrote:

can anyone help me with this? I have a file that is written in a combination of 
big and little Endian bit-coding, can does anyone know how I can translate 
using python or zope?



Check out Pythons struct module

--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

Phone:  +45 66 11 84 94
Mobile: +45 29 93 42 96

___
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 behind iis

2006-08-24 Thread Max M

Philip Kilner wrote:

Hi Chris,

Chris Withers wrote:

Personally, I'd just put Apache in front of both Zope and IIS...


Me too - simpler, better documented, safer.

(Having seen a server wiped out via an IIS security hole, I just don't
trust it on a public IP - long time ago, but once bitten, twice shy!)



Hmmm ... then try making a mistake in your apache httpd.conf and turn on 
proxy by mistake.


--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

Phone:  +45 66 11 84 94
Mobile: +45 29 93 42 96

___
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: Using property() function in Zope 2.8

2006-07-06 Thread Max M

Fred Drake wrote:

On 7/6/06, Rob Miller <[EMAIL PROTECTED]> wrote:

it's not an answer to your original question (i have nothing to add to
what fred already replied) but TeamSpace solves this by using a
ComputedAttribute instead of a property for the dynamic local roles.


Yeah, I forgot all about ComputedAttribute.  That's probably what you
want if your class is an ExtensionClass.



Yeah. I remember too now. I don't think I have used one of those since 
2000 in plain Zope.


Thanks.


--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

Phone:  +45 66 11 84 94
Mobile: +45 29 93 42 96

___
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] Using property() function in Zope 2.8

2006-07-06 Thread Max M
I needed to dynamically generate local roles for an Archetypes based 
content object today.


Different layers in my Plone stack breaks all rules and reads the 
__ac_local_roles__ variable directly, instead of calling get_local_roles()


So to maximize the compatibility between Zopes zmi and Plones local 
roles management I wanted to make '__ac_local_roles__' a property with 
setters and getters.


My AT class was based via a few hops on:

'from ExtensionClass import Base'.

And as far as I understand from the release notes Zope 2.8.x should use 
extension classes based on new style classes. So the property function 
should work.



This code below works in plain Python. But when I add them to my zope 
class, and run the tester() method I get an "Attributer Error: 
__ac_local_roles__"


Any ideas/comments?



# -*- coding: latin-1 -*-

class PropTest:

def get__ac_local_roles__(self):
return self.__mxm__ac_local_roles__

def set__ac_local_roles__(self, value):
self.__mxm__ac_local_roles__ = value

def del__ac_local_roles__(self):
del self.__mxm__ac_local_roles__

__ac_local_roles__ = property(get__ac_local_roles__,
  set__ac_local_roles__,
  del__ac_local_roles__,
  "Local roles on object")

def tester(self):
return self.__ac_local_roles__


if __name__ == '__main__':

p = PropTest()
p.__ac_local_roles__ = 'working'
print p.tester()

--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

Phone:  +45 66 11 84 94
Mobile: +45 29 93 42 96

___
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: Improved Zope Org Proposal

2006-06-27 Thread Max M

Chris Withers wrote:

David H wrote:
This is sounding more bizzare with each day and it doesnt feel good.  
Zope cant maintain a friggin web site?  Isnt that rich.


Hey David,

Cool, thanks so much for volunteering to provide all the resources, 
coders and support staff to look after a 10,000 user site with all the 
problems that entails.


Oh? What's that? You weren't volunteering?



Personally I have not visited zope.org for a few years for anything 
other than releases. And I am a long time pro developer.


It seems pretty obvious these days that having a one-shop zope.org site 
is too ambitious. Perhaps even wrong guided.



I wouldn't even know what should be on it. Zope 2 development mostly 
means Plone these days. Plone has a great site already, so no reason to 
do to much about that.



Pure Zope 3 is in even less use than pure Zope 2.

The exciting stuff is going on in Five and 2-3 integration. But why the 
heck make a site about that?


You could say that zope has been beaten by its own success.


The only sensible approach I can see is to make a new zope.org with 
releases, installation guides etc. It should also showcases the great 
cms/applications that are build on top of it. With links to those sites.


On those individual sites there are lots of documentation, product 
releases programming tricks etc.



Eg. I develop in Plone, and practically all I knew about programming in 
pure Zope 2 is useless now that I am using UML/AT/AGX in Plone. It's 
like assembly language to a python programmer. I assume that it is the 
same for other frameworks.


Having a 'Products' section on zope.org probably doesn't even make sense 
anymore. It is simply to low level.



Drop all the old documentation and move it to old.zope.org. Just in 
cases there is a nugget somewhere.



--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

Phone:  +45 66 11 84 94
Mobile: +45 29 93 42 96

___
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: Need prof. tool for conversion html->pdf

2006-06-22 Thread Max M

Tomasz Bielecki wrote:

Greetings to all,

my company is searching for a tool capable of producing good quality pdf's from 
page templates or documents on the fly.
This tool should somehow integrate with Zope. It could be Zope/Plone product, 
python script or even shell script invoked by Zope. It can be commercial (and 
probably will be).
I've searched the net, but found nothing that would met this requirements:
* professional css conversion: pdf should look almost exactly like source 
document, all css properties should be handled
* it should omit silently html elements, that are not supported (e.g. flash 
objects, applets) without crash or error
* links should be active (clickable) in pdf
* conversion of html forms to pdf forms would be nice to see
* conversion from flash objects or java applets to static images (somehow) 
would be nice to see too
* even putting flash objects into pdf was considered (i'm suspecting latest pdf 
format handles build-in flash, since adobe bought macromedia some time ago)

Every help that i can get would be appreciated.



With all those requirements I believe that every help you can get will 
be expensive ;-)



Many of your wishes are huge tasks. A project like that could easily run 
into hundreds of hours.


Building a custom tool using reportlab is probably the most feasible 
approach.



But most likely you should forget about Zope Plone compatibility and 
just find a tool that can convert all html to pdf, and find one that can 
be automated. Then make sure that your Plone output can be converted via 
that tool.


This turned up many interesting tools:
http://www.google.dk/search?q=html+pdf+conversion



--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

Phone:  +45 66 11 84 94
Mobile: +45 29 93 42 96

___
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: Render DTML inslide ZPT slot

2006-06-16 Thread Max M

thomas desvenain wrote:

and how can we transfer the namespace of the current zpt doing :



as we do in dtml writing :





If it doesn't automatically you can most likely just write:





--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

Phone:  +45 66 11 84 94
Mobile: +45 29 93 42 96

___
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: Questions on ZODB BTrees versus bsddb BTrees

2006-05-04 Thread Max M

Terry Jones wrote:

"Chris" == Chris Withers <[EMAIL PROTECTED]> writes:


Chris> ZCatalog ships as a standard part of Zope, no need to download.
Chris> It's covered extensively in the zope book on Plope.org...

Chris> Not everything is as hard as some people manage to make it ;-)

OK, thanks. I hope you'll agree though that the three excerpts below from
http://www.zope.org/Documentation/How-To/ZCatalogTutorial do give the clear
impression that ZCatalog is available as a separate standalo



Hoy cow that doc is old. "Last modified on 2003/08/01."

That date was when the site was migrated from the previous version. So 
the real creation date is lost somewhere in space-time.


But ZCatalog has allways been part of Zope as long as I have developed 
in it. And that is since sometime in the nineties.



--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

Phone:  +45 66 11 84 94
Mobile: +45 29 93 42 96

___
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: How to convert characters that have special meaning in HTML to HTML character entities

2006-04-06 Thread Max M

Jonathan Bowlas wrote:

Hi All,

I have a string that contains a http://www.mywebaddress.com";>link tag that I would like rendered
as HTML when output but it only seems to render in the html page like this
<a href="http://www.mywebaddress.com">link</a>;

To replace the characters, I tried this in my TAL:






But it converted the '>' I replaced with a '>' back to a '>' upon
rendering the string in a html page.

Any ideas how I can achieve this?


tal:content="structure d_stand_replaced_chars"

--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

Phone:  +45 66 11 84 94
Mobile: +45 29 93 42 96

___
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 + Apache on Quad Debian machine

2006-03-16 Thread Max M

Chris Withers wrote:

Hugo Ramos wrote:

However, as an aside, how have you established that processor affinity 
is the problem here? I'd suggest looking at your disk and memory usage 
patterns. i/o wait or swap death could quite easily see your processors 
only hitting 30% even if the affinity is locked down exactly as you'd 
like...



With a 4 GB machine that is probably not a problem. You can usually run 
quite a few sites with that much memory.



--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

Phone:  +45 66 11 84 94
Mobile: +45 29 93 42 96

___
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 + Apache on Quad Debian machine

2006-03-16 Thread Max M

Hugo Ramos wrote:

"Has any1 tried this before? Can you point me to some documentation?
What's your experience? is it true that not doing this the 4 cpu's
will not be 100% used?"

I think these questions are very ZOPE RELATED since I asked them in a
Zope mailing list don't you think?



Eh ... it doesn't become zope related because you ask it in a Zope 
group. Do you also ask how to write books on a Microsoft Word list?




I'm asking about Zope user/administrator experience related to Zope
use on a quad machine!!!

Of course if some1 tells me how to do it using OS related stuff this
is STILL Zope related!


Assigning a process to a cpu is a general os problem, and not really 
related to zope. Zope is just another process.


eg: http://www.google.com/search?q=cpu+affinity

plone.org is running on a dual cpu box, with one zeo and a zeo client, 
so clearly it can be done.




Hey... but thank you Jens for spending all that time writing an email
that doesn't help any1 at all...!!!


Sarkasm against a long time, and helpfull, list user will not help you 
any at all.



--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

Phone:  +45 66 11 84 94
Mobile: +45 29 93 42 96

___
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 + Apache on Quad Debian machine

2006-03-15 Thread Max M

Hugo Ramos wrote:

Yellow,

I'm using Zope+Apache on a 4 xeon's/4GB ram machine running Debian.
I've noticed that the CPU's never go beyond 30% top occupation... but
on rush hours the site takes too long to load...

I've been reading about process affinity and how it could speed up
everything by making zope run on 1 CPU, Apache on another and so on...

Has any1 tried this before? Can you point me to some documentation?
What's your experience? is it true that not doing this the 4 cpu's
will not be 100% used?


You can set up zope with zeo and then assign 3 zeo clients on different 
processors that shares the zeo server.


That should get you a lot of the way.


--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

Phone:  +45 66 11 84 94
Mobile: +45 29 93 42 96

___
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: display results from external source in zpt

2006-03-15 Thread Max M

Dean Hale wrote:


Hi,

Apologies if this is easy to do, cannot find any help in the archives 
(but then again not sure what to search for)


We currently run a script on an external server which returns results 
depending on the userid of the user, which is added to the link below 
once the user logs into zope.


It works and displays what is needed, however i would like to display 
the results somehow within a page template rather than the user having 
to go elsewhere to see the results.


tal:attributes="href 
string:http://site.ac.uk/cgi-bin/tasks?uid=$uid&fmt=plain";>view results


Basically we would like to run above somehow but all results are 
returned within the same page.



This might be what the doctor ordered?

http://www.mxm.dk/products/public/mxmProxyTool/


--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

Phone:  +45 66 11 84 94
Mobile: +45 29 93 42 96

___
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: About Archetypes

2006-03-15 Thread Max M

Sergio Gomez wrote:

Does anybody know a good tutorial on how to write archetypes from scratch?



The best approach today is using eg "Poseidon for UML" Community 
Edition, and then ArchegenXML to generate skeletons for your AT content 
types.


It is a bit longwinded until you figure it out, but very nice and really 
fast once you get to know it.


http://plone.org/documentation/tutorial/archgenxml-getting-started

http://gentleware.com/ (Poseidon)

--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

Phone:  +45 66 11 84 94
Mobile: +45 29 93 42 96

___
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: Problems with .po files

2006-03-13 Thread Max M

Sergio Gomez wrote:

Hi, I am working in a Plone website, developing under windows, but
publishing under linux. My problem is that the .po files containing my
own translations work under windows, but they don't under linux, and I
do not know if it is something that I am not doing correctly.



It probably doesn't like windows line endings.

Try to use an editor that can convert to unix line endings.

Eg. Crimson Editor is free, and ok.


--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

Phone:  +45 66 11 84 94
Mobile: +45 29 93 42 96

___
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: Upgrading to Zope 2.9.1

2006-03-10 Thread Max M

Chris Withers wrote:

Dieter Maurer wrote:


It does now -- at least for "FSPythonScripts" when you are on a *nix
platform and your files contain DOS lineends.



Does this only affect (FS)PythonScripts or all disk based python code?



There has been a bug in Zope since ages, where multiline python in tal 
fails if it has Window line endings.


Eg. this will fail with windows line endings:



This does not have multiline Python in the tal expression and will not fail:



I have no idea if it is a manifestation of the same problem.


Since no one with the knowledge of the ZPT is willing to fix it, I did 
it for myself by setting up my svn rules to linux line endings ...



But it is clearly an annoying bug. Imagine if plain Python worked that 
way :-(



--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

Phone:  +45 66 11 84 94
Mobile: +45 29 93 42 96

___
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: Need Urgent Help

2006-03-08 Thread Max M

Andrew Milton wrote:

+---[ Andreas Jung ]--
| 
| But learn to post before posting again.

| Subjects like "need urgent help" + cross-postings are the first step
| for a consultant to throw such a posting into the trashcan.

Actually we rub our hands together and triple our rate d8)



LOL!


--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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] ZODB Could not import class 'myAdMan' from module '*OEpEfZxd1Zzml/FOi4fDrA=='

2006-02-21 Thread Irek M.
Haj,
myBannerProduct 1.0 won´t install properly on Zope
2.7.4/SuSE9.3.
After untar and Restart of Zope there is only an empty
myBannerProduct Folder in "Installed Products".

Additionally at de-install of the corrupt Product i
get this:
ZODB Could not import class 'myAdMan' from module
'*OEpEfZxd1Zzml/FOi4fDrA=='

TIA for any Hints and Suggestions

im






___ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
___
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] zope+zms+java

2006-02-14 Thread Irek M.
Haj I hope Someone can help me,
i have a Problem recognizing JAVA from
ZMS-Configuration.
SDK is installed correctly on this System, Java
Environment Variables
are set. Zope is Restarted. But the ZMS Konfiguration
dont List the
Java environment in its config.

My Config:
SuSE 9.3 x64
Zope 2.7.4 r5
ZMS 2.3.2b45
Python 2.4.14


thanks
iras






___ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
___
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: Packing data.fs programmatically

2006-01-31 Thread Max M

Chris Withers wrote:

Reinoud van Leeuwen wrote:



I do it though the webinterface with a wget from the crontab:

@daily cd /some_path/zeo_server/var && \
   cp Data.fs Data.fs.pre_pack_backup && \
   /usr/local/bin/wget \
  
'http://myzopeserver/Control_Panel/Database/manage_pack?days:float=0'\

   --http-user=special_user \
   --http-passwd='some_password' \
   --spider &&\cp Data.fs Data.fs.post_pack_backup



Oh, ouch ouch bad fragile pain failure suffering...

URL whacking is evil and must be punished...


What is the better way then? ZEO and ordinary Python scripts?


--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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: Product refreshing in Zope 2.9

2006-01-31 Thread Max M

Peter Bengtsson wrote:

On 1/31/06, Jens Vagelpohl <[EMAIL PROTECTED]> wrote:



And I don't understand how Zope product refresh doesn't have a higher
attention priority when it's so useful. As far as I know, it's the
only way to make changes to a zope2 product without having to restart
the server causing downtime and lost sessions.


Oh, but it has. I just haven't moved to 2.9 yet. Not having refresh 
would be extremely annoying.



--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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 vs Plone: performance issues!

2006-01-24 Thread Max M

Chris Withers wrote:


Me? I couldn't _possibly_ comment ;-)


Mr. Chris "FU" Withers, you might very will think so.


--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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: Can HTTP and WebDAV share port 80?

2005-12-08 Thread Max M

Michael Dexter wrote:


Hello,

It appears that Apache and IIS put both HTTP and WebDAV/HTTP traffic 
over the same port. Can Zope do the same? Why? Why not?


What I usually do is to create a RewriteRule in apache, that rewrites to 
the dav port.


RewriteRule ^/webdav(.*) 
http://localhost:1981/VirtualHostBase/http/www.example.com:80/plone_instance/VirtualHostRoot/_vh_webdav/$1 
[P,L]


So that the webdav port can be gotten to at:

http://www.example.com:80/webdav


--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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] Method cache (Memoize) for Zope

2005-10-09 Thread Max M

Has anybody written a Memoize-like decorator for Zope?

I imagine that it could be a nice feature to have a standard decorator 
for Zope that would cache results in a _v_ volatile variable.


I usually do it a bit like this::

def _cache_it(self, meth, *args, **kwargs):
cache_name = '_v_%s' % meth.__name__
if not hasattr(self, cache_name):
result = meth(*args, **kwargs)
setattr(self, cache_name, result)
return getattr(self, cache_name)


def _some_function(self):
# do expensive calculations and return result
return 42


def some_function(self, *args, **kwargs):
"Returns cached values"
return self._cache_it(self._some_function, *args, **kwargs)

But I guess that there must be someone who has allready written a more 
generic way to do it via generators?



--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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] cut&paste from one mounted storage to another

2005-09-30 Thread M. Krainer
Hi!

Is there a possibility to cut&paste from one mounted storage to another?
I have a filestorage Data.fs mounted as / and another filestorage
Archive.fs mounted at /site/Archive. When I try to cut&paste an
object from e.g. /site/foo/bar to /site/Archive/bar I get an
InvalidObjectReference Exception:

  File "/opt/Zope-2.8.1/lib/python/ZODB/Connection.py", line 503, in _commit
    self._store_objects(ObjectWriter(obj), transaction)
  File "/opt/Zope-2.8.1/lib/python/ZODB/Connection.py", line 525, in _store_objects
    p = writer.serialize(obj)  # This calls __getstate__ of obj
  File "/opt/Zope-2.8.1/lib/python/ZODB/serialize.py", line 330, in serialize
    return self._dump(meta, obj.__getstate__())
  File "/opt/Zope-2.8.1/lib/python/ZODB/serialize.py", line 339, in _dump
    self._p.dump(state)
  File "/opt/Zope-2.8.1/lib/python/ZODB/serialize.py", line 281, in persistent_id
    raise InvalidObjectReference(
 
 InvalidObjectReference: Attempt to store an object from a foreign database connection

Am I doing something wrong or is this simply not possibly resp. is
there a workaround to do a cut&paste between storage boundaries?

Thanks.

 -- mkrainer
___
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: Using the set object within page templates

2005-09-27 Thread Max M

Floyd May wrote:

How can I use a set object within a page template?

When I attempt to create a set (e.g. tal:define="myset
python:set(some_list)"), zope complains that the name 'set' is not
defined.


If you only need to read from some native python objects, you can make a 
simple wrapper. You can wrap a set() in this class and return it from 
python.


_marker = []

class Zello:

"""
Zello (Zellophane)
A minimal wrapper for viewing native python objects in pagetemplates.

If you try to view attributes on simple Python objects you get a 
Permission

error. This is pretty simple to fix in your own objects by setting:

__allow_access_to_unprotected_subobjects__ = 1

For some built in objects you cannot do this. This class just puts a
transparent wrapper around such objects::

wrapped = Zello(datetime(2005, 10, 12))

So you can write this zpt code:



If you wrap a Zope object with it, you basically remove all security
checkcs. So don't do that.
"""

__allow_access_to_unprotected_subobjects__ = 1

def __init__(self, obj):
self._obj = obj

def __getattr__(self, attr, default=_marker):
if default is _marker:
return getattr(self._obj, attr)
else:
return getattr(self._obj, attr, default)

def __getitem__(self, key):
    return self._obj[key]




--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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: JSON for Ajax applications

2005-09-23 Thread Max M

Jean-Marc Orliaguet wrote:

Max M wrote:



JSON (JavaScript Object Notation) is a lightweight data-interchange
format.


this is used at 100% and more in cpsskins for Zope3 (cf. z3lab.org). You
might also have a look at Jim Washington's 'jsonserver' for Zope3 and
its implementation for Zope2 http://zif.hill-street.net/jsonserver



I read the posts about jsonserver, but somehow it didn't register on my 
radar.


I read it as "Johnson-server" so i dismissed it, thinking it was some 
kind of "personal" project :-/


But it looks increasingly sexy ...


--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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] JSON for Ajax applications

2005-09-23 Thread Max M

I don't know how many has seen this, but it's pretty cool.

JSON (JavaScript Object Notation) is a lightweight data-interchange format.

http://www.crockford.com/JSON/index.html

It is used for Ajax applications to transfer data instead of xml. It 
uses repr() versions of standard python objects like dicts, lists, 
string, numbers etc. to transfer data.


It is really simple to generate for Python programmers, so it is very 
simple to use in Zope too.



--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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 iso-8859-1 to utf-8

2005-09-13 Thread Max M

Pascal Peregrina wrote:

Hi,
 
I have been running a Zope installation for 2 years, so there are now lots

of objects, properties, etc...
 
I would like to know what are the possible issues I may have to face if I

change the default encoding for iso-8859-1 to utf-8 in ZMI.


You must write a script that converts any property on any object in your 
site that is latin-1 to utf-8.


So first find all objects you use. See what types they are.

Find all text and string attributes on those opjects.

Write a function that converts from latin to utf and run that on every 
object.


The hard part will be finding all the attributes, but perhaps you can 
write a method that can help find those properties for you using 
introspection.



--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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: Can I use datetime and timedelta in zope?

2005-09-05 Thread Max M

jai alai wrote:

Kaixo;

I try to use datetime and timedelta in Zope and
returns a error

Error Type: ImportError
Error Value: import of "datetime" is unauthorized

I try use datetime and timedelta in an External Method
and returns an error to 

Error Type: ImportError
Error Value: No module named datetime

There's any way to import this module in Zope or I
must create a new product for it.



Use the DateTime module in Zope. If you need datetime and timedelta, you 
can convert between DateTime and datetime with (untested):



from DateTime import DateTime
from datetime import tzinfo

ZERO = timedelta(0)
HOUR = timedelta(hours=1)
STDOFFSET = timedelta(seconds = -_time.timezone)
if _time.daylight:
DSTOFFSET = timedelta(seconds = -_time.altzone)
else:
DSTOFFSET = STDOFFSET
DSTDIFF = DSTOFFSET - STDOFFSET

class LocalTimezone(tzinfo):

"""
Timezone of the machine where the code is running
"""

def utcoffset(self, dt):
if self._isdst(dt):
return DSTOFFSET
else:
return STDOFFSET

def dst(self, dt):
if self._isdst(dt):
return DSTDIFF
else:
return ZERO

def tzname(self, dt):
return _time.tzname[self._isdst(dt)]

def _isdst(self, dt):
tt = (dt.year, dt.month, dt.day,
  dt.hour, dt.minute, dt.second,
  dt.weekday(), 0, -1)
stamp = _time.mktime(tt)
tt = _time.localtime(stamp)
return tt.tm_isdst > 0


def dt2DT(dt):
"Converts Python datetime to Zope DateTime"
try:
# convert dt to local timezone
ltz = dt.astimezone(LocalTimezone())
return DateTime(*ltz.timetuple()[:6])
except:
return DateTime(dt.year, dt.month, dt.day, 0, 0, 0)


def DT2dt(DT):
"""
Converts Zope DateTime to Python datetime, Zope DateTime is allways utc
"""
return datetime.fromtimestamp(DT.timeTime(), LocalTimezone())



--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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: Adding a zope product

2005-09-02 Thread Max M

Peter Bengtsson wrote:

you registered the manage_addminimal function for creating the actual
object, but what about the ZMI form that lets call manage_addminimal?



It is not necessary in this case, as the function sets the id and adds 
the instance.



--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

___
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: Adding a zope product

2005-09-02 Thread Max M

Paul Hendrick wrote:

Hi all,
i've just started with zope, and i'm trying to write a filesystem
product, so i can have a project in svn and work on it in the
filesystem.
I've followed the guide at zope.org for creating a minimal product, but
can't get this to show up in the list of products.



If you are starting from scratch learning Zope, and you don't want to 
use one of the frameworks, it would be far better to start on Zope 3


It's better coded, easier to understand, more futureproof and probably 
better documented.


--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

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


  1   2   >