[Zope-Annce] Python/Zope Job Available

2006-01-20 Thread Bob Corriher
P-Wave Inc has an opening for a software engineer: with Python and Zope 
experience. The job will require relocation to the southeastern PA area.


Forward resumes/salary requirements to [EMAIL PROTECTED]

Detailed job requirements are as follows:


Software Engineer:

The position will support business functions through the use of 
internally developed and third party software solutions. The select 
candidate should have a working knowledge of full life-cycle development 
methods and have the ability to perform well in a highly diverse and 
busy team environment.  Roles: developer/programmer, business analyst, 
contribute to programming specifications, design and implement program 
logic, test and debug programs, support production software operations, 
meet with business personnel to define requirements, report progress and 
status of assigned tasks to project teams.


Experience: qualified candidate should have 4 -5 years experience with 
developing web-based software programs for business applications. 
Excellent analytical and problem-solving skills. Excellent oral and 
written communication skills. College degree required preferably in 
computer science. Hands on experience with business software 
applications development methodology. Advanced skills in Object Oriented 
Programming (OPP) highly desirable. Experience with Python and Zope 
highly desireable. Additional Skills: VB or C++, XML, wxPython, Zope, 
Javascript, HTML, SQL, Apache, working knowledge of CVS.



Primary duties include:

oPlan, develop, test, document and maintain computer programs, 
applying knowledge of programming techniques and computer systems using 
Python, wxPython, Zope and SQL.


oEvaluate user request for new or modified program to determine 
feasibility, cost and time required, compatibility with current system, 
and computer capabilities.


oConsulting with client to identify current operating procedures 
and clarify program objectives.  Help to develop proposal with 
information gathered to be submitted to the client.


oPrepares flowcharts and diagrams to illustrate sequence of 
steps program must follow and to describe logical operations involved.


oDesigns GUI displays to accomplish goals of user request.

oConverts project specifications, using flowcharts and diagrams, 
into sequence of detailed instructions and logical steps for coding.


oRecreate steps taken by user to locate source of problem and 
rewrites program to correct errors.


oSoftware installation and some hardware setup.

oEnd user training

oTrade show/Meeting presentations of product for end users


Required Skills:

oPython / wxPython programming in Win32 environment

oExperience setting up and administering relational databases 
such as MySQL, FireBird, PostgreSQL


oGood working knowledge of SQL

oAbility to solve technical problems

oGood communication skills, both verbal and written.


Desired Skills:

oZope programming experience

o   CMF and/or Zope 3 experience

o   Experience with Zope4Intranets  a plus

oCrystal Reports programming

oGood working knowledge of NSIS installer

oGood working knowledge of CVS/SVN

oGood working knowledge of barcodes/barcode scanning

oGood working knowledge of palmOS

oProgramming on PalmOS device

oGood working knowledge of Microsoft Word/Excel/Powerpoint

___
Zope-Announce maillist  -  Zope-Announce@zope.org
http://mail.zope.org/mailman/listinfo/zope-announce

 Zope-Announce for Announcements only - no discussions

(Related lists - 
Users: http://mail.zope.org/mailman/listinfo/zope

Developers: http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope-Annce] [ANN] IncrementalSearch[2] -- Bugfix release

2006-01-20 Thread Dieter Maurer
I found a bug in IncrementalSearch[2] that can cause wrong
results under rare circumstances. One requirement is
a not search embedded in an or search (but this is not sufficient
to cause the problem).

You find fixed versions at

  http://www.dieter.handshake.de/pyprojects/zope


IncrementalSearch[2] is a low level search engine for the 
efficient execution of and, or and not queries.

