Re: [Zope3-dev] Odd functional test failure (testModuleListView)

2005-04-03 Thread Stephan Richter
On Saturday 02 April 2005 17:58, Tim Peters wrote:
 I get a failure today running the unit and functional tests in the same
 run:

 
 FAIL: testModuleListView (zope.app.apidoc.browser.ftests.APIDocTests)
 --
 Traceback (most recent call last):
   File C:\Code\Zope3\src\zope\app\apidoc\browser\ftests.py, line 60,
 in testModuleListView
     basic='mgr:mgrpw')
   File C:\Code\Zope3\src\zope\app\testing\functional.py, line 371,
 in checkForBrokenLinks
     self.fail(%s contains broken links:\n % path
   File C:\python23\lib\unittest.py, line 270, in fail
     raise self.failureException, msg
 AssertionError: /++apidoc++/modulelist.html contains broken links:
   /++apidoc++/./++preferences++/apidoc/@@apidocMenu.html:      
 ForbiddenAttribute: ('__getitem__',
 zope.app.preference.preference.PreferenceGroup object at 0x07AEEB10)
 
 However, the test passes if I leave the unit tests out of the run
 (i.e., test.py -f).

This is my fault. I can reproduce the issue. What's particularly strange is 
that I can just run the tests in zope.app.apidoc to reproduce the problem. I 
thought I have to run at least the zope.app.preference tests too. Mmmh, I 
have to dig a while to figure out what's going on.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Fixing bugs

2005-04-04 Thread Stephan Richter
On Monday 04 April 2005 03:38, Dmitry Vasiliev wrote:
 doc/TODO.txt says:

 
 Bugs starting with * represent bugs that must be fixed for the 3.0.x branch
 as well.
 

 Should the bugs be fixed only for branches/ZopeX3-3.0 or for
 branches/ZopeX3-3.0.0-Zope-2.8 as well?

I think the ZopeX3-3.0 branch will be enough, simply because we cannot require 
Zope 3 developers to test Zope 2 stuff as well. It will be the job of the 
Five integration people to port all changes to the other branch.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Re: SVN: Zope3/trunk/ - Implemented a generic user preferences system.

2005-04-06 Thread Stephan Richter
On Monday 04 April 2005 14:57, Florian Lindner wrote:
 There is a small typo in the README.txt:

 [EMAIL PROTECTED] ~/Zope3/src/zope/app/preference $ svn diff README.txt

Fixed in revision 29893.

BTW, you should really get checkin rights. :-)

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Test Failures when running tests with -N 2

2005-04-10 Thread Stephan Richter
On Saturday 09 April 2005 21:20, Tim Peters wrote:
 [Stephan Richter]

  I have removed all unit test failures when running the test runner with
  -N 2,

 Really?  You don't see the new failure I reported here yesterday?
 That's got nothing to do with -N, though:

     http://mail.zope.org/pipermail/zope3-dev/2005-April/014158.html

I had originally deleted this last test, so they would pass (it was not only 
on Windows), so a simple svn up should have sufficed. However, I just 
reenabled the test and fixed it for good.

  except for one failure in the ZODB tests, since I know nothing about this
  code.

 This may be hard to fix.  It really has nothing to do with ZODB, it's
 testing that various deprecated methods generate deprecation warnings,
 and the behavior across multiple runs has to do with private internals
 of Python's ``warnings`` module.  The latter tries to avoid showing
 the same msg from the same line twice, and that's exactly what's going
 wrong here:  on the second run the test isn't seeing the warnings it
 saw on its first run ... OK, hacked around that, but Zope3 won't
 notice until I check it in _and_ someone switches Zope3 to use a new
 ZODB.

Right, I know about this. Mmh, in fact, it surprises me now that my 
deprecation module doctests do not complain in the second run. It is probably 
one of the advantages of doc file tests, since their module gets regenerated 
for every test run, so that the deprecation framework does not detect the 
warning duplication.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] httpdoc problems

2005-04-13 Thread Stephan Richter
On Monday 11 April 2005 11:46, Garrett Smith wrote:
 I'm getting this rather uninformative error message when I try to build
 a doctest using tcpwatch output.

 Traceback (most recent call last):
   File \SCM\zope\Zope3\src\zope\app\testing\dochttp.py, line 224, in ?
     main()
   File \SCM\zope\Zope3\src\zope\app\testing\dochttp.py, line 101, in
 dochttp
     assert (request and response) or not (request or response)
 AssertionError

TCPWatch sometimes does not work well for binary data. Simply remove all the 
request files from the record directory that does not have a matching 
response.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Test Failures when running tests with -N 2

2005-04-13 Thread Stephan Richter
On Sunday 10 April 2005 18:57, Tim Peters wrote:
  Right, I know about this. Mmh, in fact, it surprises me now that my
  deprecation module doctests do not complain in the second run. It is
  probably one of the advantages of doc file tests, since their module gets
  regenerated for every test run, so that the deprecation framework does
  not detect the warning duplication.

 That probably accounts for it.  warnings.py does a truly horrid thing
 to detect duplicates:  when a warning is first raised in module M, it
 creates a secret M.__warningregistry__ attribute, to record all
 warnings (text, category, and line number) ever raised in M.  If M
 goes away, so does the record of the warnings it raised.

Another reason to write doc tests. :-)

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Re: HTTP 405: Method Not Allowed

2005-04-13 Thread Stephan Richter
On Thursday 07 April 2005 16:06, Philipp von Weitershausen wrote:
    class MethodNotAllowed(Exception):
        implements(IMethodNotAllowed)
 
        def __init__(self, object, request):
            self.allow = [name for name, adapter
                          in zapi.getAdapters((object, request), Interface)
                          if hasattr(adapter, name)]
 
        def __str__(self):
            return 'Allow: %s' % self.allow
 
 
    class MethodNotAllowedView:
 
        def __init__(self, error, request):
            self.error = error
            self.request = request
 
        def __call__(self):
            self.request.response.setHeader('Allow', ',
  '.join(self.error.allow)) self.request.response.setStatus(405)
            return 'Method Not Allowed'

 This looks good. I'm +1 on this.

+1 I think this is a first good step. We have to think about the special cases 
a bit harder.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] bug in workflow/stateful/instance.py ?

2005-04-13 Thread Stephan Richter
On Saturday 02 April 2005 10:51, Markus Leist wrote:
  If you can provide a test, I check it in. The test is always what takes
  time. :-):-)

 hope, it's ok in  this kind?

Fixed in revision 29960.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] release numbering

2005-04-20 Thread Stephan Richter
On Wednesday 20 April 2005 09:07, Jake wrote:
 2.7 - 2.8 - 2.9 - 3.0 (merge)

I think this will probably still happen.

 X3.0 - X3.1 - 3.0 (merge)

I do not think this will happen. In fact, I am getting a strange feeling that 
we will have both, 3.x and X3.x, around for a long time, since some people 
want Zope 2 compatibility and others don't. I think that Zope 2 products just 
use too much of the internal Zope 2 API that they could ever work in a Zope 3 
environment.

 And that was the whole point of putting X in front of the 3, so you would
 know it was not really Zope 3.0, but X3.

Right, and I think this still holds.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Re: [Zope3-checkins] SVN: Zope3/trunk/doc/security/SecurityTarget.txt - removed rst document in favor of latex

2005-04-20 Thread Stephan Richter
On Wednesday 20 April 2005 09:42, Florent Guillaume wrote:
 Gh  Why oh why ? The document is now totally unreadable, except
 by reading a generated .ps or .pdf. That's not the way to go for
 documentation :(

Remember that this document has to be read by an independent third party and 
they want nicely layouted pages, which I think they have a right to demand. 
ReST can just not provide that, but LaTeX can. Also, for simple (in terms of 
layout) documents like this, they are still readable in LaTeX source form.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] release numbering

2005-04-20 Thread Stephan Richter
On Wednesday 20 April 2005 10:36, Jake wrote:
 I agree.

 Drop the X when X3 has 2X support in it.

Something you and Chris do not address is how to call the version of Zope 3 
that will not have Zope 2 support. I, for one, and probably many others still 
want to have *pure* Zope 3 releases without Zope 2 mixed in. So for that time 
period (until Zope 2 coded is gone) we need two names for Zope 3 anyways. 
Maybe the X will eventually evolve to represent pure (like X - no Zope 2 
here). :-) 

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Building standalone ZPT from Zope 3 using zpkgtools

2005-04-21 Thread Stephan Richter
On Thursday 21 April 2005 06:57, Chris Withers wrote:
 Out of interest, how'd I go about making something I can:

 python setup.py install

 ...with zpkgtools?