Unlike traditional search engines (like that implemented by Zope's ZCatalog),
it computes hits incrementally (one at a time) and interleaves
hit determination and index lookup. If a query is a quite
specific and query (that is the usual case), then IncrementalSearch
can result in significantly reduced search times.

I observed gains for IncrementalSearch2 in an order from about 20 percent
for queries including a large (bushy) or query (queries
IncrementalSearch2 cannot optimize well) up to 95 percent and more
(for pure highly specific and queries).


-- 
Dieter
___
Zope-Announce maillist  -  Zope-Announce@zope.org
http://mail.zope.org/mailman/listinfo/zope-announce

  Zope-Announce for Announcements only - no discussions

(Related lists - 
 Users: http://mail.zope.org/mailman/listinfo/zope
 Developers: http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope-Checkins] CVS: Packages/ZODB - config.py:1.13.4.1.38.2

2006-01-20 Thread Jim Fulton
Update of /cvs-repository/Packages/ZODB
In directory cvs.zope.org:/tmp/cvs-serv6069

Modified Files:
  Tag: jim-test-storage
config.py 
Log Message:
Make sure providing as-of implies read-only.


=== Packages/ZODB/config.py 1.13.4.1.38.1 = 1.13.4.1.38.2 ===
--- Packages/ZODB/config.py:1.13.4.1.38.1   Thu Jan 19 20:15:09 2006
+++ Packages/ZODB/config.py Fri Jan 20 13:29:27 2006
@@ -133,12 +133,14 @@
 
 y, m, d = map(int, d.split('-'))
 as_of = ZODB.TimeStamp.TimeStamp(y, m, d, *t.split(':'))
+read_only = True
 else:
 as_of = None
+read_only = self.config.read_only
 
 return FileStorage(self.config.path,
create=self.config.create,
-   read_only=self.config.read_only,
+   read_only=read_only,
quota=self.config.quota,
stop=as_of,
)

___
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins


[Zope-Checkins] CVS: Packages/ZODB - DemoStorage.py:1.18.10.2.4.1

2006-01-20 Thread Jim Fulton
Update of /cvs-repository/Packages/ZODB
In directory cvs.zope.org:/tmp/cvs-serv15107/ZODB

Modified Files:
  Tag: jim-test-storage
DemoStorage.py 
Log Message:
Added lastTransaction, which ZEO wants


=== Packages/ZODB/DemoStorage.py 1.18.10.2 = 1.18.10.2.4.1 ===
--- Packages/ZODB/DemoStorage.py:1.18.10.2  Fri Apr 22 15:36:07 2005
+++ Packages/ZODB/DemoStorage.pyFri Jan 20 17:15:19 2006
@@ -87,6 +87,7 @@
 from TimeStamp import TimeStamp
 from cPickle import loads
 from BTrees import OOBTree
+from ZODB.utils import z64
 
 class DemoStorage(BaseStorage):
 
@@ -105,6 +106,8 @@
 raise POSException.StorageError, (
 Demo base storage has version data)
 
+self._ltid = z64
+
 # While we officially don't support wrapping a non-read-only base
 # storage, it has proved useful for test suites to wrap a ClientStorage
 # in DemoStorage.  The least we can do to help support that case is
@@ -322,6 +325,12 @@
 if v is None:
 v = self._vindex[version] = {}
 v[oid] = r
+
+self._ltid = tid
+
+def lastTransaction(self):
+Return transaction id for last committed transaction
+return self._ltid
 
 def undo(self, transaction_id):
 self._lock_acquire()

___
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins


[Zope-Checkins] CVS: Packages/ZODB - BaseStorage.py:1.34.4.6.2.1

2006-01-20 Thread Jim Fulton
Update of /cvs-repository/Packages/ZODB
In directory cvs.zope.org:/tmp/cvs-serv15074/ZODB

Modified Files:
  Tag: jim-test-storage
BaseStorage.py 
Log Message:
Should be OK to ask for new_oid in read-only mode.  Demo storage wants
it.  Maybe need a max_oid.


=== Packages/ZODB/BaseStorage.py 1.34.4.6 = 1.34.4.6.2.1 ===
--- Packages/ZODB/BaseStorage.py:1.34.4.6   Wed Oct  5 15:31:01 2005
+++ Packages/ZODB/BaseStorage.pyFri Jan 20 17:15:18 2006
@@ -94,8 +94,6 @@
 return ''
 
 def new_oid(self):
-if self._is_read_only:
-raise POSException.ReadOnlyError()
 self._lock_acquire()
 try:
 last = self._oid

___
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins


[Zope-Checkins] CVS: Packages/ZODB - config.py:1.13.4.1.38.3

2006-01-20 Thread Jim Fulton
Update of /cvs-repository/Packages/ZODB
In directory cvs.zope.org:/tmp/cvs-serv15174/ZODB

Modified Files:
  Tag: jim-test-storage
config.py 
Log Message:
Args to TimeStamp must be ints.


=== Packages/ZODB/config.py 1.13.4.1.38.2 = 1.13.4.1.38.3 ===
--- Packages/ZODB/config.py:1.13.4.1.38.2   Fri Jan 20 13:29:27 2006
+++ Packages/ZODB/config.py Fri Jan 20 17:15:22 2006
@@ -17,11 +17,11 @@
 
 import os
 from cStringIO import StringIO
-import ZODB.Timestamp
 
 import ZConfig
 
 import ZODB
+import ZODB.TimeStamp
 
 db_schema_path = os.path.join(ZODB.__path__[0], config.xml)
 _db_schema = None
@@ -132,7 +132,7 @@
 d, t = as_of, '0'
 
 y, m, d = map(int, d.split('-'))
-as_of = ZODB.TimeStamp.TimeStamp(y, m, d, *t.split(':'))
+as_of = ZODB.TimeStamp.TimeStamp(y, m, d, *map(int, t.split(':')))
 read_only = True
 else:
 as_of = None

___
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins


Re: [Zope-dev] [ZPublisher] specifiying 'charset' for the content-type header

2006-01-20 Thread Chris Withers

Andreas Jung wrote:
--On 19. Januar 2006 18:37:35 + Chris Withers 
[EMAIL PROTECTED] wrote:



Andreas Jung wrote:




Ah, okay, and how would I indicate in my PythonScript return that I'm
returning something different to what is specified in
zpublisher_default_encoding?


By setting the content-type header _with_ a 'charset' set.



A cool :-) Where's the code that checks if this header is present so I
can take a look?


ZPublisher/HTTPResponse.py  (where else :-))


Oh :-S

I was expecting a different patch... so this only affects content 
returned as XML? How come?


cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

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


Re: [Zope-dev] [ZPublisher] specifiying 'charset' for the content-type header

2006-01-20 Thread Andreas Jung



--On 20. Januar 2006 10:03:03 + Chris Withers [EMAIL PROTECTED] 
wrote:

set' set.



A cool :-) Where's the code that checks if this header is present so I
can take a look?


ZPublisher/HTTPResponse.py  (where else :-))


Oh :-S

I was expecting a different patch... so this only affects content
returned as XML? How come?



huh?

-aj



pgplsPmXMIp1o.pgp
Description: PGP signature
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Zope tests: 8 OK

2006-01-20 Thread Zope tests summarizer
Summary of messages to the zope-tests list.
Period Thu Jan 19 12:01:01 2006 UTC to Fri Jan 20 12:01:01 2006 UTC.
There were 8 messages: 8 from Zope Unit Tests.


Tests passed OK
---

Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux
From: Zope Unit Tests
Date: Thu Jan 19 21:03:09 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004050.html

Subject: OK : Zope-2_6-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Thu Jan 19 21:04:40 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004051.html

Subject: OK : Zope-2_7-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Thu Jan 19 21:06:10 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004052.html

Subject: OK : Zope-2_7-branch Python-2.4.2 : Linux
From: Zope Unit Tests
Date: Thu Jan 19 21:07:40 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004053.html

Subject: OK : Zope-2_8-branch Python-2.3.5 : Linux
From: Zope Unit Tests
Date: Thu Jan 19 21:09:10 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004054.html

Subject: OK : Zope-2_8-branch Python-2.4.2 : Linux
From: Zope Unit Tests
Date: Thu Jan 19 21:10:40 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004055.html

Subject: OK : Zope-2_9-branch Python-2.4.2 : Linux
From: Zope Unit Tests
Date: Thu Jan 19 21:12:11 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004056.html

Subject: OK : Zope-trunk Python-2.4.2 : Linux
From: Zope Unit Tests
Date: Thu Jan 19 21:13:41 EST 2006
URL: http://mail.zope.org/pipermail/zope-tests/2006-January/004057.html

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


Re: [Zope-dev] Re: [Zope3-dev] December release post-mortem

2006-01-20 Thread Jim Fulton

Chris Withers wrote:
...
On a side note, I see python now includes doctest.py, why are we still 
maintaining our own copy in zope.testing?


doctest has been in Python for a long time, far longer than we've been using it.

Now that we use it aggressively and are aggressively contributing to it, we
usually need a newer version than is available in the Python release we're 
using.

If Python had and used a packaging system, like eggs, this wouldn't be 
necessary.
Someday.

Jim

--
Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
CTO  (540) 361-1714http://www.python.org
Zope Corporation http://www.zope.com   http://www.zope.org
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

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


[Zope-dev] Re: [Zope3-dev] December release post-mortem

2006-01-20 Thread Dieter Maurer
Martijn Faassen wrote at 2006-1-19 19:37 +0100:
 ...
I'm talking about a Zope 2 release including (most of) what's in a Zope 
3 release, so that Five developers can work on exposing *that* in Zope 2 
too (which can then be part of the next Zope 2 release as we integrate 
the newer Five in it).

I very much like Jims idea: having a small core with the ability
to add separately released extensions on demand.

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


[Zope-dev] Re: December release post-mortem

2006-01-20 Thread Philipp von Weitershausen
Martijn Faassen wrote:
 Yes, but Zope 2 included *less* than Zope 3 in the most recent
 release, and I'd like *all* packages that are in a Zope 3 release to
 be available in a Zope 2 release. I.e. Five doesn't want packages
 that aren't in a Zope 3 release, but not less either.

 I'm surprised that it included less. 
 
 It was a bug, and I think some of it already got resolved (Philipp would
 know more), but it wasn't noticed until fairly late, as during
 development such dependencies are development.

It included less due to an oversight on my side. I forgot to make the
Zope 2 release depend on certain new zope.app packages that zope.app
didn't already depend on. They were not included in Zope 2.9b1, but
2.9b2 quickly fixed that.