There are two modes, application and package. Zope is built as an application, 
so you get the Makefile and all, but if you build a package you can use plain 
setup.py. However, I think Makefile is just a frontend for the setup.py calls 
anyways.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Building standalone ZPT from Zope 3 using zpkgtools

2005-04-21 Thread Stephan Richter
On Thursday 21 April 2005 08:02, Chris Withers wrote:
 So, what you're saying is that this is a command line option to zpkg?

If I remember correctly, yes. :-)

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Re: [Zope3-checkins] SVN: Zope3/branches/srichter-twisted-integration/src/zope/app/server/ Reimplemented common access log using Twisted's log framework. It uses our

2005-04-21 Thread Stephan Richter
On Thursday 21 April 2005 06:38, Chris Withers wrote:
 Why are you looking to use this rather than Python's logging package?

The observer below clearly uses the Python logging package:

   def __init__(self, logger=None):
       if logger is None:
           logger = logging.getLogger('accesslog')
       self.logger = logger

Twisted has its own logging framework and the Twisted Web server logs to this 
framework and not the standard Python one. So we have to hook into it, which 
this code exactly does.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Absolute URLs and Named vs. Unnamed Adapters

2005-04-21 Thread Stephan Richter
On Friday 15 April 2005 15:26, Brad Bollenbach wrote:
 I'm writing a bug tracker in Zope 3 called Malone:

     https://launchpad.ubuntu.com/malone/products/malone

 It's part of a larger suite of tools to help people develop, translate
 and distribute open source software. It's the bug tracker that is
 being used by some Ubuntu Linux maintainers, and will eventually be
 adopted by the official Ubuntu maintainer team in the not-so-distant
 future.

Hi Brad,

Have you looked at the bug tracker in the Zope 3 core? It has some advanced 
project-management and completion functions that should be very useful, 
especially for a big project like Ubuntu.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Building standalone ZPT from Zope 3 using zpkgtools

2005-04-25 Thread Stephan Richter
On Friday 22 April 2005 10:18, Martijn Faassen wrote:
 Stephan Richter wrote:
 [snip]

   I think of zpkgtools as a prototype for extensions that are necessary
   for distutils.

 Is it the Zope project's job to extend distutils, though? I mean,
 developing something new is nice, but there's a lot of a new stuff on
 our plate already, isn't there?

I wish it wouldn't and that distutils would provide what we need out of the 
box. But it does not, so we have no choice. I think zpkgtools will serve as a 
nice prototype for a distutils extension later on, like zLog did for logging.

  Overall, I think that zpkgtools is very successful. And it is not
  Zope-specific! Twisted could use it too.

 It's Zope specific as only the Zope projects are using it, as far as I
 am aware. Lots of people could use it, but I'm worried that without
 significant effort to promote and adjust this, it won't happen.

Well, but we do not have the manpower to promote it. I think there are a lot 
of technologies in Zope 3 that could use promotion in its own right.

 I mean, Twisted could use ZCML too, but they're not, and I doubt they're
 likely to, and they're the most likely project to use ZCML of them all,
 as they use zope.interface already. Granted zpkgtools is easier to
 distribute independently, but then again, for distributing ZCML we have
 zpktgtools. :)

Twisted has this idea that configuration should be done in Python. I 
personally think this was a big mistake! Their adapter registrations are all 
over the source files, which makes it impossible to replace an existing 
adapter with another. 

 Perhaps I'm wrong and zpkgtools takes time out of our hands overall
 already, including maintenance and learning curve.

It takes a lot of time off our hands! I was very surprised last week, how 
easily I was able to get the release building going.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] site.zcml (ftesting.zcml) extension

2005-04-25 Thread Stephan Richter
On Monday 25 April 2005 09:03, Dominik Huber wrote:
 Problem: A framework package 'b.x' registers a dedicated menu 'b_views'.
 A package 'a.x' using 'b.x' should be able to register menu items
 refering 'b_views'. The initialisation will fail because 'a.x' is loaded
 before 'b.x' and therefore  'a.x' cant register any view to 'b_views'
 because the menu does not exists yet.

I am pretty sure we had a solution for this problem already. I think you 
simply do:

include file=a-configure.zcml

inside b-configure.zcml in package-includes.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] site.zcml (ftesting.zcml) extension

2005-04-25 Thread Stephan Richter
On Monday 25 April 2005 10:52, Roger Ineichen wrote:
 The alphabtice order of configure.zcml like Stephan proposed
 is one solution. But I like a more explicit solution for this
 like Dominik proposed with a additional application level
 for 3rd party packages.

I did not propose to have alphabetical order. I said to write in 
a-configure.zcml:

configure
  include file=b-configure.zcml /
  include package=apps/a /
/configure

This used to work. I really do not want to add yet another layer, because it 
will never end.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] site.zcml (ftesting.zcml) extension

2005-04-25 Thread Stephan Richter
On Monday 25 April 2005 11:08, Dominik Huber wrote:
 Stephan Richter wrote:
 On Monday 25 April 2005 09:03, Dominik Huber wrote:
 Problem: A framework package 'b.x' registers a dedicated menu 'b_views'.
 A package 'a.x' using 'b.x' should be able to register menu items
 refering 'b_views'. The initialisation will fail because 'a.x' is loaded
 before 'b.x' and therefore  'a.x' cant register any view to 'b_views'
 because the menu does not exists yet.
 
 I am pretty sure we had a solution for this problem already. I think you
 simply do:
 
 include file=a-configure.zcml
 
 inside b-configure.zcml in package-includes.

 'a' does not know 'b', but 'b' depends on 'a'.

It does not have to; only b knows about a. Unless we cannot find a better 
solution (which I really want to try hard finding), the suggested solution 
right now is not acceptable. Dominik, please try my solution first.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Input widgets do too much

2005-04-25 Thread Stephan Richter
On Monday 25 April 2005 17:44, Jim Fulton wrote:
 Thoughts? Questions?  Any objections to getting this into
 3.1?  If not, I'll write a more detailed proposal.

I thought Gary was working on a complete rewrite for 3.2 anyways, or was that 
just related to forms? I am okay with making this a change in 3.1. As long as 
some of the very critical bugs get fixed in the trunk, I am not inclined 
moving forward with 3.1 anyways.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Issue 301

2005-04-28 Thread Stephan Richter
On Thursday 28 April 2005 03:59, Dmitry Vasiliev wrote:
 Ok, I fully agree with this changes, but then I have one more question.
 Should we do this changes on ZopeX3.0 branch? That about backward
 compatibility for 3.0, for example if someone use code like this: 'h1
 i18n:name=H1foo/h1'?

Okay, let's not backport this bug fix.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Issue 301

2005-04-29 Thread Stephan Richter
On Friday 29 April 2005 09:38, Dmitry Vasiliev wrote:
 Ugh... Seems like the test29.html was wrong.

Yes, I agree with your assessment!

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] lxml / elementtre inclusion

2005-05-06 Thread Stephan Richter
On Friday 06 May 2005 10:46, Martijn Faassen wrote:
 If someone that is not interested in Zope 3 in the first place wrote a
 Python library we'd like to include, the relicensing hurdle will be
 larger, though. What's to be done with Twisted integration, for instance?

We'll add the MIT license. Maybe we will later be able to convince the 
developers to dual-license it for us. They do not have that many 
contributors.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Persistent Cache?

2005-05-07 Thread Stephan Richter
On Friday 06 May 2005 12:17, Joseph Kocherhans wrote:
 I've written reporting application in zope3. It actually worked out
 really well since I needed to have reports on certain types of objects,
 views worked very well. Anyhow, I implemented RAM caching, but I'd also
 like to add a persistent cache. The data doesn't change all that often,
 but it should be refreshable by users. I've thought about either
 implementing a file cache, or a cache that would write to temporary sql
 tables. I was wondering if anyone had attempted a file cache, and/or if
 they had any warnings/insight to share.

Did you write your own cache or use the RAM cache coming with Zope 3? Note 
that the interface for a caching utility is really easy, so it should be no 
problem to implement a file, ZODB or SQL cache. Note that I would write a 
ZODB cache myself.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Re: SVN: Zope3/trunk/src/zope/app/ Removed all cases of bogus use 'i18n:translate'

2005-05-07 Thread Stephan Richter
On Saturday 07 May 2005 14:39, Philipp von Weitershausen wrote:
    Removed all cases of bogus use 'i18n:translate'

 I think most of these cases are not at all bogus. See below.

I already told Dimitry, which triggered his recent mail. He will fix this, 
once the discussion on Zope3-Dev comes to a conclusion.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Re: MessageID's automatic translation in TAL