It was my mistake. I don't think anything would've made it easier
catching that mistake other than reports from the people. Also, it's a
mute point now (please let's bury it!) as b2 already fixed it.


While I got this email open, I'd like to quickly add my EUR0.02 as a
summary of this thread:

* Breaking Zope (3 that is) into subprojects is extremely useful.
zope.testing was a good example, the next things should be
zope.interface+zope.schema and zope.pagetemplate+zope.tales+zope.tal etc
because there are actually standalone releases of these things or at
least people using these things separately from Zope.

* Moving things that aren't immanent to the Zope 3 application server
out of zope.app is also a good thing. I suspect this is mostly a
mechanical change (dropping the 'app' in the import name). Ideally this
should indeed leave us with a zope.app that is so Zope3-specific that it
isn't of any use for Zope 2.

* We should indeed avoid having to include certain Zope 3 things into
Zope 2 that don't make any sense in Zope 2. The whole zope.app.twisted
machinery is an example. Currently we're not running zope.app tests in
Zope 2 because we would have to stitch in twisted into Zope 2 svn!

* Zope 2 should continue to use and provide as much Zope 3 functionality
as Zope 3 does. This policy brought us zope.formlib to Zope 2.9 which
is already being enjoyed by some Five developers!

* We should get rid of vendor imports such as pytz, docutils and those
testbrowser dependencies. Eggs will make this very trivial. We won't
even be concerned about development mode or not because we're not
modifying them anyways.


I think the decision for time-based releases is a success, mostly
because I already know when a new Zope release is to expected and
roughly what features it'll bring. As someone who puts a lot of effort
in Zope 3 documentation I find this extremely valuable as a planning asset.

As for the December release itself, I'm not too impressed. On the
Five/Zope 2 side of things it was more than people bargained for, namely
the port of Five to Zope 3.2 and the packaging of Zope 2 with zpkg. It
might be due to the fact that this was our first time-based release and
people were just used to releases being postponed when they didn't find
the time to commit to a schedule. Obviously this we can't continue like
this in the future.

If we move the release up to May (I'm +1) then feature freeze is in
April. That effectively leaves us not much more than two months worth of
time for work on Zope 3.3/2.10. What I want to say with this is that the
right time to work on Zope 3.3/2.10 is *now*, not some time in the summer.

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


Re: [Zope] Class instances changing address?

2006-01-20 Thread Chris Withers

Jeff Gentry wrote:

I wish I could post some relevent code but the code base but given that
I'm not at all sure what section of the code might be causing this and the
code base is several thousand lines long, that'sn ot really possible :(


I'm afraid that what you need to do is get as small as possible an 
example that reproduces the problem by hacking out lots of your code 
until the problem stops occuring. Doing this usually helps me fix the 
problem, but if not, you can at least post the answer here ;-)



What I was hoping was that people might have some ideas as to what I might
be doing wrong here (and admittedly I tought myself Zope  Python mostly
from other Zope products and trial  error so there might be some key
issue that I'm totally missing).


- Do any of your attribute names start with _v_ ?

- You may be running into problems with Acquisition and differing 
acquisition contexts...


cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk

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

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


Re: [Zope] zeopack: No handlers could be found for logger ZEO.zrpc

2006-01-20 Thread Chris Withers

Tim Peters wrote:

Is it true that you don't know how to edit Python code?  The first
response to that message suggested adding:

import logging
logging.basicConfig()


Have bugs for zeoup and zeopack been opened for these? I'm guessing they 
should both really use the stuff setup in zeo.conf...


cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk

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

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


[Zope] Re: Class instances changing address?

2006-01-20 Thread Florent Guillaume

Jeff Gentry wrote:

I'm running Zope 2.7.3 w/ python 2.4.1.  I'm in the process of developing
a FS based product as a primary class w/ many sub-classes.  I've been
experiencing a problem which I thought I had completely nixed but
apparently only partly so and now am out of ideas as to what might be the
source of the problem.

As background, the primary class (A) maintains a handle to an instance of
another class (B) which handles interaction w/ a psycopg db
controller.  Class A also will instantiate several instances of Class C
and as part of the construction will pass it the handle to class B.  So in
summary, A has a B and has 1:n C's, and C has a reference to B.  A  B
have physical representations in the ZMI, while instances of C are
'virtual'.


We say that A and B are persistent classes, while C is not.
You have to be aware that persistent classes have special needs, and using 
them has consequences. One being that, due to transactional behaviour, 
several versions of the same instance of an object may be present in the 
system, in different threads, for different requests. They'll have different 
addresses.


Also be aware that it doesn't make sense for a non-persistent class to refer 
to a persistent instance unless it knows that they can be thread-specific.


Florent

--
Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of RD
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

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


[Zope] Zope and Sqlite3 adapter

2006-01-20 Thread David Pratt
Hi can someone advise whether there is an adapter for sqlite3 for zope. 
 I normally use Postgres but I am curious about this for lightweight 
use. I realize sqlite3 is not multi-threaded itself but might be fine 
for small volume sites (if it can be forced to use a single thread for 
interaction with the db). Does anyone have any experience they can share 
if they have tried this before. Many thanks.


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

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


[Zope] LocalFS under Zope2.9

2006-01-20 Thread Dennis Allison

This is the  LocalFS-1.3-andreas version.  Later releases do not appear to 
address this issue.


2006-01-20T09:22:51 ERROR Zope Couldn't install LocalFS
Traceback (most recent call last):
  File /usr/local/src/zope/Zope2.9/lib64/python/OFS/Application.py, line 
763, in install_product
global_dict, global_dict, silly)
  File /opt/zope/zproducts/standard/LocalFS/__init__.py, line 44, in ?
import os, LocalFS
  File /opt/zope/zproducts/standard/LocalFS/LocalFS.py, line 51, in ?
from OFS.content_types import find_binary
ImportError: cannot import name find_binary





-- 

___
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 2.9 and product installation

2006-01-20 Thread Dennis Allison
IssueTracker 0.6.13
Zope 2.9.0
64-bit linux

2006-01-20T09:22:49 WARNING Init Class 
Products.IssueTrackerProduct.IssueTracker.IssueTracker has a security 
declaration for nonexistent method 'index_html'
--
2006-01-20T09:22:49 WARNING Init Class 
Products.IssueTrackerProduct.IssueTracker.IssueTracker has a security 
declaration for nonexistent method 'Statistics'
--
2006-01-20T09:22:49 WARNING Init Class 
Products.IssueTrackerProduct.IssueTracker.IssueTracker has a security 
declaration for nonexistent method 'ListIssues'
--
2006-01-20T09:22:49 WARNING Init Class 
Products.IssueTrackerProduct.IssueTracker.IssueTracker has a security 
declaration for nonexistent method 'ShowIssue'
--
2006-01-20T09:22:49 WARNING Init Class 
Products.IssueTrackerProduct.IssueTracker.IssueTracker has a security 
declaration for nonexistent method 'ListIssues.csv'
--
2006-01-20T09:22:49 WARNING Init Class 
Products.IssueTrackerProduct.IssueTracker.IssueTracker has a security 
declaration for nonexistent method 'CompleteList'
--
2006-01-20T09:22:49 WARNING Init Class 
Products.IssueTrackerProduct.IssueTracker.IssueTracker has a security 
declaration for nonexistent method 'export.csv'
--
2006-01-20T09:22:49 WARNING Init Class 
Products.IssueTrackerProduct.IssueTracker.IssueTracker has a security 
declaration for nonexistent method 'manage_ManagementForm'
--
2006-01-20T09:22:49 WARNING Init Class 
Products.IssueTrackerProduct.IssueTracker.IssueTracker has a security 
declaration for nonexistent method 'manage_ManagementUpgrade'
--
2006-01-20T09:22:49 WARNING Init Class 
Products.IssueTrackerProduct.IssueTracker.IssueTracker has a security 
declaration for nonexistent method 'manage_ManagementUsers'
--
2006-01-20T09:22:49 WARNING Init Class 
Products.IssueTrackerProduct.IssueTracker.IssueTracker has a security 
declaration for nonexistent method 'manage_PropertiesStatusScores'
--
2006-01-20T09:22:49 WARNING Init Class 
Products.IssueTrackerProduct.IssueTracker.IssueTracker has a security 
declaration for nonexistent method 'manage_editIssueTrackerPropertiesForm'
--
2006-01-20T09:22:49 WARNING Init Class 
Products.IssueTrackerProduct.IssueTracker.IssueTracker has a security 
declaration for nonexistent method 'manage_ManagementNotifyables'
--
2006-01-20T09:22:49 WARNING Init Class 
Products.IssueTrackerProduct.IssueTracker.IssueTracker has a security 
declaration for nonexistent method 'manage_configureMenuForm'
--
2006-01-20T09:22:49 WARNING Init Class 
Products.IssueTrackerProduct.IssueTracker.IssueTracker has a security 
declaration for nonexistent method 'manage_POP3ManagementForm'
--
2006-01-20T09:22:49 WARNING Init Class 
Products.IssueTrackerProduct.IssueTracker.IssueTracker has a security 
declaration for nonexistent method 'ShowIssue'

Other products generate similar warnings.

Is this a problem with Zope 2.9 or an incompatibility introduced as 
Zope 2.X migrates towards Zope 3.X?   What should be done to resolve this 
class of problems.

-- 

___
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] Zope 2.9 and product installation

2006-01-20 Thread Paul Winkler
On Fri, Jan 20, 2006 at 10:23:30AM -0800, Dennis Allison wrote:
 IssueTracker 0.6.13
 Zope 2.9.0
 64-bit linux
 
 2006-01-20T09:22:49 WARNING Init Class 
 Products.IssueTrackerProduct.IssueTracker.IssueTracker has a security 
 declaration for nonexistent method 'index_html'

(snip)

These are warnings intended to help developers fix a common
mistake: misspelling a security declaration.

They are harmless to you, the user.

It looks like IssueTracker programatically modifies
the IssueTracker class on startup to populate it with some
templates, by calling a function addTemplates2Class();
and index_html et al. get added to it at that time.

That's a little unusual, and I'm not sure what motivated it,
but certainly there could be good reasons...

Unfortunately, the security declarations have already been
evaluated by then, hence the warnings.

Presumably the IssueTracker team will test it under 2.9 at
some point and figure out how to avoid the warnings.

-- 

Paul Winkler
http://www.slinkp.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Zope and Sqlite3 adapter

2006-01-20 Thread Dieter Maurer
David Pratt wrote at 2006-1-20 10:00 -0400:
Hi can someone advise whether there is an adapter for sqlite3 for zope. 
  I normally use Postgres but I am curious about this for lightweight 
use. I realize sqlite3 is not multi-threaded itself but might be fine 
for small volume sites (if it can be forced to use a single thread for 
interaction with the db). Does anyone have any experience they can share 
if they have tried this before. Many thanks.

I think almost all DA for DB API 2 compatible modules have
a common ancestor. They are all very similar.

If there is not yet a DA, it should be easy to copy an existing
DA and make some minor adjustments for SQLite3.


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


Re: [Zope] Class instances changing address?

2006-01-20 Thread Dieter Maurer
Jeff Gentry wrote at 2006-1-19 16:55 -0500:
 ...
As background, the primary class (A) maintains a handle to an instance of
another class (B) which handles interaction w/ a psycopg db
controller.  Class A also will instantiate several instances of Class C
and as part of the construction will pass it the handle to class B.  So in
summary, A has a B and has 1:n C's, and C has a reference to B.  A  B
have physical representations in the ZMI, while instances of C are
'virtual'.

What is happening at times is that all of a sudden any call from C to B
(ie C is accessing the DB) will result in Zope reporting that it could not
find the psycopg controller, and indeed when this happens, any call
through B via C will show that B can not find any DB controllers (using
SQLConnectionIDs()).  When I looked a bit closer, I had C's instance of B
do a 'print instanceOfB' before calling out to B, which looked like this
in the console:
B instance at 2a9d564da0

What I found was at the moment that things stopped working, the address of
the instance was changed, which explains a lot.

No object in Python can ever change its address.

  If you observe a c.b changing address, then this means that either

*  you look at a different c

*  a new value was assigned to c.b (by an explicit assignment
   and not be magic -- unless something skrewed the memory
   management).


Your B instance above, is apparently not acquisition wrapped.
Acquisition wrapped instances usually include the container path
in their repr (if the intermediate objects have an id/getId --
this is the case of instances with ZMI representation (SimpleItems,
to be precise).

 However, I can not figure
out why this would happen

Does your logfile contains unexplained entries?

Do you use try: ... except: ... and swallow valuable exception
information?

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


Re: [Zope] NewBee, Do I have to code to do this?

2006-01-20 Thread John Huttley

Thanks for your help on this. I'll study it up shortly.

Regards,
John
___
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] LocalFS under Zope2.9

2006-01-20 Thread Jürgen Herrmann
change the line
from OFS.content_types...
to
from zope.app.content_types

in LocalFS.py

regrds, juergen herrmann

On Fri, January 20, 2006 19:07, Dennis Allison wrote:

 This is the  LocalFS-1.3-andreas version.  Later releases do not appear to
 address this issue.


 2006-01-20T09:22:51 ERROR Zope Couldn't install LocalFS
 Traceback (most recent call last):
   File /usr/local/src/zope/Zope2.9/lib64/python/OFS/Application.py, line
 763, in install_product
 global_dict, global_dict, silly)
   File /opt/zope/zproducts/standard/LocalFS/__init__.py, line 44, in ?
 import os, LocalFS
   File /opt/zope/zproducts/standard/LocalFS/LocalFS.py, line 51, in ?
 from OFS.content_types import find_binary
 ImportError: cannot import name find_binary
 




 --

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



___

 XLhost.de - eXperts in Linux hosting 

Jürgen Herrmann
Bruderwöhrdstraße 15b, DE-93051 Regensburg