2005-05-08 Thread Stephan Richter
On Sunday 08 May 2005 10:01, Philipp von Weitershausen wrote:
 Thoughts?

I don't mind the two semantics. I just think that if tal:content and an 
explicit message id in i18n:translate is specified, an error should be 
raised. I bet you it does already.

Also, we need a solution now, not one that goes through the proposal process 
first. Also, please note that it is *very* difficult to implement new 
attributes in TAL, so someone would have to sign up implementing this; it 
would certainly not be me.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] tal:replace=default question

2005-05-13 Thread Stephan Richter
On Friday 13 May 2005 10:34, Paul Winkler wrote:
 On Fri, May 13, 2005 at 05:39:56PM +0400, Dmitry Vasiliev wrote:
  Shouldn't 'span tal:replace=default42/span' return '42' instead of
  'span42/span'?
 
  I think about these cases:
 
  'span tal:content=default42/span'  =  'span42/span'
  'span tal:replace=default42/span'  =  '42'

 +1. IMHO the current behavior is wrong. replace should always replace
 the element, no exceptions.
 (Zope 2 has the same bug, I just checked.)

 Can you file a collector issue for this?

He just told us on #zope3-dev that he is almost done fixing it on the Zope 3 
branch. Dimitry recently did some other great bug-fixes in TAL that need 
back-porting to Zope 2.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Re: [Zope3 / ECM] : Project launched !

2005-05-17 Thread Stephan Richter
On Tuesday 17 May 2005 08:43, Martijn Faassen wrote:
 Jean-Marc Orliaguet wrote:
  Maik Röder wrote:
 Before endorsing the project I just need to be sure that there is
 a healthy community.
 
  catch-22 :-)  to have a healthy community you need a project that is not
  just vapourware and more than just people with good intentions who'll
  wait until others do something. You need commitment from all parts.

 It's indeed a chicken and egg situation; healthy communities give people
 enough trust to do a commitment and commitment from people and
 organizations tends to build healthy communities.

I think the easiest way to earn trust is for the initiators to reach beyond 
their comfort level by looking at competing projects. I know that this is 
hard, since one is always convinced that his/her project is the best one. (I 
feel the same way. ;-) To be more concrete, I think a good first step would 
be to create a matrix of features in various Zope-based CMSs. This might also 
demonstrate the parts the community wants to work on first.

Oh, I almost forgot. Even though I have said this many times before, please 
have a look at Tiks. It is a Zope 3 based CMS that is already in production. 
It might not be what you want, but I am pretty sure it has solved some tricky 
problems already. It also follows all the Zope 3 coding guidelines (as far as 
I can tell), including doctests.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] events: getting the context of objects

2005-05-20 Thread Stephan Richter
On Friday 20 May 2005 06:15, Jean-Marc Orliaguet wrote:
 I want to get the location about created object through event
 notifications, but there is never enough context (there  is Not enough
 context to determine location root, ...)

At the time an object is created it has no location, since it has not been 
added to anything. You really want to listen to the ObjectAddedEvent, which 
is triggered when an object is added to a container.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Issue 316 -- Zope3X test.py truncates path with dir=

2005-05-26 Thread Stephan Richter
On Wednesday 25 May 2005 17:11, Stéphane Brunet wrote:
 Which bug (or task) do you suggest me to investigate ? (something  not
 too obscure... )

I think the following bugs would be good to look at: 302, 296, 298, 397

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Re: Workflow UI?

2005-05-27 Thread Stephan Richter
On Monday 23 May 2005 12:01, Julien Anguenot wrote:
 I think it's a bad idea thinking about Zope persistent definitions at
 this stage. I'd rather work with xpdl files, read them on runtime and
 put them in a *non* persistent XPDL definitions registry. The rest can
 be managed with Jawe for instance.
 We are already thinking about an eclipse app wich could be a little bit
 simplier than Jawe for end-users on the long term.

I'll note here that I will be developing local/persistent workflow definitions 
for the SchoolTool project, since we really need it there in a certain use 
case.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Problem with partialAnnotatableAdapters

2005-05-27 Thread Stephan Richter
On Thursday 19 May 2005 13:45, Florian Lindner wrote:
  File /home/florian/Zope3/src/zope/tales/tales.py, line 698, in evaluate
   return expression(self)
  File /home/florian/Zope3/src/zope/tales/expressions.py, line 204, in
 __call__
   return self._eval(econtext)
  File /home/florian/Zope3/src/zope/tales/expressions.py, line 198, in
 _eval return ob()
  File
 /home/florian/Zope3/src/zope/app/dublincore/browser/metadataedit.py, line
 37, in edit
   dc.title = unicode(request['dctitle'])
 ForbiddenAttribute: ('title',
 zope.app.dublincore.annotatableadapter.ZDCPartialAnnotatableAdapter object
 at 0xb2a5a12c)
 127.0.0.1 - zope.manager [19/May/2005:19:38:34 +0200]
 POST /cs/home/zope.manager/testfolder/Link/@@EditMetaData.html HTTP/1.1
 500 316
 http://localhost:8080/cs/home/zope.manager/testfolder/Link/@@EditMetaData.
html Mozilla/5.0 (compatible; Konqueror/3.4; Linux) KHTML/3.4.0 (like
 Gecko)

This is because the ZDCPartialAnnotatableAdapter has not the correct security 
settings.

A totally different solution is provided by the Wiki and Bugtracker, that uses 
properties to implement the title on the object and the data is simply stored 
in the annotations.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] IService

2005-05-27 Thread Stephan Richter
On Thursday 14 April 2005 05:52, Adam Groszer wrote:
 I just tried the messageboard step08 example from Stephan's book.
 (Win32/current trunk) I know that the Service concept is deprecated,
 but I ran into an exception:

   File Y:\zope\svn_zope3\src\zope\app\site\service.py, line 48, in
 __init__ super(ServiceRegistration, self).__init__(name, IService, path)
 NameError: global name 'IService' is not defined
 127.0.0.1 - zope.manager [14/Apr/2005:11:20:52 +0200] POST
 /+/AddMessageBoard.h tml%3D HTTP/1.1 500 311
 http://localhost:8080/+/AddMessageBoard.html=; Mozill a/5.0 (Windows; U;
 Windows NT 5.0; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2

Thanks for the report. I have fixed it now in the trunk. Note that the book is 
currently only certified for X3.0. However, before the 3.1 release, I will 
ensure that all examples will work.

BTW, out of curiosity, did step 1-7 work without troubles on the trunk? If so, 
that would be amazing! :-)

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Re: Workflow UI?

2005-05-30 Thread Stephan Richter
On Saturday 28 May 2005 09:55, Julien Anguenot wrote:
 Can we have your use cases ?

Administrators need to be able to manipulate workflow definitions via an 
interface online, so that manipulating XML files is definitely not an option. 
Also, those administrators only deal with all of this on a very high level 
and its the system's task to keep integrety.

But I have to play around with this some more, before I can see the full 
picture.

 Do you plan to add this to the zope.wfmc trunk ?

eventually, I plan to put it into zope.app.wfmc.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Python version

2005-06-05 Thread Stephan Richter
On Saturday 04 June 2005 04:06, E. Frerich wrote:
 The runzope script doesn't include the python version checking like z3.py.
 Do we need the same testing in runzope?

Usually runzope is used after the installation process, where you had to 
specify the Python version.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



[Zope3-dev] Feature Freeze on Trunk

2005-06-18 Thread Stephan Richter
Hi everyone,

to make the life of our active bug fixers easier, I have decided *not* to make 
a branch for 3.1 yet. So, just to refresh your memory: 

*The trunk is in feature freeze!*

... till the branch is made!

I am open to create the branch any time, if you have features that you really 
want to add. But as far as I know, noone but me and Michael (twisted 
integration) has something large in the pipeline.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] twisted integration? ( was Re: Feature Freeze on Trunk )

2005-06-18 Thread Stephan Richter
On Saturday 18 June 2005 15:23, Corey wrote:
 On Saturday 18 June 2005 12:09 pm, Stephan Richter wrote:
 snip

  noone but me and Michael (twisted integration) has something large in the
  pipeline.

 That sounds really cool - is there any material online where I can find
 more info regarding the plans for this?

Just check out the srichter-twisted-integration branch. If the twisted trunk 
did not change too much recently, then it should just work.

There are even some cool goodies there:

- SSL support

- A reactor-based scheduler, similar to cron.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Utility Registration was:RE: [Zope3-Users] pluggableauthentication utility

2005-06-23 Thread Stephan Richter
On Saturday 18 June 2005 13:51, Garrett Smith wrote:
 Something like this perhaps:

 class ISimplePAU(Interface):
   authentication = Choice(values=('HTTP-Auth', 'Session'))
   allowUserChangeOnUnauthorized = Bool()
   principals = Attribute(A PrincipalsFolder plugin.)

I don't like that for the same reasons as Roger did. I think some 
wizard-framework would be much more powerful. It would also solve the problem 
for all complex components and not just the PAU. 

That said, the tricky part would be to provide not only a good UI for this, 
but also a good Python API, so that you can make use of the wizard via the 
Web and Python, which is very important to its success. For example, I think 
the new preference package is very powerful, since it makes it very simple to 
be used in Python, TALES and via Web pages.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



[Zope3-dev] Re: Utility Registration was:RE: [Zope3-Users] pluggable authentication utility

2005-06-23 Thread Stephan Richter
On Thursday 16 June 2005 07:11, Roger Ineichen wrote:
 What do yo think about that? Any other ideas?

I would not create a new directive. Maybe those policies or wizards can be 
registered as complex factories? This would at least be the right pattern for 
a Python API. How we would develop a nice Web UI needs some thinking.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] zope.component.bbb.interfaces

2005-06-23 Thread Stephan Richter
On Sunday 12 June 2005 06:43, Philipp von Weitershausen wrote:
 I just came across a couple of places where the IView interface is used,
 e.g. IWidget and IAdding. IView was moved from zope.component.interfaces
 to zope.component.bbb.interfaces which contains a couple of other
 interfaces, such as IViewFactory, which is used throughout the Zope3
 sources.

 My understanding of a bbb module/package is that things imported from
 there are deprecated. However, there is neither a DeprecationWarning
 raised nor a comment or docstring explaining that they are deprecated,
 let alone explain WHY they would be deprecated. Also, their ongoing use
 in the Zope 3 sources lets me believe that they might not be deprecated
 at all.

 What's the deal with these interfaces?

It is strange indeed that we do not see deprecation warnings. Maybe the code 
is not used or the code that uses them itself is BBB? Anyways, any interface 
in the zope.component.bbb pacakge is deprecated and should not appear in the 
code anymore. If someone would like to do this cleaning, it would be great.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Traversal permission vs read permission

2005-06-23 Thread Stephan Richter
On Monday 20 June 2005 14:04, Garrett Smith wrote:
 I'd like to be able to grant permission to traverse a folder, but not
 permission to view folder contents.

 This could be handled in Zope by making
 container.traversal.ItemTraverser a trusted adapter and protecting it
 with a zope.Traverse permission.

This looks good. Note that trusted adapters aren't around that much, and noone 
has yet reviewed this code since the addition.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Updating the docutils package

2005-07-14 Thread Stephan Richter
On Thursday 14 July 2005 01:29, Martijn Pieters wrote:
 I'd like to update the horribly outdated version of docutils in the
 Zope3 tree (version 0.3.0) to the latest resease (version 0.3.9).

+1

 In fact, I have already done so locally including fixing all the
 relevant tests and refactoring the zope.app.render.rest module
 (simplification and removal of functionality now available upstream).

Great!

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Alternate schema types

2005-07-15 Thread Stephan Richter
On Tuesday 12 July 2005 11:01, Tres Seaver wrote:
 I'm attaching a diff which sketches what such a refactoring would look
 like.  Comments?

I agree with Gary, we should not waste more time on zope.app.form, now that 
formlib is released.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Sending patch

2005-07-15 Thread Stephan Richter
On Thursday 23 June 2005 23:14, Stéphane Brunet wrote:
 I also wanted to add a followup (with a small patch) to Issue 302 but I
 have not enough permissions to do that. How should I proceed ?

Sorry for the delay, but could you send the patch via E-mail?

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] zope.app.appsetup

2005-07-15 Thread Stephan Richter
On Saturday 02 July 2005 04:17, os wrote:
 I want use ensureUtility from zope.app.appsetup.bootstrap for easy
 install my application(as site). But raise problem: my utilities always
 install  to top/++etc++site/default.
 For solve the problem i replacing
 /++etc++site/default ==(del first slash)== ++etc++site/default in
 function getSiteManagerDefault. I run all zope-tests = OK.
 Q: Do you can this change in zope.app.appsetup.bootstrap?

zope.app.appsetup. bootstrap does not contain public API. And it really needs 
some serious refactoring. So we do not encourage people to use these 
functions.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Bug Tracker

2005-07-15 Thread Stephan Richter
On Wednesday 06 July 2005 06:32, Imaap wrote:
 It's a big hack, BUT at least works, and turns the bugtracker online
 again! Suggestions for a better fix?

Your solution depends on the PrincipalFolder implementation as it assumes that 
the queriable is a container or at least an object that can be iterated over.

The best would be the following:

0. Get rid of the login attribute of the User term entry. It is not needed. We 
should always use the id or title of the principal only. The login is 
protected information.

1. Make the user vocabulary a complex managed vocabulary to which you can add 
new users using the queriables.

2. The way you can add new users to the user vocabulary is via the queriable 
UI as it is already implemented in the grant view.

If you have questions, feel free to E-mail me.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Display widget registration missing?

2005-07-15 Thread Stephan Richter
On Wednesday 13 July 2005 05:35, Jan-Wijbrand Kolman wrote:
 Or is there a good reason for not having this registration for a display
 widget for set/vocabulary combinations?

See issue 296. :-)

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] ServerControlForm.html / Restart, Shutdown does not work

2005-07-17 Thread Stephan Richter
On Saturday 16 July 2005 03:48, Adam Groszer wrote:
 If I click Shutdown on the ServerControlForm.html it does not
 shutdown Zope, but responds with a simple You shut down the server.
 message in the browser and Zope is still working.

 I think the problem lies in the modified ThreadedAsync.

Oh, that seems strange. However, I propose not to fix the bug, since we will 
switch to Twisted in 3.2 and there it should definitely work.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Page Template oddity

2005-07-23 Thread Stephan Richter
On Saturday 23 July 2005 02:42, Andreas Reuleaux wrote:
 ul is not allowed within a p tag, not even in HTML 4.01 Transitional

Thanks a lot! I did not know this!

Even though I find this restriction stupid. I often have bullet list like this 
as part of my paragraph, even when I non-technical documents. But that's 
beside the point. 

Thank god nothing is broken in PT. ;-)
 
Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



[Zope3-dev] Zope 3 Bug Day on Friday

2005-07-25 Thread Stephan Richter
Hi everyone,

as discussed on IRC last week, we are planning to have a bug day this Friday, 
July 29, 2005. 

The goal of this bug day is to resolve or downrate all outstanding bugs, so 
that we can make a Zope 3.1 RC1 release soon thereafter.

It would be really great, if you could join us! The more people we have, the 
faster it should be all done! :-)

Note: I will lift the feature freeze on the trunk after the bug day and create 
a 3.1 branch!

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



[Zope3-dev] mechtest-based README.txt

2005-07-26 Thread Stephan Richter
Hi all,

FYI, Benji and I are discussing putting mechanize and mechtest into the Zope 3 
trunk (we can do this, since it is not in the release). Attached you can find 
a README.txt based on mechtest I wrote for some SchoolTool development I am 
doing.

I hope you are getting as excited about this as I am by looking at the 
demo. :-)

mechtest URL: svn+ssh://svnzope/repos/main/Sandbox/zc/mechtest

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
=
Level Management and Academic Workflow via the Web UI
=

This document presents the management of levels and the academic career of a
student via a promotion workflow from the perspective of the Web UI.

   from zc.mechtest.testing import Browser
   browser = Browser()
   browser.addHeader('Authorization', 'Basic mgr:mgrpw')

   browser.open(
  ... 'http://localhost/contents.html?'
  ... 'type_name=BrowserAdd__schooltool.app.SchoolToolApplication'
  ... 'new_value=test')

   test in browser.contents
  True
   browser.click('test')


Level Management


First we create a couple of levels.

   browser.click('Levels')

   browser.click('New Level')
   browser.controls['field.title'] = u'1st Grade'
   browser.controls['field.isInitial'] = True
   browser.controls['add_input_name'] = u'level1'
   browser.click('Add')

   '1st Grade' in browser.contents
  True

   browser.click('New Level')
   browser.controls['field.title'] = u'2nd Grade'
   browser.controls['field.isInitial'] = False
   browser.controls['add_input_name'] = u'level2'
   browser.click('Add')

   '2nd Grade' in browser.contents
  True

Since we did not connect the two levels, validation should fail:

   browser.click('Validate Levels')
   browser.click('Validate')

   One or more disconnected levels detected. in browser.contents
  True
   2nd Grade in browser.contents
  True