Fon:  +49 (0)700 XLHOSTDE [0700 95467833]
Fax:  +49 (0)721 151 463027
WEB:  http://www.XLhost.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 )


Re: [Zope] Class instances changing address?

2006-01-20 Thread Jeff Gentry
On Fri, 20 Jan 2006, Chris Withers wrote:
 I'm afraid that what you need to do is get as small as possible an 
 example that reproduces the problem by hacking out lots of your code 
 until the problem stops occuring. Doing this usually helps me fix the 
 problem, but if not, you can at least post the answer here ;-)

Yeah, I recognize the value in doing that and I will try this weekend.  It
is just unclear to me how to easily construct a mini-example at the
moment for this particular situation.

 - Do any of your attribute names start with _v_ ?

No, although that would explain it if I did.

 - You may be running into problems with Acquisition and differing 
 acquisition contexts...

The three responses I received all touched on this issue to some extent,
as well as issues such as the Persistence mechanisms, etc.  I've been
pretty in the dark as to how a lot of that works so hopefully reading up
on these will shed some light as to what I'm doing wrong.

Thanks
-J

___
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: Class instances changing address?

2006-01-20 Thread Jeff Gentry

On Fri, 20 Jan 2006, Florent Guillaume wrote:
 We say that A and B are persistent classes, while C is not.
 You have to be aware that persistent classes have special needs, and using 
 them has consequences. One being that, due to transactional behaviour, 
 several versions of the same instance of an object may be present in the 
 system, in different threads, for different requests. They'll have different 
 addresses.

Interesting, and led me to some reading of topics that I didn't even know
existed.  One thing to note though, this afternoon I reimplemented the
handling of 'C' such that they have physical representations in the ZMI (I
had them subclass SimpleItem and then performed a _setObject() in a Folder
inside the 'A' instance) and this was still happening.  

I've seen a few comments suggesting that poor handling of Acquisition
could be my downfall here so perhaps indeed it wasn't the persistence
issue but acquisition instead?

Thanks
-J


___
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] returning list from PythonScript

2006-01-20 Thread Slobodan Jovcic

Hi,

I'm trying to pass a list of values between the script and external  
method. ZPT contains the following:


tal:block tal:define=whatever python: container.myExtMethod 
( container.myScript() ) /


container.myScript() is a Python Script that returns a list of values.
container.myExtMethod() is an External Method expecting that list.  
However, all it gets is a string representation of the list ( []  
instead of [] ). How can I pass the list itself?


Btw, hard-coding list in ZPT works fine:
tal:block tal:define=whatever python: container.myExtMethod( ['a',  
'b', 'c' ] ) /


Thanks,
Jovca
_
Slobodan Jovcic
Teaching Enhancement Center
Office of Instructional Development, UCLA
(310) 794 2099



___
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] Class instances changing address?

2006-01-20 Thread Jeff Gentry
On Fri, 20 Jan 2006, Dieter Maurer wrote:
 Your B instance above, is apparently not acquisition wrapped.
 Acquisition wrapped instances usually include the container path
 in their repr (if the intermediate objects have an id/getId --
 this is the case of instances with ZMI representation (SimpleItems,
 to be precise).

This seems like a likely culprit, although on the surface I thought I was
wrapping 'B'.  Based on another comment I tried reimplementing the system
so that instances of 'C' also had a ZMI representation, and I started
running through the system looking at the repr() of these instances (both
'B' and 'C').  What I saw was that 'B' would say:
B instance at 2a9e9274e0 (or some other mem address)
while 'C' would say:
C instance at /gg/some/path

My knowledge of these things is poor but that would imply that B is not
properly wrapped?  FWIW when I instantiate 'B' I do a _setObject() and
then a _getOb() and use the return value from that, my understanding being
that this is what wraps the object.

 Does your logfile contains unexplained entries?

No, unfortunately.

 Do you use try: ... except: ... and swallow valuable exception
 information?

It isn't clear to me what to except on.  The error that gets thrown
doesn't appear to be a normal Zope error (e.g. AttributeError,
ProgrammingError, etc), it just says (in italics) something along the
lines of 'Psycopg_database_controller cannot be found' w/o traceback info,
etc.

Thanks
-J

___
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] returning list from PythonScript

2006-01-20 Thread J Cameron Cooper

Slobodan Jovcic wrote:

Hi,

I'm trying to pass a list of values between the script and external  
method. ZPT contains the following:


tal:block tal:define=whatever python: container.myExtMethod ( 
container.myScript() ) /


container.myScript() is a Python Script that returns a list of values.
container.myExtMethod() is an External Method expecting that list.  
However, all it gets is a string representation of the list ( []  
instead of [] ). How can I pass the list itself?


Btw, hard-coding list in ZPT works fine:
tal:block tal:define=whatever python: container.myExtMethod( ['a',  
'b', 'c' ] ) /


The problem is likely in 'myScript', which you do not show us.

--jcc
--
Building Websites with Plone
http://plonebook.packtpub.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

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


Re: [Zope] Class instances changing address?

2006-01-20 Thread Jeff Gentry

Sorry for the self followup, but some update info.

On Fri, 20 Jan 2006, Jeff Gentry wrote:
 running through the system looking at the repr() of these instances (both
 'B' and 'C').  What I saw was that 'B' would say:
 B instance at 2a9e9274e0 (or some other mem address)
 while 'C' would say:
 C instance at /gg/some/path

Looking at this, as well as absolute_url_path and watching the result of
SQLConnectionIDs() it appears that the problematic instance is actually
the instance of class 'A'.  When the problem I'm seeing occurs, the
aq_parent of 'A' changes, eg:
Application instance at 2a9e91f9e0
will be changed to another address.
(It is in the root folder of the ZMI).

I don't see any clear spots where I might be changing the parent of the
'A' object, although it is certainly possible via side
effect.  Particularly confusing is the seemingly nondeterministic behavior
on when this happens although I'm assuming it was due to the threading
issues mentioned earlier in this particular thread?

Thanks
-J


___
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] returning list from PythonScript

2006-01-20 Thread Slobodan Jovcic
True. Somehow, some of the latest changes in the script were lost,  
probably by closing the browser without save, including a change of:

print result
return printed
to:
return result

Very stupid.

Jovca
_
Slobodan Jovcic
Teaching Enhancement Center
Office of Instructional Development, UCLA
(310) 794 2099



On Jan 20, 2006, at 2:54 PM, J Cameron Cooper wrote:


Slobodan Jovcic wrote:

Hi,
I'm trying to pass a list of values between the script and  
external  method. ZPT contains the following:
tal:block tal:define=whatever python: container.myExtMethod  
( container.myScript() ) /
container.myScript() is a Python Script that returns a list of  
values.
container.myExtMethod() is an External Method expecting that  
list.  However, all it gets is a string representation of the list  
( []  instead of [] ). How can I pass the list itself?

Btw, hard-coding list in ZPT works fine:
tal:block tal:define=whatever python: container.myExtMethod 
( ['a',  'b', 'c' ] ) /


The problem is likely in 'myScript', which you do not show us.

--jcc
--
Building Websites with Plone
http://plonebook.packtpub.com


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

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


Re: [Zope] returning list from PythonScript

2006-01-20 Thread David

J Cameron Cooper wrote:


Slobodan Jovcic wrote:


Hi,

I'm trying to pass a list of values between the script and external  
method. ZPT contains the following:


tal:block tal:define=whatever python: container.myExtMethod ( 
container.myScript() ) /


container.myScript() is a Python Script that returns a list of values.
container.myExtMethod() is an External Method expecting that list.  
However, all it gets is a string representation of the list ( []  
instead of [] ). How can I pass the list itself?


Btw, hard-coding list in ZPT works fine:
tal:block tal:define=whatever python: container.myExtMethod( ['a',  
'b', 'c' ] ) /



The problem is likely in 'myScript', which you do not show us.

--jcc


I'd probably just call container.MyScript()  as self.MyScript() in the 
external method.  But i'm curious as to why your example doesn't work. 


Maybe you could first define the array first with something like ...

tal:block tal:define=thearray structure? python: container.myScript();
   whatever python: container.myExtMethod( 
thearray )



DAvid


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

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


Re: [Zope] Class instances changing address?

2006-01-20 Thread Gabriel Genellina

At Friday 20/1/2006 20:07, Jeff Gentry wrote:


As background, the primary class (A) maintains a handle to an instance of
another class (B) which handles interaction w/ a psycopg db
controller.  Class A also will instantiate several instances of Class C
and as part of the construction will pass it the handle to class B.  So in
summary, A has a B and has 1:n C's, and C has a reference to B.  A  B
have physical representations in the ZMI, while instances of C are
'virtual'.


If you follow these rules you should be safe:

- Never store a reference to a persistent object inside another 
persistent object; use its id or path to retrieve it when needed.
- Never store a reference to a persistent object inside a 
non-persistent object.
- If a persistent object owns some other persistent objects, make 
the first an ObjectManager.

- Let Zope manage transactions, and avoid bare try/excepts

Of course you can break the rules if you really really know what you 
are doing but they are a good starting point. And reading about how 
persistence works is a big help (it appears you've already read it, I think).




Gabriel Genellina
Softlab SRL 


___
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] returning list from PythonScript

2006-01-20 Thread Slobodan Jovcic
I'd probably just call container.MyScript()  as self.MyScript() in  
the external method.


I'm trying to keep external method versatile.


  But i'm curious as to why your example doesn't work.


There was an error in the script that I fixed, but never saved the  
file. Doh!


Thanks,
Jovca
_
Slobodan Jovcic
Teaching Enhancement Center
Office of Instructional Development, UCLA
(310) 794 2099



On Jan 20, 2006, at 4:05 PM, David wrote:


J Cameron Cooper wrote:


Slobodan Jovcic wrote:


Hi,

I'm trying to pass a list of values between the script and  
external  method. ZPT contains the following:


tal:block tal:define=whatever python: container.myExtMethod  
( container.myScript() ) /


container.myScript() is a Python Script that returns a list of  
values.
container.myExtMethod() is an External Method expecting that  
list.  However, all it gets is a string representation of the  
list ( []  instead of [] ). How can I pass the list itself?


Btw, hard-coding list in ZPT works fine:
tal:block tal:define=whatever python: container.myExtMethod 
( ['a',  'b', 'c' ] ) /



The problem is likely in 'myScript', which you do not show us.

--jcc


I'd probably just call container.MyScript()  as self.MyScript() in  
the external method.  But i'm curious as to why your example  
doesn't work.

Maybe you could first define the array first with something like ...

tal:block tal:define=thearray structure? python:  
container.myScript();
   whatever python:  
container.myExtMethod( thearray )



DAvid


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

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


[Zope] Can not authenticate witn zope http server