If we connect `level1` to `level2` and also `level2` to `level1`, we get a
loop validation error:

   browser.click('Levels')
   browser.click('1st Grade')
   browser.click('Edit Info')
   browser.controls['field.nextLevel'] = ['level2']
   browser.click('Apply')

   browser.click('Levels')
   browser.click('2nd Grade')
   browser.click('Edit Info')
   browser.controls['field.nextLevel'] = ['level1']
   browser.click('Apply')
  
   browser.click('Levels')
   browser.click('Validate Levels')
   browser.click('Validate')

   A Level Loop Error was detected. in browser.contents
  True
   print browser.contents
  BLANKLINE
  ...
  Simply do not specify level
  em1st Grade/em
  ...

Okay, so let's do what the error tells us and remove the link in `level2` to
`level1`:

   browser.click('Levels')
   browser.click('2nd Grade')
   browser.click('Edit Info')
   browser.controls['field.nextLevel'] = []
   browser.click('Apply')

   browser.click('Levels')
   browser.click('Validate Levels')
   browser.click('Validate')

   print browser.contents
  BLANKLINE
  ...
  No errors were detected.
  ...


The Academic Career of a Student


Before we can do anything, we have to create a student:

   import StringIO

   browser.click('Persons')
   browser.click('New Person')

   browser.controls['field.title'] = 'Stephan Richter'
   browser.controls['field.username'] = 'srichter'
   browser.controls['field.password'] = 'foobar'
   browser.controls['field.verify_password'] = 'foobar'
   browser.controls['field.photo'] = StringIO.StringIO()
   browser.click('Add')

   'Stephan Richter' in browser.contents
  True

Now we go to the manager group, and walk the student through the academic
career:

   browser.click('Groups')
   browser.click('Manager')
   browser.click('Student Management')

We now select the student which we want to enroll in the school.

   form = browser.forms['enroll']
   ctrl = browser.getControl('ids:list', form=form.mech_form) 
   ctrl.mech_control.value = ['srichter']
   browser.click('Enroll')

   print browser.contents
  BLANKLINE
  ...
  div id=messageStudents successfully enrolled./div
  ...
  option value=level11st Grade/option
  option value=level22nd Grade/option
  ...

Now that the student is enrolled, we can initialize him at a particular
level. Our student will enter the first grade:

   form = browser.forms['initialize']
   ctrl = browser.getControl('ids:list', form=form.mech_form) 
   id = ctrl.options[0]
   ctrl.mech_control.value = [id]
   browser.controls[id+'.level'] = ['level1']
   browser.click('Apply')

   print browser.contents
  BLANKLINE
  ...
  div id=messageStudent processes successfully updated./div
  ...
  div class=value
  select name=...outcome size=1 
  option selected=selected value=passpass/option
  option value=failfail/option
  option value=withdrawwithdraw/option
  /select
  /div
  ...

The student passes the first grade

   form

[Zope3-dev] Re: [Zope3-Users] Re: what is standard_macros Zope 2.3?

2005-07-29 Thread Stephan Richter
On Friday 29 July 2005 08:26, Lennart Regebro wrote:
          metal:use-macro=context/@@standard_macros/page
 
          where can i find this standard_macros?.

 It's a standard part of Zope3...

Defined in zope/app/rotterdam for the Rotterdam skin.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Re: [Zope3-checkins] SVN: Zope3/trunk/src/zope/wfmc/process.py Developed nicer, human-readable representations of several classes. Hope

2005-07-29 Thread Stephan Richter
On Friday 29 July 2005 13:50, Albertas Agejevas wrote:
 On Fri, Jul 29, 2005 at 09:12:14AM -0400, Benji York wrote:
  What's the reasoning for using angle brackets on some, and not on the
  others?  (I personally like angle brackets better, to be consistent with
  Python.)

 If you can, you make repr to tell you how to make and identical
 object.  For example:

    import datetime
    datetime.datetime.now()
   datetime.datetime(2005, 7, 29, 20, 48, 32, 346507)
    from sets import Set
    Set([1,2,3])
   Set([1, 2, 3])

 If you can't do that, you use angle brackets and an address:

    object()
   object object at 0xb7e71438

Nice convention. I keep that in mind.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



[Zope3-dev] Zope 3 Repository State

2005-07-29 Thread Stephan Richter
Hello everyone,

as promised, I have just created the Zope 3.1 branch from which all Zope 3.1.x 
releases will be created.

This also means that as of now the feature freeze on the trunk is lifted and 
people should feel free to check in new features into the trunk for Zope 3.2. 
We will also require Python 2.4 for Zope 3.2, so feel free to use new Python 
features such as decorators.

Trunk check-in policy and development notes:

- We are switching to time-based release cycle, which means that all checked 
in code must be beta quality, if it is to be considered to be in the release. 
Zope 3.2 wil be released in December, that means we will freeze the trunk 
mid-October for new features.

- We need to become much better about fixing bugs. I think we should make Bug 
Days a regular event.

- We are switching back to a proposal-based development cycle. This means that 
you must have an approved proposal online before the code can be checked into 
the trunk.

Thanks for reading!

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] zope.testbrowser

2005-08-01 Thread Stephan Richter
On Monday 01 August 2005 09:04, Benji York wrote:
 Now that 3.1 has been branched, I was planning on merging
 zope.testbrowser into the trunk, but because it depends on 2.4 I'm
 unsure about that now.  Should I just merge it and back port it to 2.3
 if necessary, or should I just wait and see?

We need to write a proposal for the inclusion. We can discuss the Python 
version in it. I am writing a switch to Python 2.4 proposal right now, so you 
can reference it once its online.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



[Zope3-dev] Migration to Python 2.4 Proposal

2005-08-01 Thread Stephan Richter
Hi,

I just wrote a small proposal for the migration to Python 2.4:

http://dev.zope.org/Zope3/MigrationToPython24

Please feel free to add any facts or analysis that I missed and comment on the 
proposal.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] How to add Script Content type in Zope 3.0

2005-08-01 Thread Stephan Richter
On Thursday 28 July 2005 09:13, nagendra kumar wrote:
 Hi,
 How can i add the 2.7.x series Script(Python) objects in zope 3.0

That is not possible.

 I kept python page and interpreter folders in
 site-packages\zope\app folder

Python Pages are not supported in the releases. You might have better luck 
getting them working on the trunk.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



[Zope3-dev] Release Issues

2005-08-01 Thread Stephan Richter
Hi everyone,

I was just putting together the release and noticed a problem. zopetest.py 
does not honor the Python setting I specified during ./configure. It always 
selects /usr/bin/python.

I noticed this because my /usr/bin/python/ has its own pytz version, which 
differs from the Zope 3 one and I got a failure. This in itself is another 
issue, because the Zope 3 specific packages should override the general 
Python ones.

Unfortunately I am stuck and do not know how to solve this. Anyone?

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Release Issues

2005-08-02 Thread Stephan Richter
On Monday 01 August 2005 23:26, Benji York wrote:
 Aren't the Zope-specific entries added to the beginning of sys.path,
 that way Zope-provided packages are be found first?

Ah, right I thought so too. But in zopetest is is appended, so that's the 
first problem solved.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] unittest failure in svn trunk

2005-08-04 Thread Stephan Richter
On Thursday 04 August 2005 04:24, Wichert Akkerman wrote:
 Failure in test testRunIgnoresParentSignals
 (zdaemon.tests.testzdrun.ZDaemonTests) Traceback (most recent call last):
   File /local/sources/svn/zope/Zope3/src/zdaemon/tests/testzdrun.py, line
 237, in testRunIgnoresParentSignals self.assert_(is_started, spawned
 process failed to start in a minute) File
 /usr/lib/python2.3/unittest.py, line 278, in failUnless
     if not expr: raise self.failureException, msg
 AssertionError: spawned process failed to start in a minute

I always ignore this one ;-)

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] unittest failure in svn trunk

2005-08-04 Thread Stephan Richter
On Thursday 04 August 2005 09:52, Julien Anguenot wrote:
 Wichert Akkerman wrote:
  Previously Stephan Richter wrote:
 I always ignore this one ;-)
 
  If it is something to be ignored shouldn't be disabled? Having a known
  failure in the unittests is kind of bad.
 
  Wichert.

 I doesn't fail for me on a Linux box.

That's the reason I ignore it. It fails only sporadically. I think we 
investigated it once before and did not come to a conclusion.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] unittest failure in svn trunk

2005-08-04 Thread Stephan Richter
On Thursday 04 August 2005 11:24, Tim Peters wrote:
 [EMAIL PROTECTED] Zope3]$ uname -a
 Linux ds9 2.4.22-1.2199.nptlsmp #1 SMP Wed Aug 4 11:48:29 EDT 2004
 i686 i686 i386 GNU/Linux
 [EMAIL PROTECTED] Zope3]$ python test.py -vvuL --all . Ignores
 ...

 and it passed 400 times in a row (at which point I killed it).

Good to know that the tests pass in a loop.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



[Zope3-dev] New Proposals Online

2005-08-04 Thread Stephan Richter
Hi everyone,

I just posted two developer documentation related proposals:

http://www.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/DeveloperMode
http://www.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/IntrospectorNG

Please feel free to comment, question and critique.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Problem with zope.app.security._protections for tests

2005-08-08 Thread Stephan Richter
On Sunday 07 August 2005 17:52, Gary Poster wrote:
 Thoughts?  Alternate suggestions (I have a few, but this is my  
 favorite)?  Stephan, do you want this fix in 3.1, assuming it goes  
 quickly and smoothly?

It's definitely too late for 3.1. This really requires a proposal, so people 
can comment on it.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Deactivate FTP server

2005-08-12 Thread Stephan Richter
On Friday 12 August 2005 08:41, Julien Anguenot wrote:
 Objections to deactivate the FTP server by default on the trunk ?

+1

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Zope3 forum

2005-08-16 Thread Stephan Richter
On Tuesday 16 August 2005 04:45, Arthur (ccube) wrote:
 Is there any CMFBoard like forum for Zope3? or anyone is developing it?

No, I do not think so, but the messageboard package that is developed as part 
of my book has a couple of very cool features, so this might be a good 
starting point.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



[Zope3-dev] Zope 3.1.0 RC 2 released!

2005-08-28 Thread Stephan Richter
The Zope 3 development team is proud to announce Zope 3.1.0 candidate 2.

Zope 3 is the next major Zope release and has been written from scratch based
on the latest software design patterns and the experiences of Zope 2.

It is in our opinion that Zope 3.1 is more than ready for production use,
which is why we decided to drop the 'X' for experimental from the name. We
will also continue to work on making the transition between Zope 2 and Zope 3
as smooth as possible. As a first step, Zope 2.8 includes Zope 3 features in
the form of Five.

Now that we have a release that we would like to declare stable next week, we
are looking for translators, who translate Zope 3 into their favorite
language! We are utilizing the Rosetta system from Ubuntu for managing those
translations. If you are not familiar with Rosetta, please send us a mail to
zope3-dev@zope.org and we get you set up.


Downloads

  http://zope.org/Products/Zope3/

  Installation instructions for both Windows and Un*x/Linux are now available
  in the top level 'README.txt' file of the distribution. The binary installer
  is recommended for Windows.

  Zope 3.1 requires Python 2.3.5 or 2.4.1 to run. You must also have zlib
  installed on your system.

Changes Since 3.1.0c1

  - Removed an untested missfeature that can cause infinite loops in
principalfolder's Principal class.

  - Switch to METAL 1.1, which solved a serious bug.

  - Grant view cleaned up.

  - Add missing id attribute to select widget.

  - pytz has been updated.

  - Some code optimization in the HTTP factory of the publisher and
ftesting framework.

  - Multiple headers having the same name are correctly handled now.

  - Now SQL operation parameters will be properly encoded before executing.

  - More carefully handle case when SQL parameters is a tuple or a list of
a tuples.

  - All request factories can now be configured.

  - Script and Installation documentation improvements.

  - Fixed several bugs in API doc. Also provided some flexibility with the
UI.

  - Fix to source widget hasInput and associated changes

  - Updated Build System.

  - Fix I18n bugs. Updated Russian and German translations.

Most Important Changes Since 3.0

  - New Pluggable Authentication Utility (PAU), which is similar in
philosophy to the Zope 2 PAS. The following features are available in
the in the basic PAU facility:

+ Credentials Plugins: Basic HTTP Auth, Session

+ Authenticator Plugins: Principal Folder, Group Folder

For a detailed description of the pluggable authentication utility,
see 'zope/app/authentication/README.txt'.

  - Major simplifications to the component architecture:

+ Removal of the concept of a service. All outstanding services were
  converted to utilities: Error Reporting, FSSync, Authentication.

+ Site Managers are global and local now; adapters and utilties are
  directly registered with the site manager. Now global and local
  component registration and lookup behaves very similar.

+ Local registrations can now only have two states: active and
  inactive. This simplified the code so much, that 'zope.app.utility',
  'zope.app.registration' and 'zope.app.site' were all merged into
  'zope.app.component'.

+ Implemented menus as utilities. The API also supports sub-menus now.

+ Implemented views as adapters. Skins and layers are now simply
  interfaces that the request provides.

  - Added an integer-id facility for assigning integer identifiers
to objects.

  - Added basic catalog and index frameworks.

  - Added sources, which are like vocabularies except that they
support very large collections of values that must be
searched, rather than browsed.

  - Created a new granting UI that allows advanced searching of
principal sources.

  - Implemented a generic user preferences systsem that was designed to be
easily used in TALES expressions and via Python code. Preferences can be
edited via 'http://localhost:8080/++preferences++/'. A demo of the
preferences can be found at::

  http://svn.zope.org/Zope3/trunk/src/zope/app/demo/skinpref/

  - ZCML now supports conditional directives using the 'zcml:condition'
attribute. The condition is of the form verb argument. Two verbs, 'have
feature' and 'installed module' are currently implemented. Features can be
declared via the 'meta:provides' directive.

  - Improved API doctool: Code Browser now shows interfaces, text files and
ZCML files; the new Book Module compiles all available doctext files into
an organized book; the new Type Module lets you browser all interface
types and discover interfaces that provide types; views are shown in the
interface details screen; views and adapters are categorized into
specific, extended and generic; user preferences allow you to customize
certain views; 3rd party modules can now be added to the Code Browser.

  - Improved 

Re: [Zope3-dev] Re: Get a template resource object from code.

2005-08-28 Thread Stephan Richter
Hi Johan,

why are you trying to misuse the system so hard? Can you provide us with your 
original use case?

On Tuesday 16 August 2005 18:23, Johan Carlsson wrote:
 1. Resources gets registered as adapters in the Global Site Manager.

Yep.

 2. The adapter is registerd to adapt from the current layer interface
 (defaults to IDefaultBrowserLayer) to the Interface interface (strange,
 why is that so I wounder?)

The Interface interface is just the default. Sometimes you want views to 
provide other interfaces.

 3. The layer interface I can look up byt calling:
 zapi.getUtility(ILayer, 'my_layer')

 Ok, fine. So from my View class I try the following:

          gsm=zapi.getGlobalSiteManager()
          layer = zapi.getUtility(ILayer, 'my_test')
          adapter=gsm.queryAdapter(layer, Interface, 'test_me.html')

This will not work, because layer is the actual layer interface. However, 
queryAdapter expects an object that provides the layer interface. This object 
is usually known as the request.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] [i18n] first draft for an update of the glossary

2005-08-28 Thread Stephan Richter
On Saturday 20 August 2005 19:08, Sebastien Douche wrote:
 after my first review of zope.po file, I propose this updated glossary
 (ie technical terms to translate in foreign languages). What do you
 think ?

I think this is a great start; I noticed a couple errors, but maybe you should 
just add this list to the I18n wiki.

http://www.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/Zope3Internationalization

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] How to resolve bi-directionally navigable association?

2005-08-28 Thread Stephan Richter
On Monday 08 August 2005 12:43, Adam Groszer wrote:
 class IItem(interface):
     unit = Object(
         title=uUnit,
         description=uUnit,
         required = False,
         schema=IUnit)

 class IUnit(interface):
     item = Object(
         title=uItem,
         description=uItem,
         required = False,
         schema=IItem)

 but obviously that does not work, I cannot define one before the
 other.

In IItem specify Interface as the schema. After you defined IUnit you can do 
something like:

IItem.getDescriptionFor('unit').schema = IUnit

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] How to proceed for user registration in zope3 framework

2005-08-28 Thread Stephan Richter
On Wednesday 17 August 2005 01:43, nagendra kumar wrote:
 I am developing a site which needs a user registration feature.
 Does any body worked on this feature in zope3 (or) how can i
 proceed for this feature? Please help regarding this issue.

Noone is working on this issue, however, I think it would be interesting to 
the Z3/ECM project. However, I don't know how I can help you get started with 
such a generic question.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] inherited security (and timezones)