2006-01-20 Thread papi mac
I have been using Zope 2.7.5 (with python 2.3.5) for a long time on a Red Hat 9 server. I migrated to a new machine 2 weeks ago that has FC4 where I installed Zope 2.8.5 (and python 2.3.5 for its use). The old server started dveloping some internittent crashes that I think could be due to the Promise RAID controller card (looks like I migrated just in time...). The last time I used Zope on that old server was in mid December 2005 and all was fine. However, now when I try to export the wikis I use (ZWiki) to import into the new server, I have a big problem. The old installation will not let me even get to the main web page (the one from where you can access the ZMI). This is in Z2.log:  127.0.0.1 - miguelk [20/Jan/2006:14:22:44 -0300] "GET / HTTP/1.0" 401 594 "" "Lynx/2.8.5dev.7 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.7"  If I try with Firefox from a PC on the LAN I also get:  10.1.9.50 - miguelk [20/Jan/2006:15:44:32 -0300] "
 GET /
 HTTP/1.1" 401 575 "" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 Firefox/1.0.7 SUSE/1.0.7-0.1"  In other words http://server-ip:8080 asks for authentication and there is no combination of user names and passwords that will let me pass. It never asked me for this authentication before. I tried to remake the inituser file but it did not help. If I install the very same Zope version (2.7.5) in another directory on the old server and start it I can reach the main page on the new installation fine without any login..This is what I did (using the same zope.conf file on both 2.7.5 installations):  a) If I copy the files in instance/var from a fresh install into this one I can reach the web page fine (no http authentication required). I 'm NOT talking about the ZMI, just the main page above it.. So the problem is not the installation. b) I have a backup of the instance/bvar files from April 2005. If I copy them
  over, I
 get asked for a login and I put in my usual login and get to the page (I do wonder why it asks for a login) c) If I copy the instance/var files that I want to access to a fresh installation on the same machine I get asked for a login and can not get a working combination, so this points to the instance/var files as the culprits  I have 2 questions:  a) Why does Zope insiist on authenticating access to the main page and is there a way to tell it to let me access the main page (the one that talks about Zope and lets you access "manage") without a login? b) Does it make sense to keep trying or is Data.fs or some other file corrupted?  Thanks a lot.  Miguel   
		Yahoo! Photos – Showcase holiday pictures in hardcover 
Photo Books. You design it and we’ll bind it!___
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] Zope and Sqlite3 adapter

2006-01-20 Thread David Pratt
Hi Dieter. Many thanks. :-) I was hoping there might be something but if 
I cannot locate anything existing, I will likely go this route if I can 
find a bit more time.


Regards,
David


Dieter Maurer wrote:

David Pratt wrote at 2006-1-20 10:00 -0400:

Hi can someone advise whether there is an adapter for sqlite3 for zope. 
I normally use Postgres but I am curious about this for lightweight 
use. I realize sqlite3 is not multi-threaded itself but might be fine 
for small volume sites (if it can be forced to use a single thread for 
interaction with the db). Does anyone have any experience they can share 
if they have tried this before. Many thanks.



I think almost all DA for DB API 2 compatible modules have
a common ancestor. They are all very similar.

If there is not yet a DA, it should be easy to copy an existing
DA and make some minor adjustments for SQLite3.



___
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-DB] Warnings from mxODBC in 2.8.5

2006-01-20 Thread M.-A. Lemburg
Chris Withers wrote:
 Hi All,
 
 I get the following warnings from mxODBC on Zope 2.8.5:
 
 lib/python/OFS/Application.py:788:
 DeprecationWarning: __init__.py of Products.mxODBCZopeDA has a long
 deprecated '__ac_permissions__' attribute. '__ac_permissions__' will be
 ignored by install_product in Zope 2.10. Please use registerClass instead.
   DeprecationWarning)
 lib/python/OFS/Application.py:803:
 DeprecationWarning: __init__.py of Products.mxODBCZopeDA has a long
 deprecated 'meta_types' attribute. 'meta_types' will be ignored by
 install_product in Zope 2.10. Please use registerClass instead.
   DeprecationWarning)
 lib/python/OFS/Application.py:820:
 DeprecationWarning: __init__.py of Products.mxODBCZopeDA has a long
 deprecated 'methods' attribute. 'methods' will be ignored by
 install_product
 in Zope 2.10. Please use registerClass instead.
   DeprecationWarning)
 
 Have other people seen this?
 I tried adding a warning filter but it didn't have any effect. My only
 guess is becuase mxODBC ships only as .pyc files :-S

The warning filter should work for any Python code which
issues these warnings, regardless of where and how it is
defined. However, you'd have to register
the filter early during Zope startup in order for it
to be active by the time OFS.Application.py is imported.

 Anyway, I guess this is mainly aimed at the eGenix people: is there a
 version of mxODBC available which has these problems fixed?

No. The reason is that the mxODBC Zope DA supports many old
Zope versions (starting with Zope 2.3).

Our next version will only be available for Zope 2.7 onwards
and will remove much of the old-style interface logic which
we still have to keep around for backwards compatibility
reasons.

Cheers,
-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Jan 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-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db


Re: [Zope-DB] mxODBC Zope DB2 adapter - how to specify the current schema?

2006-01-20 Thread M.-A. Lemburg
Gergana Silvanova wrote:
 Dear all,
 
 I'm using Zope with IBM DB2... the adapter which I use is mxODBC DA from 
 eGenix... in the database connection string, I can specify DSN, UID, PWD and 
 adapter-specific stuffdoes someone know if there is a way to specify the 
 current schema? I looked in the documentation, but did not find it.

The only way to do this would be in the connection string,
using additional parameters. Please consult the ODBC driver
documentation for available options.

FWIW, this page lists the options for the Linux DB2 ODBC driver:

http://www-03.ibm.com/servers/eserver/iseries/linux/odbc/guide/odbcproperties.html

This is the general documentation page for the driver:

http://www-03.ibm.com/servers/eserver/iseries/linux/odbc/guide/

 Until now I was using the Zope DBDA adapter from BlueDynamics, and I easily 
 could specify the schema, together with the database, username and password, 
 in the database connection.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Jan 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-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db