2005-08-28 Thread Stephan Richter
On Thursday 25 August 2005 23:50, Gary Poster wrote:
 instead of this monkey patch (recorded for posterity, in case anyone  
 needs this now...or has a better suggestion)

 # XXX argh.
 import pytz.tzinfo
 from zope.security.checker import NamesChecker
 from zope.interface.common.idatetime import ITZInfo
 names = set(ITZInfo.names(all=True))
 names.add('zone')
 checker = NamesChecker(names)
 pytz.UTC.__Security_checker__ = checker
 pytz.tzinfo.BaseTzInfo.__Security_checker__ = checker
 # end argh.

You can always create a custom directive, which I think would be okay here.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] inherited security (and timezones)

2005-08-28 Thread Stephan Richter
On Thursday 25 August 2005 23:50, Gary Poster wrote:
 Jim mentioned to me a while ago that he was planning to have security  
 settings for classes inherit.  I was against it, because I thought  
 that like_class answered the use case sufficiently, explicitly, and  
 not overly annoyingly.

 However, in order to get pytz timezones--a large set of automatically  
 generated classes that potentially change every quarter--to do what  
 we want without that, I only see monkeypatches. :-/  So I'm +1 on  
 inherited security I guess.

I am +1, *if* it can be overwritten, which I think it would. On the other 
hand, this change would need to be extremely well documented. For example, 
imagine we give BTreeContainer some permission for its method, then pretty 
much all our containers will have those permissions. Sometimes I specifically 
do not declare a permission because I never want a certain method to be 
accessed. This would mean we would have to explicitly be able to turn off a 
permission in a derived class. Of course, I could just create a permission 
that is never given to any principal, something like zope.noaccess, which 
would be the opposite to zope.public.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] security problems with database adapters (second edition)

2005-08-28 Thread Stephan Richter
On Friday 26 August 2005 11:51, Velko Ivanov wrote:
 My question is, does this eventually mean, that ZopeConnection objects,
 which are created at run-time, are not security proxied and consequently
 unauthorized in all cases (except the system_user) and if yes, what
 should be done? I'm not familiar with the Zope3 environment and I don't
 know how and where objects get proxied.
 Or is there something I'm missing here ?

I think Dimitry addressed this problem. Is it still a problem? If so, do you 
have enough experience to produce a functional test demonstrating the 
problem?

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] [i18n] first draft for an update of the glossary

2005-08-28 Thread Stephan Richter
On Sunday 28 August 2005 18:13, Sebastien Douche wrote:
  but maybe you should just add this list to the I18n wiki.
  http://www.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/Zope3Int
 ernationalization

 Sorry, I can't log in on Wiki section.

 PS : Jim, Stephan said me that I should send a mail to you for getting
 superuser rights on the site.  It is really necessary?

Jim, he needs to become a privileged user, so he can edit the wiki.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Proposed widget/schema work for the Rivah sprint (Thursday and Friday this week)

2005-08-29 Thread Stephan Richter
On Monday 29 August 2005 15:30, Gary Poster wrote:
 We'll be doing some work on the widget/schema code at the Rivah  
 sprint, Thursday and Friday this week.  This email identifies the  
 possible tasks, and proposes the actual choice of work (short answer:  
 potentially all but the biggest, and last, 2).  Interested parties  
 are invited to comment and suggest, whether or not you plan to be at  
 the Rivah sprint.

I am open for any of them. However, I would be most interested in writing 
proposals on things that we want to get implemented in the near future, i.e. 
for Zope 3.2. We will have a unique combination of developers there, since 
all of the participants I know of have significant Zope 3 experience. If all 
developers there agree on an approach, it is very unlikely that anyone will 
have issues. On the other hand, I realize that writing proposals is a very, 
very dry and boring task for a sprint.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Proposed widget/schema work for the Rivah sprint (Thursday and Friday this week)

2005-08-29 Thread Stephan Richter
On Monday 29 August 2005 16:43, Jim Fulton wrote:
  I am open for any of them. However, I would be most interested in writing
  proposals on things that we want to get implemented in the near future,
  i.e. for Zope 3.2.

 I thought you and I would work on publisher-related topics.

Great! This is definitely my favorite topic too. :-) I am glad we are on the 
same line. :-)

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



[Zope3-dev] Re: Bug in i18n timezones (was Re: [Zope3-Users] obtaining time zone from http request)

2005-08-30 Thread Stephan Richter
On Monday 29 August 2005 21:53, Gary Poster wrote:
 Stephan, do you have any concerns about incorporating the Olson  
 information in 18n?  I suppose another approach would be to see if  
 Stuart would be willing to have pytz grow this mapping, and have the  
 i18n package depend on pytz.  I'd actually prefer that, if you and  
 Stuart agreed and were willing, since he already has his automatic  
 processing of the Olson database, and is already keeping up with the  
 Olson releases.

I would also prefer this mapping in the pytz package. But if Stuart does not 
want to do this, then we'll put it in zope.i18n somehow.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] catalog 'all documents' abstraction

2005-08-31 Thread Stephan Richter
On Wednesday 31 August 2005 05:41, Martijn Faassen wrote:
 Okay, this is clear. It's not that clear to me how to efficiently make a
 subscriber only handle one object type (I've been using the is this a
 IFoo? If not, return pattern at the start of subscribers), but that's
 another discussion.

The better pattern is:

Have a subscriber to your event E that sends out another event notification 
for (E, E.obj). Then you have many subscribers to the latter pair. Note that 
we are already doing this for object events.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] how-to fool XML-RPC publisher

2005-08-31 Thread Stephan Richter
On Tuesday 30 August 2005 11:55, Adam Groszer wrote:
 Is there any way to fool the Z3 XML-RPC publisher to unmarshall
 strings *always* as unicode? I think the problem is that xmlrpclib
 tries to convert all strings to str, but in Z3, all strings should be
 stored as unicode. Even better that zope.schema enforces unicode also.
 So my exposed methods would start with converting all necessary
 parameters to unicode.

If this is not done, I would consider it even to be a Zope 3 bug.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] how-to fool XML-RPC publisher

2005-08-31 Thread Stephan Richter
On Tuesday 30 August 2005 11:55, Adam Groszer wrote:
 Is there any way to fool the Z3 XML-RPC publisher to unmarshall
 strings *always* as unicode? I think the problem is that xmlrpclib
 tries to convert all strings to str, but in Z3, all strings should be
 stored as unicode. Even better that zope.schema enforces unicode also.
 So my exposed methods would start with converting all necessary
 parameters to unicode.

Darn, I pressed send to fast. I think you can register custom objects to 
unmarshall the data. This custom object could handle the unicode issue for 
you (I have not tried this yet though).

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Re: XML header and TAL interpretor

2005-08-31 Thread Stephan Richter
On Wednesday 31 August 2005 10:05, Julien Anguenot wrote:
  Don't forget that IE will then have an insane tendency to render the
  pages wrong.  I don't recall all of the details, but it was something
  like if the document began with ?xml ? IE would switch to quirks
  mode and do funny things with boxes, margins, and the overall layout.
  The details are in this list's archives (if they aren't it's in the
  zope@zope.org list archives).
 
  (not that I'm a fan of IE, but I do recall that being a problem for
  some people)

 Having IE full of bugs is not a reason to not support standards such as
 the xml processing instruction (which makes a document *not* XML valid
 if it's not present on top of the document)

 We'll think about buggy browsers in a second step ;)

If there is an IE issue it needs to be addressed and a solution be found 
before any action can be taken. IE still has the majority market share and we 
cannot be ignorant about it.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] TALES namespace names cannot contain '-'

2005-09-01 Thread Stephan Richter
On Thursday 01 September 2005 05:10, Steve Alexander wrote:
 I found that this didn't work, because only the characters [a-zA-Z0-9_]
 are allowed.  You can find the regex on line 27 of
 zope/tales/expressions.py.

   namespace_re = re.compile('(\w+):(.+)')


 I propose to extend this to allow the '-' character too.

+1

 Any objections to this?

nope.

 Are there any other characters that should be included?

probably, but let's be conservative about it. We effectively could allow 
anything that is allowed in a regular URL path segment minux :. 

 Do any specifications need changing?

I don't think so. If the directory the code is in has any TXT files you might 
want to read through them making sure that the characters are not mentioned 
anywhere.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Should major for-reaching changes be made for purposes of style?

2005-09-01 Thread Stephan Richter
On Wednesday 31 August 2005 17:05, Jim Fulton wrote:
 I'm interested in hearing what people think about this in general.
 Should we make far reaching code changes to enforce a consistent
 style?  Or should we update style when making other changes?
 I tend to do the later.

I think this depends on the case. For example, when we decided to switch to 
doctests, we did not simply rewrite all tests; and this is fine, because we 
did not have the resources. For a change like Martijn's I think a massive 
redoing was okay. Style is very high on my importance list. It gives new 
developers an easier lead in.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] package-includes

2005-09-01 Thread Stephan Richter
On Thursday 01 September 2005 16:42, Garanin Michael wrote:
 Sorry, but i can not found package-includes in the
 http://svn.zope.org/Zope3/trunk/ . Is it normal?

Yes, its in zopeskel/etc/ these days.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] package-includes

2005-09-01 Thread Stephan Richter
On Thursday 01 September 2005 16:42, Garanin Michael wrote:
 Sorry, but i can not found package-includes in the
 http://svn.zope.org/Zope3/trunk/ . Is it normal?

Oh, and by the way, do not add ZCML files manually. Add a SETUP.cfg that adds 
the ZCML file.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



[Zope3-dev] RC 3 for Zope 3.1 needed

2005-09-06 Thread Stephan Richter
Hi everyone,

I just learned that we need to have a Zope 3.1 RC 3 release. I know that some 
people found bugs, so please check in fixes into the branch in the next 
couple of days. 

Gary, does the pytz problem affect the branch?

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] buildbot warnings in Zope3 trunk 2.4 remy

2005-09-07 Thread Stephan Richter
On Wednesday 07 September 2005 07:16, Benji York wrote:
  I agree. The info could really have some more details, like what tests
  failed and their exceptions.

 We can include the complete log of the failing test.  That is currently
 several hundred lines.  Perhaps if we turned down the verbosity of the
 test runner and then included the logs in the failure messages.  What
 does everyone think?

+1. Note that we usually expect buildbot not to send messages, since all tests 
should pass.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Re: [Zope3-Users] ODBC database adapter for Zope3?

2005-09-07 Thread Stephan Richter
On Wednesday 07 September 2005 08:41, Chris Withers wrote:
 I know Zope 2 has the bizarre need for a dual Zope DA and Python DB
 set of things, but do we have to support this pattern in Zope 3?

 Is there any reason the Zope 3 RBD machinery can't just work with ANY
 Python DBAPI 2.0 (or whatever..) compatible database library?

Yes, we have the need. We need the wrapper to correctly handle our 
transactions, so that if a RDB transaction is aborted, the ZODB/Zope 
transaction should also be aborted, etc.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] upcoming wsgi pipeline/twisted integration

2005-09-07 Thread Stephan Richter
On Wednesday 07 September 2005 17:16, Craeg Strong wrote:
 Would the Twisted integration work with Twisted Web2?

Yes.

 I understand Twisted supports SSL out of the box,
 which would seem to obviate the need for virtual hosting underneath Apache.

The branch runs happily the Twisted SSL servers for HTTP and FTP. All 
configuration files have been adjusted to support the configuration of SSL 
certificates as well.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Re: [Zope3-Users] ODBC database adapter for Zope3?

2005-09-08 Thread Stephan Richter
On Thursday 08 September 2005 06:04, Chris Withers wrote:
 Is there any reason the Zope 3 RBD machinery can't just work with ANY
 Python DBAPI 2.0 (or whatever..) compatible database library?
 
  Yes, we have the need. We need the wrapper to correctly handle our
  transactions, so that if a RDB transaction is aborted, the ZODB/Zope
  transaction should also be aborted, etc.

Here are a couple more reasons:

1. Parse the DSN to the various DB package formats. One of the big problems of 
Python's DB API is that it does not specify a unified connection mechanism, 
while Zope 3 does, which is a very good thing.

2. Advanced DA implementations support much more datatype conversion than the 
default database connection package. This is particularly visible for the 
PstGreSQL DB Adapter. For example, a good DB adapter should always ensure 
that all datetimes have pytz timezones associated with them. This in 
particular is a functionality a generic Python library cannot provide, since 
Python does not commit to a particular timezone implementation.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Re: [Zope3-Users] ODBC database adapter for Zope3?

2005-09-08 Thread Stephan Richter
On Thursday 08 September 2005 06:04, Chris Withers wrote:
 If we can get all that stuff in one place, then we have a much better
 chance of making it as good as it should be, AND we make it possible to
 use any relational database which has a python library, rather than
 having ot wait for some poor unsuspecting code monkey to try and write
 the DA...

A very simplistic DA is easy; you basically only have to write a function that 
uses the DSN value to construct connection arguments for a particular DB 
package. If you make advanced use of the DB, you also want to register type 
conversions.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Schema field interfaces

2005-09-08 Thread Stephan Richter
On Thursday 08 September 2005 06:23, TAHARA Yusei wrote:
 At Tue, 6 Sep 2005 09:03:47 -0400,

 Stephan Richter wrote:
  We do not support mutable schemas at this point, since they are broken.
  The biggest problem is that they are not correctly persisted.

 Oh, I see. Could you give me a pointer about this problem?

I think there is a collector item, but I am not sure. The problem is not 
documented, since the core developers know it exists. We have not released 
this code without a reason. We only support code that is part of the release.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Timezones

2005-09-08 Thread Stephan Richter
On Thursday 08 September 2005 09:46, Florent Guillaume wrote:
 I'm seeing lots of discussion about timezone handling, but I'm afraid I
 haven't quite grasped the problem, and why an additional module pytz is
 needed in addition to the standard datetime, if everyone uses UTC? Is
 standard python datetime buggy?

People might enter timezoned datetimes and we also want to output timezoned 
datetimes. That's what pytz is used for.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: Re[2]: [Zope3-dev] how-to fool XML-RPC publisher

2005-09-11 Thread Stephan Richter
On Wednesday 31 August 2005 09:23, Groszer Adam wrote:
 Sorry, I'm a newbie regarding that. As I checked there is a
 zope.publisher.xmlrpc.premarshal_dispatch_table dict, but this is for
 the response. The request is handled 'directly' by xmlrpclib
 self._args, function = xmlrpclib.loads(self._body_instream.read())
 Can you please give a hint where to look?

I don't know much about all of this either. You definitely want to register 
this hook with xmlrpclib, so the best place to start would be the Python 
docs. If they don't do what you want, you want to write a proposal to make 
Zope 3 more flexible.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] practical example of migrating from services to utilities

2005-09-11 Thread Stephan Richter
On Thursday 01 September 2005 10:20, nagendra kumar wrote:
 I have a method which is working well in zope3.0 but its not
 working well in Zope3.1 c2 version. I am new to zope3 framework.I think
 services have no support in zope3.1.what do i need to do to make it work. I
 think i have to use either adpaters or utilities for this task. Somebody
 please send me a cod snippet to make it work.

Mmh, while you are right that services are gone, this call should still work. 
What is the traceback you get?

To fix it, simply lookup a utility:

pluggableauth = zope.getUtility(zope.app.security.interfaces.IAuthentication)

You then have to verify that we got the authentication utility you wanted as 
before.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] path adapters

2005-09-11 Thread Stephan Richter
On Friday 02 September 2005 04:20, Jean-Marc Orliaguet wrote:
 this only solution I found was to write:

 tal:define=getDisplay nocall:context/displayable/getDisplay;
                    display python: getDisplay(param);

 But it means that I have to adapt the same object each time, why can't
 the adapted object be a variable?

Path adapters are not designed to support arguments in function calls and 
should be used as follows:

context/displayable:getDisplay

Functions on a path adapter should only rely on the context. Otherwise use a 
view.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] plan to address the i18n locale timezone problem

2005-09-11 Thread Stephan Richter
On Wednesday 07 September 2005 11:08, Gary Poster wrote:
 So the plan will be to suggest that developers use the pytz  
 information if the locale id has a country code, and otherwise fall  
 back to the locale timezone information.  We should generate a .po  
 file for the pytz timezone names so that they can be translated, if  
 desired.

+1

 So the only work to be done now is to merge Stuart's work into 3.1,  
 so that the problem identified yesterday is fixed, and so that the  
 new capabilities of pytz are available.  I don't plan to make any  
 changes to i18n locales.

+1 for now. Maybe we do something clever later.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] Site Themes (comments on Paul's proposal)

2005-09-11 Thread Stephan Richter
OT: Please stop crossposting z3lab and zope3-dev. It's really annoying.

Regrads,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



Re: [Zope3-dev] RFC: Rename principal to participant

2005-09-12 Thread Stephan Richter
On Monday 12 September 2005 12:31, Philipp von Weitershausen wrote:
 So, I would like to give principal a better name. How about
 participant? After all, a principal _participates_ in an interaction
 through a participation (e.g. an HTTP request). Participant should also
 be pretty easy to translate: it's a common word, especially outside IT
 vocubulary, which means chances are good to find appropriate native
 translations for it.

This is not true. A group is also a principal, but a group does not 
participate in an interaction.

BTW, I think Jim took those terms from established security patterns.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



  1   2   3   4   5   6   >