Re: [Zope-dev] SVN: zope2book/trunk/ Lot's of updates over the weekend!

2009-02-17 Thread Tino Wildenhain

Dieter Maurer wrote:

Tres Seaver wrote at 2009-2-15 10:45 -0500:

...
At the moment, the book is largely a guide to what can be done with Zope
TTW.  DTML is still part of that store: it isn't gone, nor even
deprecated:  its just that most core developers prefer not to use it in
most cases.  Note that there is still no replacement for DTML for at
least one major TTW use case (SQL methods).


In addition, CSS and Javascript is easier generated with DTML than
with page templates.


You should really not generate CSS ;) And JS is best generated with
Jason :-)

Regards
Tino


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


Re: [Zope-dev] Syntax error in python2.6

2008-07-21 Thread Tino Wildenhain

Bristow Thankachan wrote:

Hi everybody,

During the porting of Zope2 to Python2.6, I am stuck with a syntax error 
in the module AccessControl, which is given below.


def reorder(s, with=None, without=()):
   ^
SyntaxError: invalid syntax

in line 56 of /home/zope/ztrunk26/lib/python/RestrictedPython/Utilities.py.
The same code when run in python2.4 and python2.5 didn't give any syntax 
errors. Can anybody suggest  the reason for this syntax error in python2.6.


I'd say, with is now a keyword.

http://docs.python.org/ref/keywords.html

btw, shouldn't this already give a warning in 2.5?

Cheers
Tino


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


Re: [Zope-dev] Syntax error in python2.6

2008-07-21 Thread Tino Wildenhain

Hi,


Bristow Thankachan wrote:
...


def reorder(s, with=None, without=()):
  ^
SyntaxError: invalid syntax

in line 56 of
/home/zope/ztrunk26/lib/python/RestrictedPython/Utilities.py.
The same code when run in python2.4 and python2.5 didn't give
any syntax errors. Can anybody suggest  the reason for this
syntax error in python2.6.


I'd say, with is now a keyword.

http://docs.python.org/ref/keywords.html

btw, shouldn't this already give a warning in 2.5?


Actually it does:

python2.5
Python 2.5.2 (r252:60911, Apr 17 2008, 13:15:05)
[GCC 4.2.3 (Debian 4.2.3-3)] on linux2
Type help, copyright, credits or license for more information.
 def foo(with=5):
stdin:1: Warning: 'with' will become a reserved keyword in Python 2.6
... pass
...

So while I'm generally happy with getting zope and python developement
better in sync it seems we have been too fast here since I believe
python2.5 migration is actually still in process and now you are heading
for 2.6? Doing it one after the other should already ruled out such
problems.

I wonder what can of worms is waiting in the restricted python area.

Tino




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


Re: [Zope-dev] sad news about Joachim Schmitz

2008-05-14 Thread Tino Wildenhain

Martijn Faassen wrote:

Hi there,

Joachim Schmitz, long-standing member of the Zope community, died last
weekend. Please see the following:

http://faassen.n--tree.net/blog/view/weblog/2008/05/14/0


unbelievable... Yes I also met Joachim. Don't know much to say
but I feel sorry for his family.

Tino


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


Re: [Zope-dev] Non-ASCII characters in URLs

2008-04-09 Thread Tino Wildenhain

Dieter Maurer wrote:

Wichert Akkerman wrote at 2008-4-7 20:45 +0200:

...

Almost surely, Alexander wants to ask why Zope does not allow
non-ASCII characters in ids.

And, in fact, there are only two reasons:

  *  lazyness of the Zope developpers:

 without the restriction to ASCII characters
 careful quoting (and unquoting) is necessary
 in order to adhere to RFC 2396 (the modern uri syntax specification)

This is becoming increasingly painful


I will soon have a patch against Zope 2.11b1
which gets rid of this restriction.

If there is consense, I can add it to the Zope repository.


+1 from my side. Saves me the work to cleanup my own dirty
patch :-))

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

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


Re: [Zope-dev] Re: GSoC proposal

2008-04-04 Thread Tino Wildenhain

Malthe Borch wrote:

On 04/04/2008, Chris Withers [EMAIL PROTECTED] wrote:

 zope.security uses RestrictedPython, iirc...


For untrusted python, yes –– but is anyone using this (in Zope 3)?

It's integral to most Zope 2 applications of course to allow secure
execution of Python scripts, so we will need to port RestrictedPython
eventually.


Btw, it would also be nice to have RestrictedPython outside of Zope
for example to use in pl/python (postgres pluggable function language)

Of course this smells like another GSoC project...

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

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


Re: [Zope-dev] Re: Moving the Zope 2 bugtracker to Launchpad

2007-08-12 Thread Tino Wildenhain

Philipp von Weitershausen schrieb:

Martijn Pieters wrote:

On 8/12/07, Andreas Jung [EMAIL PROTECTED] wrote:

to make it short: I propose to move the Zope 2 bugtracker to
Launchpad. Since the Zope 3 bugtracker works already with success on 
LP we

should follow with the Zope 2 bugtracker. Objections?


+1

I do wish LP gave a bit more context in their emails though; today
Christian Thuene cleaned up the Z3 bugtracker and I couldn't tell from
any of the many bug emails if any related to bugs I cared about. I'll
have to file a LP feature-request, I guess.


I agree, I too wish that Launchpad emails would include the full bug 
history (at least as an option). Whenever I've talked to the Launchpad 
folks they were open for ideas, so I think it's worth a try to file a 
feature request.



Maybe I missed the thread but why was LP choosen over for example
Trac? The latter would at least work very well with the SVN repository
and provide meaningfull emails...

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

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


Re: [Zope-dev] [ZPT/Zope 2.10] Unicode fixes backported

2006-12-28 Thread Tino Wildenhain

Andreas Jung schrieb:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

as mentioned in an earlier I was working on several encoding and webdav
issues related to the Zope 3 ZPT integration in Zope 2.10. I backported
the changes to the 2.10 branch.

The changes include an in-place migration of all ZopePageTemplate instances 
to unicode (through a custom __setstate__() implemenetation). The migration 
code tries to sniff the encoding (it knows about ISO-8859-15 and UTF-8). A 
custom preferred encoding can be specified through the environment 
variable $ZPT_PREFERRED_ENCODING.


You should rather use config param default-zpublisher-encoding as a 
default, maybe with a fallback to (hopefully once obsolete)

MANAGE_PAGE_CHARSET property.


I know that this migration is a big hammer (for a minor release) however I 
have not found another solution to deal with the outstanding issues in a 
reasonable and sane way. Therefore this migration must be tested. I am 
thinking about a beta release for 2.10.2 in order to get the stuff tested

(I am also aware of the fact that most people don't test betas :-))


The sniffing could work however. Maybe we should have some warnings
printed on console during zope start? Or even a configureme parameter
which stopps zopes start when there is a non empty storage to migrate?

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

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


Re: [Zope-dev] Cache code in Shared/DC/ZRDB/DA.py

2006-11-17 Thread Tino Wildenhain

Chris Withers schrieb:

Tino Wildenhain wrote:

I have a replacement started, which uses Cacheable mixin instead.
Advantage is, with RAM Cache Manager you can see the hits your method
cause and invalide the cache per object. I also introduced a execution
time treshold, so you can configure to only cache runtimes say above
1 sec, leaving more room for long running queries.

I think I should packe up what I have now (rough edges) so you
can have a look at it.


I have to be honest, I'm looking to simplify, and this sounds a LOT more 
complicated...


No actually it isnt. I ripped out a lot of the old code. All other stuff
is easily handled by the cache code anyway.

ZSQL Methods and all that stuff is horribly old and full of calamities.
Apart from the cache management nightmare, there is also a lot of
ZMI stuff really wrong. You dont see the right encoding because
the test pages ignore it, you have a pretty formatter for
column names - hiding their real name and you always have to wonder
the name of the variable you get in the result set.

(fOO_bar becomes FOO bar for example)

and so on :-)

I think I just upload what I have so you can have
a look at it :-)

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

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


Re: [Zope-dev] Cache code in Shared/DC/ZRDB/DA.py

2006-11-17 Thread Tino Wildenhain

Chris Withers schrieb:

Tino Wildenhain wrote:

I have a replacement started, which uses Cacheable mixin instead.
Advantage is, with RAM Cache Manager you can see the hits your method
cause and invalide the cache per object. I also introduced a execution
time treshold, so you can configure to only cache runtimes say above
1 sec, leaving more room for long running queries.

I think I should packe up what I have now (rough edges) so you
can have a look at it.


I have to be honest, I'm looking to simplify, and this sounds a LOT more 
complicated...


And here it is (maybe it takes a couple of minutes to be visible)

http://www.zope.org/Members/tino/CachedZSQLMethods

http://www.zope.org/Members/tino/CachedZSQLMethods/CachedZSQLMethodsPrerelease/CachedZSQLMethods_0.1_alpha.tgz

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

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


Re: [Zope-dev] Cache code in Shared/DC/ZRDB/DA.py

2006-11-17 Thread Tino Wildenhain

Chris Withers schrieb:

Chris Withers wrote:


I have to be honest, I'm looking to simplify, and this sounds a LOT 
more complicated...


Okay, I've written unit tests and refactored the code on the 2.9 branch, 
2.10 branch and trunk.


Please let me know if you have any problems...


Uh oh - which code? :-)

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

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


Re: [Zope-dev] Cache code in Shared/DC/ZRDB/DA.py

2006-11-16 Thread Tino Wildenhain

Chris Withers schrieb:

Hi Jim,

I'm wondering if you can still remember the rational behind the cache 
code at around lines 355-387 of:


http://svn.zope.org/Zope/trunk/lib/python/Shared/DC/ZRDB/DA.py?rev=68158view=auto 



This code is pretty old (checked in 5th Dec 1997) but has started 
causing a few people problems under high load:


http://mail.zope.org/pipermail/zope-db/2006-September/004684.html
http://www.zope.org/Collectors/Zope/2212

In particular:

- in line 368, why is len(cache)max_cache/2 used as a trigger to start 
cache clearing? (the /2 in particular)


- does it matter that IOBTree.Bucket has gone away and that tcache is
  now a simple dictionary? It certainly seems to make the keys.reverse()
  on line 370 superfluous and the keys[-1]t on line 371 less reliable.

More generally, do you or does anyone else have any attachment to this 
code or would anyone mind if I ripped it out and replaced it with 
something simpler, with more comments and unit tests?


I have a replacement started, which uses Cacheable mixin instead.
Advantage is, with RAM Cache Manager you can see the hits your method
cause and invalide the cache per object. I also introduced a execution
time treshold, so you can configure to only cache runtimes say above
1 sec, leaving more room for long running queries.

I think I should packe up what I have now (rough edges) so you
can have a look at it.

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

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


Re: [Zope-dev] Serving large files

2006-09-17 Thread Tino Wildenhain

Sidnei da Silva schrieb:

I remember having a conversation with Jim at some point where he
proposed a strategy for requests that could potentially take a long
time to finish. If I recall correctly, he proposed having a separate
ZODB connection pool.

One thing that is problematic today is serving large files
from the ZODB (ignoring the upcoming blob support).

a) You can't return an iterator that reads from the ZODB, because by
   the time the iterator is consumed the connection has already been
   closed. I believe the iterator is not consumed in the same thread,
   which can cause yet more issues.

...


I would like to be able to return an iterator that can read from the
ZODB. That would probably benefit the WSGI integration as well. Anyone
has ideas about how to solve this?



It should be possible to feed a fifo (at least on unix) and reopen the
connection each time via publisher or something alike (similar to the
retry mechanism on database conflicts) and fill the buffer again.

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

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


Re: [Zope-dev] PAS-1.4-final Released

2006-08-28 Thread Tino Wildenhain
Andreas Jung wrote:
 
...
   I'm pleased to announce that the final 1.4 version of the Zope
   PluggableAuthenticationService product is now available at:

 
 *me loud thinking*: wouldn't it make sense to integrate PAS into the
 Zope 2 core and make it the new default mechanism for authentication
 replacing
 the old crappy UserFolder stuff?

Would be nice - otoh, its still very rough - its actually not
understandable how to plug which elements together to achieve
a given goal. There is some documentation text about the
general usage in the archive but if you dont have something
online I'd expect a lot of people getting really confused
and locking them out theirself. So unless you read what to
do at the ZMI level, I'm a bit -1 for default integration.

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


Re: [Zope-dev] Should PageTemplate._text be a unicode or an encoded string in Zope 2.9.3?

2006-07-22 Thread Tino Wildenhain
Stefan H. Holek wrote:

 On 21. Jul 2006, at 16:53, Chris Withers wrote:
 
 I wonder how Zope 3's filesystem-based ZPT's deal with this?
 

 zope.pagetemplate.pagetemplatefile.PageTemplateFile reads an eventual
 meta http-equiv=Content-Type ... header, or defaults to UTF-8.

Well, pagetemplate files are another thing. They have to deal with
the lack of charset information of a filesystem file and what they
do once they load the data is even another thing.

Even filesystem pagetemplates should work with unicode internal,
making it easy to recode them for output and combine with other
potentially unicode stuff.

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


Re: [Zope-dev] Should PageTemplate._text be a unicode or an encoded string in Zope 2.9.3?

2006-07-22 Thread Tino Wildenhain

Andreas Jung schrieb:




--On 22. Juli 2006 15:34:01 +0200 Tino Wildenhain [EMAIL PROTECTED] 
wrote:



Well, pagetemplate files are another thing. They have to deal with
the lack of charset information of a filesystem file and what they
do once they load the data is even another thing.

Even filesystem pagetemplates should work with unicode internal,
making it easy to recode them for output and combine with other
potentially unicode stuff.




huh?..even on the file system a pt file is encoded using some encoding.
For an XML pagetemplate file the encoding is clearly defined through 
the BOM (if available) and/or the XML preamble. So the most reliable 
solution would be to use XML PTs only.


Yes but you have to explicitely store that information somehow in the
file - zope objects can use other methods to transfer encoding information
while they create the internal representation.
meta-tags for charset are quite ugly but you basically have no other
choice with filesystem stuff.
Problem here if the various encoding notifications collide (XML header 
vs. XHTML meta-tag vs. BOM) so better have as few as possible - even 
better none when

we deal with HTTP-Servers which can nicely handle this all out of band
and on demand.

webdav or put can send charset data, zmi would use 
default-zpublisher-encoding

etc. If you store the internal object in unicode you can safely combine
different souces of encoded data instead of having a weird mesh of
decoding and encoding going on.

So I would not care how to find out about the intended encoding - once the
object is instantiated.

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

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


Re: [Zope-dev] Should PageTemplate._text be a unicode or an encoded string in Zope 2.9.3?

2006-07-22 Thread Tino Wildenhain
Andreas Jung wrote:
 
 
 --On 22. Juli 2006 16:17:09 +0200 Tino Wildenhain [EMAIL PROTECTED]
 wrote:
 huh?..even on the file system a pt file is encoded using some encoding.
 For an XML pagetemplate file the encoding is clearly defined through
 the BOM (if available) and/or the XML preamble. So the most reliable
 solution would be to use XML PTs only.

 Yes but you have to explicitely store that information somehow in the
 file - zope objects can use other methods to transfer encoding
 information
 while they create the internal representation.
 meta-tags for charset are quite ugly but you basically have no other
 choice with filesystem stuff.
 Problem here if the various encoding notifications collide (XML header
 vs. XHTML meta-tag vs. BOM) so better have as few as possible - even
 better none when
 
 I am only talking of XML. And the encoding is clearly and unambiguously
 defined through the BOM (if available) and the XML preamble. So any

Pardon, thats nonsense. BOM means byte oder mark and not encoding mark
(It would read EM instead, wouldnt it? ;) Its only used with some 16 bit
encodings to tell the byte order of the two bytes (obviously).
And XML only via its XML preambel, which is just another place to put
encoding information in band. (In fact we should have publishing engine
to fix this preamble as well as the infamous meta-tag (if available)
to reflect the encoding currently in use.


 application reading an XML file is able to detect the encoding and produce
 a unicode string from the file. According to a discussion with Dieter

Yes, and in case of the filesystempagetemplates and friends, the
template is that application which reads and should produce the unicode
string.


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


Re: [Zope-dev] Should PageTemplate._text be a unicode or an encoded string in Zope 2.9.3?

2006-07-17 Thread Tino Wildenhain

Chris Withers wrote:

Andreas Jung wrote:



I've had problems when it's an encoded string, but that seems to be what
is stored when you save a ZPT via the ZMI or WebDAV...


ZPT in pre-Zope 2.10 knows nothing about unicode...it can be anything :-)


And what about 2.10?

FWIW, this seems to be problematic due to Zope 3's i18n stuff returning 
unicodes.


Prior to that, everything was a happy utf-8 encoded string.

What does Zope 2.10 do with all of this?



This would be my next question too regarding the management_page_charset
cleanup I'm currently playing with. My vote would be to store unicode
where possible - so you dont screw up everything when you change
default_zpublisher_encoding in zope.conf.

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

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


Re: [Zope-dev] Should PageTemplate._text be a unicode or an encoded string in Zope 2.9.3?

2006-07-17 Thread Tino Wildenhain
Andreas Jung wrote:
 
 
 --On 17. Juli 2006 17:11:54 +0100 Chris Withers [EMAIL PROTECTED]
 wrote:
 
 Andreas Jung wrote:

 Zope 2.10 comes with the ZPT implementation of Zope 3 which works nicely
 with unicode strings. However the 2.10 won't enforce the use of unicode
 strings for backward compatibility. However (at least)  the
 ZopePageTemplate
 class constructor has a flag 'strict' to enforce the use of unicode.

 Okay, but what actually gets stored in the ZPT when editing it via ZMI or
 WebDAV?
 
 Here's the code:
 
security.declareProtected(change_page_templates, 'PUT')
def PUT(self, REQUEST, RESPONSE):
 Handle HTTP PUT requests 
self.dav__init(REQUEST, RESPONSE)
self.dav__simpleifhandler(REQUEST, RESPONSE, refresh=1)
## XXX this should be unicode or we must pass an encoding
self.pt_edit(REQUEST.get('BODY', ''))
RESPONSE.setStatus(204)
return RESPONSE
 
 As you can see from the comment..there is some work to do. AFAIK
 WevDAV the encoding is not available from a WebDAV request?!

But it is - in fact my local copies have the hack where I used
management_page_charset here. Now I'm seeing we dont even need
that - default_zpublisher_encoding is much better here.

Kate (as webdav editor client) plays very well with that.

 On the other hand there is code available that tries to obtain
 the encoding from the XML preamble (sniffEncoding)...and the very other
 hand

Yes this double encoder marking is a mess. We need to be able to
provide a fixup (just like the infamous base-tag)

 there is still a problem with this method since the encoding can be
 determined by the BOM (if available)...this currently not handled through
 the code...I think I'll have a closer look at the code once again this
 week.

BOM is only for filesystem unicode of some 16-bit variants. Nothing
you really want to send over the wire (although you can).
But after all its just another encoding so it would be a matter
of setting the encoding correctly.

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


Re: [Zope-dev] 2.9.4? reStructuredText support?

2006-07-08 Thread Tino Wildenhain
...

 You seem to be the only one championing TTW reST?

 I am only champion against crude removal of features and against and a
 shortsighted preception.

I'm for keeping it (or something like it) too.

 That doesn't deserve an answer.
 
 Are you unwilling  to
 write the tests necessary to keep it?

 This is really not the point. As release manager I am allowed to speak
 up. But that does not imply I have to fix all and everything.
 
 Yes, it really is the point. We've had a serious security failure due to
 a lack
 of adequate testing.  This is not acceptable.

You mean auditing. Testing would not help imho. Testing
only checks if expected behavior still works. And nobody
expects the spanish inquisiton *wink* ;)

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


Re: [Zope-dev] 2.9.4? reStructuredText support?

2006-07-08 Thread Tino Wildenhain
Jim Fulton wrote:
 
...
 You mean auditing. Testing would not help imho. Testing
 only checks if expected behavior still works. And nobody
 expects the spanish inquisiton *wink* ;)
 
 You can test that trying to do fil-inclusion fails.
 

For example if I'd were the one who would have written
the naive test - I would not have known a file inclusion
feature even exists or is supposed to be exposed to
reST. So my test would not have tested it. So we had
perfectly tests for all the reST things we want and
expect but the hole would exist anyway.

To cut a long story short, I guess the current
fix can work or there can be other holes
(which we constantly would not be aware no matter
how many tests tell us the file inclusion does
not work anymore).

So whats the solution? Audit of the docutils
package? Putting it into restricted environment
like the other template engines?

Inclusion of own docutils like, but audited
code?

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


Re: [Zope-dev] Non-Latin-1 properties

2006-06-08 Thread Tino Wildenhain

Andreas Jung schrieb:



--On 8. Juni 2006 15:31:09 +0200 Yves Bastide [EMAIL PROTECTED] wrote:


Hi!

Sorry to beat a dead horse: the ZMI doesn't allow using non-Latin-1
properties.



huh? How about using the utext and ustring properties?


they (sorry ;) suck :-) And they arent available in
manage_page_charset=utf8 (for whatever bd reason ;)

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

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


Re: [Zope-dev] tempstorage to ZEO?

2006-05-31 Thread Tino Wildenhain

Sidnei da Silva schrieb:

I was looking, and trying to understand why 'tempstorage' is not
included in the ZODB.

Since some people might want to share sessions between ZEO clients,
and that 'tempstorage' is what is mounted as
'/temp_folder/session_data', why not make that easy to mount via ZEO?
Does anyone see a problem with this?


actually it is easy mountable via ZEO. I'm doing this already...
Do you mean including the schema for zeo.conf per default?

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

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


Re: [Zope-dev] Re: [ZODB-Dev] Re: tempstorage to ZEO?

2006-05-31 Thread Tino Wildenhain
Sidnei da Silva wrote:
 On Wed, May 31, 2006 at 02:12:48PM -0400, Tres Seaver wrote:
 | -BEGIN PGP SIGNED MESSAGE-
 | Hash: SHA1
 | 
 | Eric Brun wrote:
 |  Hi,
 |  
 |  I have bad experence with tempstorage on ZEO (FileStorage with no undo).
 |  With site with 18000 users (300 per minutes) , the site hang because of
 |  conflict on ZEO.
 |  I am very interested by a faster tempstorage like SQLDB
 | 
 | I am working on a memcached-based shared session data container, which
 | should be both faster than ZEO + tempstorage and conflict-free.
 
 Having written a MemcacheCacheManager, I'm very interested in helping
 with this. How can I help you?
 
Not sure if you know it, but I guess Tres is referring to
http://www.danga.com/memcached/

I was also ofthen thinking if something like that would make
a good client cache - w/o blowing up pythons heap so much.

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


Re: [Zope-dev] Re: Wishlist Item

2006-03-26 Thread Tino Wildenhain
Chris Withers wrote:
 Andreas Jung wrote:

 CMF or not - if one need such a functionality one can download CMF or
 a related product. If such functionality should belong into the core
 than it should be implemented in a reusable way and frameworks like
 CMF should be build on top of it. So -1 for the request.
 
 Indeed, I'm -1 on FileSystemSite, but it'd be _great_ to see the
 DirectoryView stuff move from the CMF into the core.
 
 That way we'd stop having several different implementations that newbies
 are forced to pick from.
 

Maybe its just me but I personally dont like direct filesystem
access in the core - if someone wants it, (s)he can pick from
the 3rd party products - maybe there can be a list of recommended
(active maintained) products? Direct access products should also
carry some easily understandable warnings.

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


Re: [Zope-dev] New mailing list: [EMAIL PROTECTED] for all checkin messages

2006-03-18 Thread Tino Wildenhain
Jim Fulton schrieb:
 
 I've set up a new mailing list that gets all checkins for the
 zope.org CVS and Subversion repositories:
 
   http://mail.zope.org/mailman/listinfo/checkins
 
 Note to contributors:
 
 Only members can send messages to this list.  This means that you will
 get messages for a while when you check in saying your messages are
 being held for moderation.  I am moderating the list. When I see
 legitimate held messages, I'll add the sender to the list of valid
 non-member senders.  So if you don't want to subscribe, you don't have
 to. :)

I seen this with the cvs list. Cant the checkin messages not
automatically accepted? I mean the sending server is known...

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


Re: [Zope-dev] Re: http access to svn repos?

2006-03-08 Thread Tino Wildenhain

Mark Hammond schrieb:

Chris quoting Jim:



...



I would support HTTP anonymous checkouts.  I'm really against
writable HTTP checkouts because I consider the credentials
mechanism for HTTP access to be extremely lame.



whether SVN or not, I'm guessing any use of HTTP basic authentication
mechanism qualifies as extremely lame!  I've no idea if this is what Jim
meant though :)


Well, I hope ;) he meant client certificates. This is doable but a bit
of work for the certificate people to issue one to the user in addition
to the ssh-pubkey stuff. Not actually quite in line w/ what you should
do as a CA but possible and not more insecure then current ssh-pubkey
auth would be a script which can be run with the ssh-useraccount
and produces/registeres a given client certificate for that user.

Something like: ssh cert.zope.org generate mycert.csr
when your ssh-pubkey is set up.

And likewise ssh cert.zope.org retract mycurrentcert.csr
to disable a given client certificate.

Just some mad ideas...

Regards
Tino

PS: there is no need to have an official CA, any private setup would do.
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

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


Re: [Zope-dev] Re: http access to svn repos?

2006-03-06 Thread Tino Wildenhain
Tres Seaver schrieb:
 Chris Withers wrote:

...

Where should I write the proposal? Who is going to review it?
 
 
 http://www.zope.org/Wikis/DevSite/Proposals ; post here and zope3-dev
 for review.

+1 for http anon checkouts at least :-)
 
...
 -1 on using https for writable checkouts.
 
 The issues aren't so much technical feasibility as social / legal:  a
 checkin done using somebody's private key is way less deniable than one
 done with a password.  Unless you plan to set up a system for issuing
 client certificates to contributors, I don't think https is superior to
 svn+ssh at all.

I think a possible solution would be client certificate on request
and downloadable with ssh from users account - maybe even automatically
generation of client cert via ssh for acredited contributors.

At least this would be equaly secure/insecure as current ssh-pubkey
only.

Otoh, if you want to make it right [tm] you need a fairly complicated
CA-setup. Including isolated box, sneakers-net or at least some solution
with serial interface... really a lot of work. (But this would
be more secure then we have now with the simple publickey)

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


Re: [Zope-dev] Re: traversable methods / docstrings.

2006-01-30 Thread Tino Wildenhain

Lennart Regebro schrieb:

If somebody gets time to do the suggested refactoring of the publisher
for 2.10, then the docstring requirement could be dropped for
IFiveTraversable objects, I think.


Otoh, whats wrong with docstrings anyway? :-)

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

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


Re: [Zope-dev] Re: ZPT backward compatibility

2006-01-17 Thread Tino Wildenhain
Dieter Maurer schrieb:
 Andreas Jung wrote at 2006-1-16 19:55 +0100:
...
 I have seen some answers -- though not too many...
 
 Note also that zpt@zope.org is a very low activity list.
 For it, a few answers is already a lot...

Add to it the fact the zpt@zope.org was due to be retired
anyway ;)
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] [Zope 2.10] ZPT going Unicode

2006-01-15 Thread Tino Wildenhain
Dieter Maurer schrieb:
 Tino Wildenhain wrote at 2006-1-13 16:45 +0100:
 
...
Maybe just have new uZPT with Unicode and leave the old ZPT allone?
Maybe with limited ability to add old ZPT from ZMI or such.

This would solve the backward-compatibility problems and would be a more
smooth transition w/o the need of upgrade hacks and strict hacks
(after all, we arent perl/php ;))
 
 
 I fear it is not that easy:
 
   Unless we set Python's defaultencoding to the site encoding
   (and we have such a thing), Python cannot mix Unicode and non-Unicode.
 
   Thus, your old ZPT's would need to use only other old ZPT's and
   old Python scripts and old methods (returning encoded texts)
   while strict ZPT's would need to use only new (strict) ZPT's, scripts
   and methods. Quite unfeasible...

Dont think so. The uZPTs would be aware of the fact of unfriendly
environment. So handling of encoded templates can be done when they
are used in a uZPT they would be promoted to unicode w/o touching the
default python encoding. (If not unicode ... get encoding from template
or site-default - decode)

Mixing all that capabilty with a single switchable ZPT implementation
strikes me a lot harder to get right, useable and performant.

But after all its just an idea. We can discuss it ;)

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


Re: [Zope-dev] [Zope 2.10] ZPT going Unicode

2006-01-13 Thread Tino Wildenhain
Andreas Jung schrieb:
...
 Now, if I have code that takes something from that request and displays
 it in a unicode page template, you'd have a problem, as you'd be mixing
 UTF-8 with unicode there. Again this might result in a lot of broken
 code.

 
 I share your worries (meanwhile :-)). Enforcing unicode is too strict. I
 think to relax the wrapper code so it can handle both unicode and
 non-unicode (for backward compabitlity)...possibly using some 'strict'
 flag that enforces the use of unicode...I just don't know yet how to add
 this in a same way.

Maybe just have new uZPT with Unicode and leave the old ZPT allone?
Maybe with limited ability to add old ZPT from ZMI or such.

This would solve the backward-compatibility problems and would be a more
smooth transition w/o the need of upgrade hacks and strict hacks
(after all, we arent perl/php ;))

Maybe with a make all my ZPT uZPT or the like for the real desperate.

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


Re: [Zope-dev] Re: [RfC] Removal of old stuff in Zope 2.10

2005-12-22 Thread Tino Wildenhain
robert rottermann schrieb:
 Rocky Burt wrote:
 
 Max M wrote:
  

 If there is another practical way to do it, that would be fine too. I
 don't know about sqllite. But if it's more difficulte than dropping a
 package into a directory it would be bad.

 


 Personally I'd be a huge proponent of including SQLite in zope core.  It
 is extraordinarilly functional and has few requirements.  I particularly
 like using it to ensure unit tests against RDBMS connections work
 properly.  Requiring a user to install postgresql just to run the unit
 tests of a product is somewhat unfeasible.

I dont think we should inlcude more 3rd party products into zope core
unless they are required for core funtionality. And a random database
adaptor isnt really core functionality.

Linking interesting products from the download-page could be
improved to fill the gap imho.

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


Re: [Zope-dev] Re: [RfC] Removal of old stuff in Zope 2.10

2005-12-22 Thread Tino Wildenhain
Rocky Burt schrieb:
 Andreas Jung wrote:
 

--On 22. Dezember 2005 15:20:27 +0100 robert rottermann
[EMAIL PROTECTED] wrote:


I perfectly agree with both of these arguments.
However having a dead easy to use RDBMS tool is very convenient. Both
for teaching and marketing purposes.



I agree (meanwhile) but we have to sort out the issues I mentioned already
(license, integration with Z 3, who volunteers :-))
 
 
 Hmm... I'm definitely willing to help out here.  But one strike against
 me is my lack of zope3 development knowledge.
 
 When you mentioned before about importing sqlite into svn.zope.org, you
 were talking about actually including a snapshot of sqlite inside zope
 source rather than making it a build time requirement?

I'd still rather not include depencies on other projects into the core.
Even more if they are problematic license.

And last not least - I'd not like zope bringing its own sqlite
libs where I might have some in my python install already.

I'm definitively -1 on including it in the core, no matter how
usefull it migh appear.

+1 in the list of suggested 3rd party products with easy install


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


Re: [Zope-dev] [RfC] Removal of old stuff in Zope 2.10

2005-12-20 Thread Tino Wildenhain
Jens Vagelpohl schrieb:
 
...
 IMHO it would be nice if the HelpSys could be changed so that it  still
 provides those Help! links, but the product author can simply  assign a
 URL to them to point to a place where they copied and pasted  their docs
 into a website. That's not too much of an imposition on  product authors
 I think.

This was my first thought but then you have two problems:

1) online docs can be for new version while the user is for various
   reasons using older version - so the docs would not match either

2) privacy: this is the biggest issue - if someone clicks on the
   helpsys link (s)he transmits the url of the own ZMI via
   referrer (in 99% of all cases). This might be ok for zope.org,
   but I doubt this is ok for anybody elses website where who knows
   has access to the logs.
   I fear unless we play some ugly javascript games, there is no
   real way out of this. Maybe at least the url should be
   restricted to zope.org.


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


Re: [Zope-dev] optimised python

2005-12-18 Thread Tino Wildenhain
Am Sonntag, den 18.12.2005, 17:46 +1100 schrieb Alan Milligan:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 I'm reconsidering the way we RPM package byte-code compiled python, and
 although I suspect optimised python is a bit of an anacronysm, I thought
 I'd check with the list ;)
 
 If one was to start Zope with python -O, then it would look for (and
 generate) .pyo files instead of .pyc's in all the Products right?
 
 Would there be any performance gain by this change?  How much?
 
 Is it worth me doing byte-compiles with -O and starting Zope's
 interpreter in this mode?
 
Debian python installer makes two compile steps after installation,
one to create the .pyc and one to create all the .pyo files.
I'd say apart from disk space it does not hurt :) And you are
free to start your python apps in the way you like.


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


Re: [Zope-dev] [ZPT] Zope 3 ZPTs in Zope 2

2005-12-11 Thread Tino Wildenhain
Am Sonntag, den 11.12.2005, 13:16 +0100 schrieb Andreas Jung:
 Hi,
 
 I have a working implementation for Zope 3 ZPTs within Zope 2. It is 
 currently implemented through a new class ZPT which implements the same 
 functionality as Products.PageTemplates.ZopePageTemplate. I am currently
 thinking about the migration to the new implementation. Would it be possible
 to perform an in-place migration using setstate() when replacing the 
 ZopePageTemplate implementation with the prototype code from my ZPT class?

Are there different object-attributes in both classes?
If not, you could simple replace with the same old
class name. 

If there are (you would have to know them
anyway to do the __setstate__ approach)
I'd like an approach with an upgrade
script (similar to 'stale Python Scripts')
better. Buts just me ;-)

Regards
Tino

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


Re: [Zope-dev] [ZPT] Zope 3 ZPTs in Zope 2

2005-12-11 Thread Tino Wildenhain
Am Sonntag, den 11.12.2005, 15:03 +0100 schrieb Andreas Jung:
 
...
 
 The Z3 ZPT implementation seems to use the same attrs. So I could just
 replace the class implementation. Some first quick tests show that there is
 no further need for a migration..it just works :-)

Lets praise the wonderful world of pickle ;))

++Tino

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


Re: [Zope-dev] Imports broken on 2.9.0-b1?

2005-12-11 Thread Tino Wildenhain
Am Sonntag, den 11.12.2005, 23:19 -0500 schrieb Paul Winkler:
 Another quickie problem report - no time to investigate further right
 now, but can anybody else reproduce?  If so, I'll try to fix tomorrow...
 
 In a fresh 2.9.0-b1 instance, made via bin/mkzopeinstance, I get this
 when I click the Import/Export button in the ZMI:
 
 Site Error
 
 An error was encountered while publishing this resource.
 
 Error Type: OSError
 Error Value: [Errno 2] No such file or directory:
 '/home/pw/Zope-2.9.0b1-SoftwareHome/import'
 
 And the traceback is:
...
 OSError: [Errno 2] No such file or directory:
 '/home/pw/Zope-2.9.0b1-SoftwareHome/import'
 
 
 Well, err, why are you looking there? That's not my instance home :-\

I suspect its the feature which got introduced in 2.8? or so which
has a browser for packets to import so you dont have to
guess and type the name correctly. And to not have to
copy the exaples to every instance home, it
looks in Software-home too. 

2 questions araise, though:

1) why is Softwarehome/import not there?
2) why is the test not skipping the non existant
   directory.

Either case a bug report :)

++Tino


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


Re: [Zope-dev] Re: [Zope3-dev] RFC: Locale-specific Text Collation

2005-12-09 Thread Tino Wildenhain

Stephan Richter schrieb:

On Friday 09 December 2005 08:58, Jim Fulton wrote:


A proposal to address this problem is here:

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

Comments are welcome.



+1 as said on IRC.


AOL! err. I mean:

+1

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

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


Re: [Zope-dev] Re: UI improvements

2005-11-29 Thread Tino Wildenhain

Chris Withers schrieb:

Tino Wildenhain wrote:


Not sure which objects would fall in this category. All
Objects in ZODB have their history - they just dont show
it by default. Comparison is of course specific to a class.



Indeed, how will this work?


Historycopy is of course another thing. It works for all objects
but especially folders are a bit sensible if some subobjects
got renamed - thats why I dont support history copy on folders.



OK.

So, how's this coming? ;-)


You can check the principle with my old monkey-patch
proof of concept. Due to changes of the extensionclasses,
it only works with 2.7. I've got working code for 2.8
here, but I dont want to maintain it as monkey
patch anymore.

http://www.zope.org/Members/tino/PatchHistory/view

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

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


Re: [Zope-dev] Python2.4 Security Audit ETA???

2005-11-28 Thread Tino Wildenhain
Am Dienstag, den 29.11.2005, 17:16 +1100 schrieb Alan Milligan:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hi,
...
 With the major distro's, Python is entrenched in their installer and gui
 processes and *all* packaging is focused around a single python (2.4 for
 everyone excepting our BastionLinux).

Not so true.

...
 We are getting an increasing number of people attempting to load
 incompatible packages.  It is not possible to downgrade python.  Most of
 userland is not competent to get a secondary python2.3 installation
 running - especially when packages such as python-ldap are simply not
 available for their old python and new ldap etc etc which all requires
 custom package builds.

Aha.
python2.1-ldap - A LDAP interface module for Python 2.1
python2.2-ldap - A LDAP interface module for Python 2.2
python2.3-ldap - A LDAP interface module for Python 2.3


 We are also stuck in a time-warp actually having to back-port a large
 proportion of recent linux packages because we'd like to make new
 features available, increasing costs and testing requirements.  It is
 also no longer possible for customers to subscribe to just a single
 channel because our core is substantially different to their chosen
 vendor's installation, and packages will be installed into meaningless
 python paths etc.
 
 Can someone please give me an ETA on this, so I can decide if and how to
 support zope in light of other pressing linux requirements for our distro.

Well, while it would certainly fine to have said audit, it isnt really
a problem - every since different python versions could happily coexist
on every platforms I've seen. Even on win32.

But someone has to do it. If you feel the itch - would you help
scratching it at least?

++Tino

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


Re: [Zope-dev] Re: UI improvements

2005-11-24 Thread Tino Wildenhain

Chris Withers schrieb:

Tino Wildenhain wrote:


Here is the list w/ improvements ante portas:

1) Icons for add-dropdown list



+1


2) History + History compare for all objects and more useable diff



+10

...but how does this work when the objects can't sensible show history
or be compared?


Not sure which objects would fall in this category. All
Objects in ZODB have their history - they just dont show
it by default. Comparison is of course specific to a class.

Historycopy is of course another thing. It works for all objects
but especially folders are a bit sensible if some subobjects
got renamed - thats why I dont support history copy on folders.

3) warning when commiting stale edit forms in ZPT, python script 
(expect hight discussion here ;)



-0


Not so hight as expectted ;)

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

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


Re: [Zope-dev] Re: UI improvements

2005-11-22 Thread Tino Wildenhain

Alexander Limi schrieb:
On Fri, 18 Nov 2005 06:56:32 -0800, Andreas Jung 
[EMAIL PROTECTED]  wrote:


In general such changes should be made on the HEAD (for next 2.10  
release).



OK. I was aiming for a quick sprint to get some small changes into 2.9  
before release (ie. no actual code changes, just moving text and  
eliminating HappyTalk™ to make the interface usage clearer).



I got a small UI patch to have product icons in the add-dropdown
which turns out to reduce the mistakes on klicking on the wrong
product to add to a minimum. Maybe you like to include it too?

http://www.zope.org/Members/tino/PatchObjectManager-1.0/view

It could even get some improvements - grouping factories
by product could even help if the list is very long.

Just some thoughts.

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

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


Re: [Zope-dev] Re: UI improvements

2005-11-22 Thread Tino Wildenhain

Andreas Jung schrieb:



--On 22. November 2005 09:11:13 +0100 Tino Wildenhain 
[EMAIL PROTECTED] wrote:



Alexander Limi schrieb:


On Fri, 18 Nov 2005 06:56:32 -0800, Andreas Jung
[EMAIL PROTECTED]  wrote:


In general such changes should be made on the HEAD (for next 2.10
release).




OK. I was aiming for a quick sprint to get some small changes into 2.9
before release (ie. no actual code changes, just moving text and
eliminating HappyTalk™ to make the interface usage clearer).


I got a small UI patch to have product icons in the add-dropdown
which turns out to reduce the mistakes on klicking on the wrong
product to add to a minimum. Maybe you like to include it too?

http://www.zope.org/Members/tino/PatchObjectManager-1.0/view

It could even get some improvements - grouping factories
by product could even help if the list is very long.



Since 2.9 is delayed until Zope 3.2 is ready for beta 1 you could commit it
to the HEAD and 2.9 branch.



Fine. Is this yet part of the discussion yes, we want that or
well, if you cant hold it...? ;)

Some +1 on the matters could motivate :-)

Here is the list w/ improvements ante portas:

1) Icons for add-dropdown list
2) History + History compare for all objects and more useable diff
3) warning when commiting stale edit forms in ZPT, python script (expect 
hight discussion here ;)


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

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


Re: [Zope-dev] moment when zope was started.

2005-11-08 Thread Tino Wildenhain

Victor Safronovich schrieb:

Hello Chris Withers,

Tuesday, November 8, 2005, 1:26:29 PM, you wrote:

CW Why on earth would you want to do that?!
   :) my product needs to do some specific things, right after the user
   is authenticated and becomes known. hook is hook and it may be overloaded
   as with zpublisher_exception_hook.


You might want to look at userfolder implementation, for example PAS.
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

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


Re: [Zope-dev] moment when zope was started.

2005-11-08 Thread Tino Wildenhain

Victor Safronovich schrieb:

Hello Tino Wildenhain,

Tuesday, November 8, 2005, 4:29:39 PM, you wrote:

TW You might want to look at userfolder implementation, for example PAS.
Thank you, i look at it, but this is another story ;).


Now you should tell us what you are really doing here :-)
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

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


Re: [Zope-dev] File uploading with Zope

2005-11-05 Thread Tino Wildenhain
Am Freitag, den 04.11.2005, 08:42 +0700 schrieb Thanh Hải, Hà:
 2005/11/3, Jens Vagelpohl [EMAIL PROTECTED]: 
 No it is not. And doing that opens up security risks. You need
 to
 write a Python product or external method.
 
 jens
 
  
  Is there an example of how to implement it in external method or
 python product?

Lukily zope prevents people with too less knowledge from schooting
themself in their feet. If you really want to do that, you go for
the docs. It isnt that hard but writing to the filesystem thru
the web has some (security) cerveats.

I'd recommend http://docs.python.org/tut/tut.html 
to get some grip on python. 

http://docs.python.org/tut/node9.html#SECTION00920

tells you about Files. You should know your fileupload object
in REQUEST is also just a file. I'd recommend reading and
writing it in chucks to avoid loading it into memory.

An external method (see zope book) is just a file
with (at least one) function definition where
the first argument should be self in this case 
you have access to context via self.

Now good luck!

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


Re: Get rid of configure/make? (was Re: [Zope-dev] Re: SVN: Zope/trunk/ Merge philikon-zope32-integration branch. Basically, this branch entails:)

2005-11-05 Thread Tino Wildenhain
Am Samstag, den 05.11.2005, 13:23 +0100 schrieb Lennart Regebro:
 On 11/4/05, Jim Fulton [EMAIL PROTECTED] wrote:
  Having said that, I don't really like the configure/make farce myself.
 
 Farce?
 
  I'd be happy to get rid of it.  I'm also happy to defer to the vocal
  majority.  Maybe it's worth revisiting this, which is why the provocative
  subject. :)
 
 I read through this post and I don't grok what the suggested alternative is.
 Could someone summarize?

The usual setup.py from distutils to make it more pythonic.

--Tino.

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


Re: [Zope-dev] ZSQL method and LIMIT clause

2005-11-02 Thread Tino Wildenhain
Am Donnerstag, den 03.11.2005, 09:37 +0700 schrieb Thanh Hải, Hà:
 Hello,
  
 My problem is I don't know to prevent Zope from adding LIMIT 1000 to
 the end of each of my ZSQL method (*.zsql). I am developing a
 filesystem-based product so I can not disable it by setting Maximum
 Rows to Retrieve to zero in the ZMI interface. I got stuck with this
 problem for a couple of weeks (google search and read documentation
 didn't help). Any help is greatly appreciated.

Go to the advanced tab of your ZSQL method and set the max rows there
to 0. 

IIRC, just adding the LIMIT clause to the query is database adaptor
specific. (Others may fetch only max rows from dataset)

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


Re: [Zope-dev] default encoding used in ZPublisher.

2005-10-08 Thread Tino Wildenhain
Am Samstag, den 08.10.2005, 19:15 +0100 schrieb Chris Withers:
 Hi All,
 
 I'd like to backport the change I made to fix: 
 http://www.zope.org/Collectors/Zope/1490
 
 ...to the 2.8 branch, would anyone have any objections to this?

Surely not, but what fix? :-)

Nice to see some movement on this issue

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


Re: [Zope-dev] Username/userid separation

2005-08-03 Thread Tino Wildenhain
Am Mittwoch, den 03.08.2005, 21:01 -0300 schrieb Leonardo Rochael
Almeida:
 Hi,
 
 I've started the lra-userid_username_separation-branch (from
 Zope-2_8-branch to start from a stable point) in order to implement
 proper userid/username separation in Zope.
 
 I don't intend to change the default user folder implementation, just
 the ZMI interface for owner and local roles so that they keep using
 userid for storage like they currently do but use usernames for display
 (specifically acl_users.getUserById(id).getUserName()). The intent is to
 never leak the userid to the ZMI (except for url query strings and
 such), and to never store the username persistently.
 
 The motivating usecase is an LDAP (eDirectory) authenticated system
 where the username for a user can change, but not the internal ID (a
 string).
 
 This will also help ActiveDirectory integration, which also has an
 internal ID to reference users.
 
 I remember there being a discussion about this in the list archives, but
 a Google search didn't help much.
 
 Are there any other projects in this area that I should colaborate with
 instead of duplicating efforts?
 
 Are there any considerations I should be aware of?

Are you aware of the PAS (Pluggable Auth Service) project?

http://cvs.zope.org/Products/PluggableAuthService/

They already have a separation of uid and login.
What this product could use is just some polishing
and a lot of documentation for the users.

All the other things you mention (including a LDAP
plugin) are already done.



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


Re: [Zope-dev] SiteRoot and VHM

2005-04-07 Thread Tino Wildenhain
Am Donnerstag, den 07.04.2005, 01:45 +0200 schrieb Florent Guillaume:
 After spending an hour helping someone debug a site that had an hidden 
 SiteRoot somewhere that prevented a virtual host monster from working, 
 it was suggested to me that if there's a virtual host monster, it 
 should take precedence (and deactivates) any further SiteRoot. I think 
 it's a good idea.

Better yet, it should just display a warning (and change its icon/title
or so) to display the problem and let the user decide the action to 
take.

Regards
Tino

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


Re: [Zope-dev] getPassword() from PythonScript

2004-12-27 Thread Tino Wildenhain
Am Montag, den 27.12.2004, 14:30 +0100 schrieb Krzysztof Kubacki:
  
 Hi,
  
 Zope 2-7-0
 Linux
 
 Is possible to get user's password by getPassword() method using
 Python Script?
 Any proxes don't work.
 
 the code below:
 user = context.getMemberById(context,'koperski')
 return user.getPassword()
 
 returns:
 The object is marked as private. Access to 'getPassword' of
 (MemberData at
 0x2353aea0) denied.

Well, you dont want anybody read your password. In fact
modern userfolder implementations only save crypted (hashed)
password so the function would be of no use anyway.

If you want to help users who forgot passwords, offer a
function to generate a new password.

Regards
Tino

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


Re: [Zope-dev] Python2.4 and Zope 2.7

2004-10-18 Thread Tino Wildenhain
Hi,

Am Mo, den 18.10.2004 schrieb Andreas Jung um 20:30:
 I have installed Zope 2.7.3 + Python 2.4b1 on my company site and it seems 
 to run pretty fine.
 I could not see the error below you described.

I can second that. python-2.4.0b1 as Andreas said.

:-)

Regards
Tino

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


Re: [Zope-dev] xml-rpc changes between 2.7.0 and 2.7.3 ??

2004-10-12 Thread Tino Wildenhain
Hi,

Am Di, den 12.10.2004 schrieb Alan Milligan um 0:16:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hi,
 
 I had a client that used to work on 2.7.0, and now doesn't on 2.7.3.
 
 The problem would appear to be that it's not substituting the
 xmlrpc.Response class for a GET request on a text/xml content type and
 therefore just delegating to the str() function instead of wrapping it
 in the xml-rpc xml response tags.
 
 I'm a little confused about this, as this only appears to happen in
 HTTPRequest::processInputs which didn't seem to be invoked for my
 xml-rpc call anyway ...
 
 tcpdump follows for the sceptics ...
 
 j..
 08:05:04.901469 IP mistress.balclutha.org.34257 
 mistress.balclutha.org.zope: P 1:456(455) ack 1 win 32767
 nop,nop,timestamp 225097763 225097723
 [EMAIL PROTECTED]@.)..W.x...
 j..GET /last-bastion.net/junk/rpm/RPC2/$RHN/mail/listPackages/1 HTTP/1.1
 Host: localhost:8080
 Accept-Encoding: identity
 x-client-version: 1
 x-transport-info: Extended Capabilities Transport (C) Red Hat, Inc
 (version 1.40)
 x-up2date-version:
 user-agent: rhn.rpclib.py/$Revision: 1.40 $
 x-rhn-transport-capability: follow-redirects=1
 x-rhn-auth-channels: ['mail', '1']
 content-type: text/xml
 x-info: RPC Processor (C) Red Hat, Inc (version 1.44)

Your log is a bit confusing maybe you better use tcpflow
for dumping. But what is clearly seen is the GET request.
I wonder how this ever was supposed to work since 
XML-RPC requires an entidy body for the message (which is
in XML). You can compare with RFC2616 - there is no 
entidy body in GET. Your client needs to use POST.
I suspect then it should work.

Regards
Tino

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


Re: [Zope-dev] xml-rpc changes between 2.7.0 and 2.7.3 ??

2004-10-12 Thread Tino Wildenhain
Hi,

Am Mi, den 13.10.2004 schrieb Alan Milligan um 3:31:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Tino Wildenhain wrote:
 
 |
 |I had a client that used to work on 2.7.0, and now doesn't on 2.7.3.
 |
 |The problem would appear to be that it's not substituting the
 |xmlrpc.Response class for a GET request on a text/xml content type and
 |therefore just delegating to the str() function instead of wrapping it
 |in the xml-rpc xml response tags.
 |
 
 | I wonder how this ever was supposed to work since
 | XML-RPC requires an entidy body for the message (which is
 | in XML). You can compare with RFC2616 - there is no
 | entidy body in GET. Your client needs to use POST.
 | I suspect then it should work.
 |
 
 Ok, I now more fully understand the subtlety of this explanation.
 
 What happened here is that in cgi.py's FieldStorage class, since this is
 a GET request, it completely ignores the CONTENT_TYPE environment and
 sets the content-type header to x-www-form-urlencoded.
 
 According to Dave Winer's spec at http://www.xmlrpc.com/spec, XML-RPC is
 supposed to be HTTP-POST based, where this issue is fully resolved.
 
 I have implemented this GET 'Extension' with this patch.
 
 I appreciate that supporting 'unofficial' extensions to protocols is not
 something we want to encourage, but is there any chance of getting this
 patch into zope core (ever)?

-1 by me. Go and fix the broken client instead. I wonder who came
to such a crazy idea to even think about sending a body with GET.

Regards
Tino

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


Re: [Zope-dev] ZPublisher timing hooks ?

2004-10-08 Thread Tino Wildenhain
Hi,

Am Fr, den 08.10.2004 schrieb Simon Michael um 4:10:
 Hi all,
 
 I'd like to print a this page was rendered in ... milliseconds  as you 
 see on php sites. I think I'd get better accuracy by getting at least 
 the start time from ZPublisher because.. actually it may not help, but 
 I'm thinking about the case where a request generates a redirect and 
 another request. I'd like to time the whole thing.
Well, retry requests in case of a storage conflict. But redirects
will actually cause two distinct requests you cannot join together.

When you want to show the render time, a DateTime() at start
and at end should suffice. I dont think you can get much
better figures here.

Regards
Tino


 Do you know if there are any facilities for this already in ZPublisher ?
 Any tips or pointers welcome.
 
 -Simon
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://mail.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists - 
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope )
 

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


Re: [Zope-dev] Re: inconsistent mimetype assignment for uploaded files

2004-10-05 Thread Tino Wildenhain
Hi,

On Tue, 2004-10-05 at 12:11, Dominic Hiles wrote:
 Dear Tres,
 
 --On 04 October 2004 13:43 -0400 Tres Seaver [EMAIL PROTECTED] wrote:
 
  Dominic Hiles wrote:
 
  Sorry, I missed these susbequent follow-ups before posting a reply a few
  minutes ago!  If we're going down this route, can we at least change
  things so that the guessing is done using
  ZServer.medusa.mime_type_table, rather than the default python mimetypes
  table?
 
  I would guess that the medusa version is more neglected than the Python
  one;  is your experience otherwise?
 
 
 I now realise where my confusion came from.  Python 2.1.3 had only 85 file 
 extensions listed in mimetypes.types_map.keys() whereas 
 ZServer.medus.mime_types_table showed 106 with Zope 2.6.4.  However, Python 
 2.3.3 is now up to 117, so I guess it makes the better choice. Apologies 
 for the noisethat said, I'm still unhappy that a browser can dictate 
 the mimetype chosen for an uploaded file, but I'm happy enough to fix that 
 at the application level.

Well, the problem might be the asymptation part of the filename
should be considered an indicator of its contents.

Arent there any libs for python to examine the contents (usually
the first few bytes) for the type of the file? 

Regards
Tino

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


Re: [Zope-dev] using VirtualHostMonster in a ZPublisher python module?

2004-09-20 Thread Tino Wildenhain
Am So, den 19.09.2004 schrieb Royce um 23:55:
...
 The module is a full website. It started way back when as a Bobo app
 and I've never learned of a good way to bring it into managed zope
 land. It's remained a ZPublisher app. Believe me, I know I'm not
 mainstream with this. Would like to bring it mainstream but
 practically speaking have to do it a bit at a time.
 
 My URLs do not all start with a / -- some are relative to current
 location. Are you saying that if I change them all to be absolute
 paths for the site it will work? Not the greatest practice but I'm
 looking for practical solutions.

Either you set the base tag yourself or you fix your 
relative links to starting with /. Both is a goot Idea
for a zope app as well.

Regards
Tino Wildenhain

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


Re: [Zope-dev] using VirtualHostMonster in a ZPublisher python module?

2004-09-19 Thread Tino Wildenhain
Hi, 

Am So, den 19.09.2004 schrieb Royce um 19:27:
 Hi all,
 
 Can I somehow get a VirtualHostMonster inserted into a
 ZPublisher-based python module published through changes to z2.py? Am
 having problems with base href with apache proxying for this
 python module. Have scoured past discussions but haven't found an
 answer to this.
 
 I have two areas declared to zhttp_handler():
 
 1. /z  -- standard managed zope area
 2. /app -- my python module which is a ZPublisher-based app that
 doesn't have /manage or the other managed zope stuff
 
 For #2 I modified z2.py per Amos' write up: How to Publish Your Own
 Python Modules (http://www.zope.org/Members/Amos/ZPublisher)  ...
 (thanks, Amos!). But I can't get the base href set properly for
 this.
 
 Changes to z2.py shown below. I really appreciate any light people can
 shed on this. Am willing to pay for help on this.
 
 Thanks!
 Royce
 
 p.s. alternately I could import the python module as an ExternalMethod
 but have had serious import problems when doing so.

What is this module doing? The feature you use is rarely used by
anyone. If you need the functionality of VHM there, I guess
you have to write your own or hardcode URL references somehow.

If you strictly use URLs relative to server root (that is, all
starting with /) there is no problem.

Regards
Tino Wildenhain

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


Re: [Zope-dev] Suggestion for small(?) change in BaseRequest.py. Security effects?

2004-09-02 Thread Tino Wildenhain
On Thu, 2004-09-02 at 12:38, Lennart Regebro wrote:
 ...

 Then, suggestion:
 =
 My tests seems to show that inserting a return after the unauthorized 
 call above:
  if user is None and roles != UNSPECIFIED_ROLES:
  response.unauthorized()
   return
 will solve this issue. It is now possible to NOT raise an exception in 
 unauthorized and still not get problems. Instead, you can now to a 
 RESPONSE.redirect(), or you can replace the body with setBody for a 
 login form, or something like that.
 
 I haven't been able to find any other code that continues after an 
 unathorized call, so this should be the only place. Also, during normal 
 operation, it is obvuiosly a safe bet. The change in itself has no nasty 
 side effects.

I'd add a transaction rollback before return actually, which is the
normal behavior when an exception is raised like Redirect or
Unauthorized

So if the situation is: user is anonymous or has insufficient rights
on a object which is handled after some changes are made to objects,
the challenge will take place and rolls back all these changes which
should not have taken place for that user.

so:

 if user is None and roles != UNSPECIFIED_ROLES:
 response.unauthorized()
 get_transaction().abort()
 return

should do the trick.

Regards
Tino Wildenhain


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


Re: [Zope-dev] Pointless code in ZPublisher.HTTPRequest ?

2004-08-31 Thread Tino Wildenhain
Am Di, den 31.08.2004 schrieb Paul Winkler um 19:08:
 Can anyone enlighten me on what this is for?
 From ZPublisher.HTTPRequest.HTTPRequest.keys:
...
 
 ** btw, this too smells a bit funny to me... why bother to keep a 
 separate data structure in sync, when we could just do:
 
 for i in range(9):
 try:
 del(self.other['URL%d' % i])
 i += 1
are you sure about the increment here?

 except KeyError:
 break
 

Regards
Tino

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


Re: [Zope-dev] Protected session items?

2004-08-27 Thread Tino Wildenhain
Hi,

Am Fr, den 27.08.2004 schrieb Lennart Regebro um 11:32:
 Lennart Regebro wrote:
  Another idea: Maybe I could make an object that does not have public 
  access, and store that in the session?
 
 That seems to work!
 
 Here is the class:
 
 class ProtectedUsername:
  An object where the username is not accessible from user code.
  def _setUsername(self, username):
  self.__username = username
 
  def _getUsername(self):
  return self.__username
 
 Very simple indeed.
 
 It is impossible to define up a class that has methods that start with 
 underscore from user code. and even other usercode classes seem not to 
 be pickable (is that correct?) so even though you can replace the value 
 of SESSION['__ac'] you can't replace it with any usercode object, and 
 definitely not with anything that has a _getUsername() method.
 And, as additional security, when I use I check that it really is a 
 ProtectedUsername object:
 
  if ob is not None and isinstance(ob, ProtectedUsername):
  username = ob._getUsername()
 
 This *should* mean, that as long as you don't allow usercode to import a 
 ProtectedUsername object, it should be safe. In fact, you can't even 
 figure out what the username is. ;)
 
Even a traceback will not show this username anymore if its inside
an object without __repr__ :-)

Regards
Tino

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


Re: [Zope-dev] New-style ExtensionClass

2003-12-01 Thread Tino Wildenhain
Dieter Maurer schrieb:
Jim Fulton wrote at 2003-10-20 11:55 -0400:
  ...
  Speaking of Zope 2.8, Jeremy Hylton has suggested that, perhaps, Zope 2.8
  should be a release that provides *only*:
  
  - New-style ExtensionClass, and
  
  - ZODB 3.3, featuring multi-version concurrency control,
  
  plus any features that have been added to the head since the Zope 2.7
  branch was created.
  
  This idea is pretty appealing to me.  I wonder what others think of it.

+1

+10

Tino

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


Re: [Zope-dev] Auto password expiry based on time

2003-08-16 Thread Tino Wildenhain
Hi Exteam,

1.) do you have a real name too?
2.) you should not crosspost questions
3.) you should have a look at rfc2616 which describes how
HTTP work.
In short: you cant modify anything in Zope to let
the browser expire the Basic-Authentication.
Its just impossible to do this.
To get closer to what you want, you need a cookie
or path based authentication, for example using
cookiecrumbler or ExUserFolder.
Next thing you would do is to set a lifetime of
the cookie maybe in the source of cookiecrumbler
or ExUserFolder.
Regards
Tino
Exteam wrote:
Hi all,

I have been trying to find a way to make the password
to a zope site expire after a limited fixed time, 
unsuccesfully using python. 

I know I have to use acl_users but which file to
modify in zope (which is used to log in the user)is
the question. Also does this mean I have to recompile
zope?
Any help or direction would be highly appreciated.

Regards
Subhankar

Yahoo! India Promos: Win TVs, Bikes, DVD players  more!
Go to http://in.promos.yahoo.com
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )



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


[Zope-dev] DBTab/ZEO configuration in Zope2.7 beta1

2003-08-15 Thread Tino Wildenhain
Hi,

looking thru code, examples and documentation,
it seems DBTab is included into Zope2.7.
Now how to configure it? Should I use
a dbtab.conf file as it was with 2.6?
The mkzopeclient.py with -z option
just builts a custom_zodb.py which does
not seem to be very 2.7-alike.
Shouldn't that configuration not be in zope.conf?
I cannot find relevant tags for the
zodb_db tag.
Are there any places I could look into for enlightement?

Regards
Tino Wildenhain
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] DBTab/ZEO configuration in Zope2.7 beta1

2003-08-15 Thread Tino Wildenhain
Hi Chris,

Chris McDonough wrote:
mkzopeclient -z should go away.  You should use the zope.conf file to
configure mounted databases.  Unfortunately I haven't had time to
include adequate examples in the sample config, but it might help a bit
to look at the lib/python/Zope/Startup/zopeschema.xml file.
That was the second thing I did :-) (first was to look into doc/)

I spottet the following directives:

mount-point/
(Seems to be specifiable multiple times)
connection-class/
class-factory/
ok, I can somehow stick ZEO.ClientStorage.ClientStorage
into it, but what then? How to set options for
ClientStorage? Hostname, Port, Cache, Fall-back-Storages
(as supported by DBTab)
I can provide the examples for the template once I have
working ones...
Regards
Tino
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] DBTab/ZEO configuration in Zope2.7 beta1

2003-08-15 Thread Tino Wildenhain
Just a step in between:

I found ZODB/component.xml, where
there seem to be the definition of
the relevant section of zope.conf.
zodb_db main
 zeo_client
server localhost:12345
 /zeo_client
mount-point /
cache-size  5000
pool-size   7
version-pool-size   3
version-cache-size  100
/zodb_db
zodb_db images
  filestorage
path $INSTANCE/var/Images.fs
  /filestorage
mount-point /images
 ...
/zodb_db

zopectl debug yields the following:

File Zope/lib/python/OFS/Application.py, line 349, in initialize 
tf._setObject('session_data', toc)

AttributeError: _setObject

strange. Perhaps the temp_folder isnt mounted?

There is no reference of the tempstorage in the above definition file...



Tino Wildenhain wrote:
Hi Chris,

Chris McDonough wrote:

mkzopeclient -z should go away.  You should use the zope.conf file to
configure mounted databases.  Unfortunately I haven't had time to
include adequate examples in the sample config, but it might help a bit
to look at the lib/python/Zope/Startup/zopeschema.xml file.


That was the second thing I did :-) (first was to look into doc/)

I spottet the following directives:

mount-point/
(Seems to be specifiable multiple times)
connection-class/
class-factory/
ok, I can somehow stick ZEO.ClientStorage.ClientStorage
into it, but what then? How to set options for
ClientStorage? Hostname, Port, Cache, Fall-back-Storages
(as supported by DBTab)
I can provide the examples for the template once I have
working ones...
Regards
Tino
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


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


Re: [Zope-dev] DBTab/ZEO configuration in Zope2.7 beta1

2003-08-15 Thread Tino Wildenhain
Hi Chris,

thank you. By the time I got it working when I first
used filestorage, bootet zope so it created all folders
as it wants and then stop zope and use that Data.fs
for ZEO. Then I was able to mount the zeo as /
I'll investigate this further and provide the examples.
For now even the fallback seems to work.

Storage type temporary seems to not mentioned anywhere,
but I'll test this too.
Kind regards
Tino Wildenhain
Chris McDonough wrote:
This is because the default is to mount a temporary storage at
/temp_folder.  Since you overrode the default, you need to specify the
tempfolder storage in the config.
Something like this (untested) as an additional zodb_db entry should
work:
zodb_db temporary
  temporarystorage
name sessions
  /temporarystorage
mount-point /temp_folder
/zodb_db
On Fri, 2003-08-15 at 16:40, Tino Wildenhain wrote:

Just a step in between:

I found ZODB/component.xml, where
there seem to be the definition of
the relevant section of zope.conf.
zodb_db main
 zeo_client
server localhost:12345
 /zeo_client
mount-point /
cache-size  5000
pool-size   7
version-pool-size   3
version-cache-size  100
/zodb_db
zodb_db images
  filestorage
path $INSTANCE/var/Images.fs
  /filestorage
mount-point /images
 ...
/zodb_db

zopectl debug yields the following:

File Zope/lib/python/OFS/Application.py, line 349, in initialize 
tf._setObject('session_data', toc)

AttributeError: _setObject

strange. Perhaps the temp_folder isnt mounted?

There is no reference of the tempstorage in the above definition file...



Tino Wildenhain wrote:

Hi Chris,

Chris McDonough wrote:


mkzopeclient -z should go away.  You should use the zope.conf file to
configure mounted databases.  Unfortunately I haven't had time to
include adequate examples in the sample config, but it might help a bit
to look at the lib/python/Zope/Startup/zopeschema.xml file.


That was the second thing I did :-) (first was to look into doc/)

I spottet the following directives:

mount-point/
(Seems to be specifiable multiple times)
connection-class/
class-factory/
ok, I can somehow stick ZEO.ClientStorage.ClientStorage
into it, but what then? How to set options for
ClientStorage? Hostname, Port, Cache, Fall-back-Storages
(as supported by DBTab)
I can provide the examples for the template once I have
working ones...
Regards
Tino
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


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


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



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


Re: [Zope-dev] Re: TALES idea: tuple unpacking

2003-07-23 Thread Tino Wildenhain
Shane Hathaway wrote:
Philipp von Weitershausen wrote:

I agree that it is 'yucky', but I have to disagree with your proposed
solution. I would rather suggest making TALES aware of integer indexes
for sequences. Example::
  tal:block repeat=user_files here/listFilesByUser
User: tal:dummy replace=user_files/0 /
File: tal:dummy replace=user_files/1 /
  /tal:block


Here's the way I'd like to spell it:

  div tal:repeat=user_files here/listFilesByUser
User: span tal:replace=user_files/int:0 /
File: span tal:replace=user_files/int:1 /
  /div
Literally, user_files/int:0 says get item 0 of user_files, 
interpreting '0' as an integer.  Technically, this could be interpreted 
as get the attribute named 0 or item 0, but an attribute name must be 
a string, so implicitly it really just says get item 0.

We've come up with a number of generally useful prefixes, BTW.  Off the 
top of my head:

call:   -- Call a named method
int:-- Look up an item by index
format: -- Perform simple formatting operations like format:money
zope:   -- Access a big Zope API
It sure would be nice to have these prefixes, both in Zope 2 and Zope 3.
Hm. But then would we not be better of using python: expressions in the 
first place? Seems to save a lot of typing.
I'd better like to build up lazy complex objects with python scripts
to pass to ZPT, I think this would make more sense.
Imagine instead of returning lists of dictionaries with all precalculated
values you return list of objects with real methods to calculate 
attributes on demand. (Yes, sounds like ZPatterns, but may be
a more easy interface)

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


Re: [Zope] Re: [Zope-dev] Zope Book call for assistance

2002-12-07 Thread Tino Wildenhain
Hi Chris,

--On Freitag, 6. Dezember 2002 21:27 -0500 Chris McDonough 
[EMAIL PROTECTED] wrote:

On Fri, 2002-12-06 at 19:13, Tino Wildenhain wrote:

These are exactly the things you shouldn't neither do in DTML
nor in ZPT :-)


What do you suggest people use for a templating language for email,
JavaScript, SQL, etc?  I think it's too much to expect them to use
Python to do this (esp. wrt SQL methods).


Oh, is it? I'd rather like to write %(name)s %(value)d
then dtml-whatever value
Recently I read the python-dbi spec and its very nice to see
what you could do with the above form. There are even
standard ways to do multiple querys or function calls.
(Hope I can contribute a product for this as time permits)

For E-Mail and Javascript templates I also find it less confusing
if I can use %(var)s form.

As a general solution for texts one can use file which has an edit
tab for several releases of zope now. Then use it like this:

context.thefile.read() % context.REQUEST.form

or whatever seems appropriate to get values from.

E-Mail even gets clearer with the solution since you can easyly
loop and do whatever instead of multiple dtml-sendmail tags.

Regards
Tino



I'd start the lessons with ZPT to only show static content
and may be macros.
Then the logical order would be introduction to python
scripts without HTML output - only show how they are
used to calculate and output simple values, lists,
dictionaries and so on.
Next chapter should show how one uses the scripts with
ZPT to provide output into HTML.
Then the usual things like Catalog, ZSQL, important
API parts, etc.

Don't you think this would be clearer for the beginner?


Sure.  I'd love to rewrite the entirety of the Zope Book.  But please
notice that I'm asking for help finishing the existing chapters, so I
don't think this is a realistic goal.

- C






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


Re: [Zope-dev] Zope Book call for assistance

2002-12-06 Thread Tino Wildenhain
Hi,

--On Donnerstag, 5. Dezember 2002 23:20 -0500 Chris McDonough 
[EMAIL PROTECTED] wrote:


...

Advanced DTML:

http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/AdvDTML.stx




erm... would advanced DTML not be the short sentence:
avoid DTML where you can? ;)

Btw. did you think of putting the whole DTML stuff at the end for
reference only to help migrating old products and turn the
whole thing a bit around so beginners get a clear path of
Zope development? I found it a bit confusing when I edited
the german translation of the 2.3 book a year ago.

Regards
Tino

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


Re: [Zope] Re: [Zope-dev] Zope Book call for assistance

2002-12-06 Thread Tino Wildenhain
Hi Chris,

--On Freitag, 6. Dezember 2002 09:50 -0500 Chris McDonough 
[EMAIL PROTECTED] wrote:

erm... would advanced DTML not be the short sentence:
avoid DTML where you can? ;)


That'd be ok, except that DTML can of course do things that ZPT can't,
yada yada yada.


These are exactly the things you shouldn't neither do in DTML
nor in ZPT :-)

I'd start the lessons with ZPT to only show static content
and may be macros.
Then the logical order would be introduction to python
scripts without HTML output - only show how they are
used to calculate and output simple values, lists,
dictionaries and so on.
Next chapter should show how one uses the scripts with
ZPT to provide output into HTML.
Then the usual things like Catalog, ZSQL, important
API parts, etc.

Don't you think this would be clearer for the beginner?

Regards
Tino




Btw. did you think of putting the whole DTML stuff at the end for
reference only to help migrating old products and turn the
whole thing a bit around so beginners get a clear path of
Zope development? I found it a bit confusing when I edited
the german translation of the 2.3 book a year ago.


That's probably a good idea.  But I think the rewritten chapters explain
when to use ZPT and when to use DTML.  And DTML still needs to be given
some attention for the reason I say above...

- C






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


[Zope-dev] Re: [Zope] post-publishing hook

2002-11-29 Thread Tino Wildenhain
Hi Carlo,


--On Freitag, 29. November 2002 13:07 +0100 Carlo Giomini 
[EMAIL PROTECTED] wrote:

Dear all,
I need a sort of post-publishing hook (so to say). I need Zope to call a
function of mine as the very last action of publishing a request, i.e.
after having built the response (and sent it to the browser possibly), but
before starting publishing a new request. My Zope server is running as a
single-threaded app.
Does Zope support this any way?


May be. But what are you trying to do? Perhaps there is a better
solution available if we know the whole picture.

Regards
Tino

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


Re: [Zope-dev] Moving forward with Zope 2.7

2002-11-26 Thread Tino Wildenhain
Hi Jamie,

--On Montag, 25. November 2002 22:29 -0800 Jamie Heilman 
[EMAIL PROTECTED] wrote:

* where possible, the banishment of environment variables
  as configuration.


I have to say, I think this is a bad idea.  What is it about
environment variables do you find worthy of banishment?  I can tell
you a few of the reason I really like them:

a) Code spent garnering values is minimal, I don't have to worry about
   acres of code spent parsing yet another config file format or the
   inevitable quirks and bugs in that code.  It doesn't get much simpler
   than os.environ.get()

b) I have tools to examine runtime environments which are external to the
   zope application and any of its limitations.  If I wanna know what
   a particular value is, I can just find out using ps.  I don't have
   to dig around in the zmi, or rely on any custom clients to query that
   data from a running instance.

c) Environment variables lend themselves to nicely to modification by
   third party tools; I can set environment variables in shell
   scripts, python scripts, whatever--the paradigm is language
   agnostic.  In particular I'm rather fond of using daemontools and
   its envdir program in conjunction with a custom z2.py replacement
   that lets me take advtanage of the excelent supervision and logging
   infrastucture provided by daemontools.  Force me to use an external
   config file and its going to make this kind of thing more difficult
   to do.


Oh, while we are at it - how do I set an environment variable in a python 
script
for use outside the script? E.g. like export does in shell scripts?

Regards
TIno

That said I know they aren't an end-all solution for all configuration
needs, but just because they don't fit every need I don't see why they
should be completely discounted.

--
Jamie Heilman   http://audible.transient.net/~jamie/
You came all this way, without saying squat, and now you're trying
 to tell me a '56 Chevy can beat a '47 Buick in a dead quarter mile?
 I liked you better when you weren't saying squat kid.	-Buddy

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




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


Re: [Zope-dev] Moving forward with Zope 2.7

2002-11-26 Thread Tino Wildenhain
Hi,

--On Dienstag, 26. November 2002 09:18 -0500 Chris McDonough 
[EMAIL PROTECTED] wrote:

On Tue, 2002-11-26 at 05:22, Tino Wildenhain wrote:


Oh, while we are at it - how do I set an environment variable in a
python  script
for use outside the script? E.g. like export does in shell scripts?


Not from a Zope Python Script (it's restricted by the security
machinery) but from any other piece of Python:

import os
os.environ['NAME] = 'VALUE'



Tried it:


os.environ['MYENVIRON']='FooBar'

^D

echo $MYENVIRON

 nothing.

What is wrong?

Regards
Tino


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


Re: [Zope-dev] access of non html documents

2002-11-13 Thread Tino Wildenhain
Hi Roberto,

One solution is to provide a temporary identifyer via cookie, which gets
set if the user sees your page but is not set if she wants to
download it directly. A simple non guessable scrable mechanism
using your page url, file url and probably ip of the downloader
should do for the cookie value.

File objects can have a precondition which refers to a method
where you can evaluate the cookie and serve the file or refuse
access (via raise Redirect,url)

I would not recommend to use HTTP_REFERRER for this, because this
is by no way relieable.

Regards
Tino

--On Dienstag, 12. November 2002 16:11 -0800 General Info 
[EMAIL PROTECTED] wrote:


i have the following situation.
i want the users to be able to download non html documents if that
document is refered to from an html document. however, i dont want the
users to be able to type the url and document name on the url box of
their browers and be able to download it.  for example:
the documents exist in http://www.wwwdotcom.com/nonhtmldocs/doc1.pdf
however, i dont want the users to type that url on their browser and
access doc1.pdf  i only want them to access it if that particular
document is linked from an html document.  i have seen some websites that
do that w/ images. how can i do that on zope? is it possible?
i would appreciate any comments/suggesstions.

-roberto




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


Re: [Zope-dev] acessing raw header information?

2002-11-03 Thread Tino Wildenhain
Hi Holger,

... snip ...

My next try will be to get my configuration to sent authorization
headers along the first request.  This sometimes happens but i
have no idea what the rules are.

but thanks for all the answers anyway!


Did you think about authorization with cookies? Perhaps cookies
are send with your javascript construct?

Regards
Tino

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


[Zope-dev] Re: [Zope] WISH LIST - idea of new, DTMLRelation object

2002-10-09 Thread Tino Wildenhain

Hi Jaroslav,


perhaps you want to use dtml-with rootfolder ...navigation.. /dtml-with

?

Rootfolder could be the object you want to be the root (of course)
or in case of ZopeRoot, you get it via REQUEST.PARENT[0]

However, before beating the dead horse, you should consider
replacing your routine with a python script, which could
also use ZCatalog in place of ObjectValues() - this saves
Memory and time since not all Objects have to be activated.

This approach would also help you to go the way from
DTML to ZPT which is recommended.

Greetings
Tino

For your

--On Mittwoch, 9. Oktober 2002 08:35 +0200 Jaroslav Lukesh 
[EMAIL PROTECTED] wrote:

 Hi all,

 I have an idea of new Zope DTML object with specific things. Dear Zope
 developers, please take attention to following lines:

 Imagine folder structure as

 /
   /folder1
   DTMLMethod
   DTMLDocument
   DTMLRelation
   image.gif
   /folder11
   /folder111
   /folder112
   /folder12
   /folder2
   /folder21

 All three DTML* contains same code:

 dtml-in objectValues('Folder')
   dtml-var idbr
 /dtml-in
 img scr=dtml-var absolute_URL/image.gif

 Imagine what is doing that DTML Document or DTML Method are called from
 inside of /folder11. DTML Document make bad, but still functional (due
 acquisition) link to image.

 But DTML Relation will still give that same output, independent from where
 you call it:

 folder11
 folder12
 img src=http://domain/folder1/image.gif;

 Output is still independend from where you calling that DTMLRelation and
 give you right URL paths (relative or basolute).

 I think that DTML Relation (or you can call it better) should be very
 usefull, for example:

 1. for navigation structure when you want to have constant navigation
 buttons what are dynamically generated from folder structure that have
 strong changes in any folder names
 2. for image menus, where it give right path to images folder instead of
 acquired images
 etc. (I now, you can specify path with dtml-var BASE1/images/image.gif)

 Many thanks for your kindly attention.

 If it have  simple solution by standard DTML code, let me know that code,
 please.

 Best Regards

 J. Lukesh

 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )



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



Re: [Zope-dev] Unicode Diffs

2002-09-25 Thread Tino Wildenhain


Hi Kent,

I'd like to compare your patches with
the ones I currently implemented on my
private branch.
I tried to use the default settings
in site.py. Unfortunately this requires
changes in the local installation of
python. (Dont know why the hell this
does not make use of locales)

Regards
Tino


--On Mittwoch, 25. September 2002 13:26 -0400 Matthew T. Kromer 
[EMAIL PROTECTED] wrote:

 kent sin wrote:

 I have a quick hack of Zope to use utf-8 as default
 encoding.

 This will allow all languages co-exist, making a
 heaven for different language users. Also, this help
 to easy Zope 2.6 for non latin users.

 I did not test this very throughly, but it seems not
 broken any thing yet.

 Please consider seriously make this into zope 2.6.

 I know this is very late, but the current 2.6 is very
 bad to non-latin users.

 Rgs,

 Kent Sin




 Please take a look at the proposals on dev.zope.org, and file this idea
 as a proposal.  In this way we can evaluate the solution with regards to
 the problem and the implementation.



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



Re: [Zope-dev] A modest proposal: Replace medusa with Twisted

2001-10-10 Thread Tino Wildenhain

Hi Itamar,

this sounds good for me. One would have to see it
in the wild. Would you be able to do a sample integration
for testing?

At the same time unmeshing the publishing process sounds
sexy to me...

Regards
Tino

--On Mittwoch, 10. Oktober 2001 12:11 +0200 Itamar Shtull-Trauring 
[EMAIL PROTECTED] wrote:

 Actually, this brings up this idea I had - Zope should replace medusa with Twisted. 
Why, you
 ask?

 1) Twisted separates transport from protocols, and the event loop it uses is   
extendable and
 generic. That means:

- It can run on Jython (using threads, someday with java.nio), and it can be 
integrated
 with the Tk and GTK event loops.

- Your protocol doesn't have to worry about the transport - Twisted supports SSL, 
TCP and
 unix domain sockets right now, without having to make any change to the protocols.

 2) Twisted is designed to run multiple servers and protocols at the same time, and 
these can
 be changed at runtime. It already includes pure python support for HTTP, FTP, LDAP, 
SMTP,
 POP3, DNS, telnet, AIM TOC, and IRC, all integrated with the main event loop (all 
have server
 support except DNS and LDAP). Adding new protocols to Zope is not easy, at the 
moment.

 3) Twisted is being actively developed and extended. medusa less so.

 4) Good integration with threads - while event based, twisted has a very nice model 
for
 dealing with threaded apps.

 5) Twisted has Perspective Broker, an async.ready remote-object protocol that 
supports
 caching, object migration, and remote messaging, with integrated authentication and
 authorization. And it ideologically meshes with the object publisher notion in 
Zope. No,
 really :)


 Twisted already includes a high-level web framework, but Zope probably would not use 
it, and
 instead build its own on top of twisted's low-level http support.



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



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



Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Tino Wildenhain

Hi,

--On Mittwoch, 27. Juni 2001 15:54 -0500 Stephan Richter [EMAIL PROTECTED] 
wrote:

 At 10:45 PM 6/27/01 +0200, Erik Enge wrote:
 On Wed, 27 Jun 2001, Tino Wildenhain wrote:

  if there are always many objects to create, may be it would be better
  to have a generic mechanism for asking users and represent
  app-/management interfaces rather then copying all the stuff over and
  over?

 That's what mk-zprod does.  Or rather, will do once I've made the
 interface friendlier.  (If I didn't misunderstand you.)

 If I have some time left at all tonight, I will make a wizard that could
 be  the initial front-end to mk-zprod. Could you give me a short list of
 things  you would like to ask the user?

Hm. a simple collection of questions? Certainly not.
I talking of a whole mechanism, where you group input
and output into contexts. From application view it
would be an API, it schould work no matter if the input/
output is generated from and to HTML, WML, XML or even
stand-allone GUIs.
I'm thinking of semantic groups of input, output and types
and ranges and default values including naming conventions.

Regards
Tino 

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



Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-27 Thread Tino Wildenhain

Hm. Wizard?

if there are always many objects to create, may be it would be
better to have a generic mechanism for asking users and
represent app-/management interfaces rather then copying all
the stuff over and over?

Regards
Tino

--On Mittwoch, 27. Juni 2001 08:54 -0500 Stephan Richter [EMAIL PROTECTED] 
wrote:


 So what does it do?  :)

 It is a general Wizard Builder with which you could build a Wizard that
 asks for all the necessary information to auto-generate a Python Product
 (for example).

 What I'm thinking is this: maybe use SmartWizard to meta-program you
 Python Product; that creates a definition file(s) of some sort which is
 sent to mk-zprod; mk-zprod consults the WarpFramework do make sure we
 don't create too much work for ourselves, and also provides us with nice
 default HTML/DTML-pages, and finally, Formulator could be used to do
 validation on those HTML/DTML-pages.

 Exactly that. But the SmartWizard would provide you with a framework to
 build this Make New Python Product Wizard. If I get far enough, I will
 release the pre alpha today, just you see the proof of concept...

 Or are we talking past eachother here?

 Nope, we don't. But SmartWizard is a more general tool than you were
 thinking of it.

 It would be very cool to have a tool like that.

 I agree. It is annoying to code all that stuff all the time.

 Regards,
 Stephan

 --
 Stephan Richter
 CBU - Physics and Chemistry Student
 Web2k - Web Design/Development  Technical Project Management


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



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



Re: [Zope-dev] dtml-in bug?

2001-05-28 Thread Tino Wildenhain

Hi Christian,

--On Montag, 28. Mai 2001 15:38 +0200 Christian Scholz [EMAIL PROTECTED] 
wrote:

 Hi!

 Dunno if it's again my strange setup, but I have some problem with
 dtml-in or maybe I simply didn't get something right..

 Well, I used the following dtml code:

 html
 dtml-in expr=[1,2,3,4,5,6] size=4
 abr
 /dtml-in
 /html


*rustle* try orphan=0 :-)

Greetings
Tino

 and I thought I will get three a's as output.. instead I get 6..
 If I do size=3 it's ok (3 output), if I do size=4 or 5 or 6 I get
 them all..
 (actually it happened with some more complex list of Result objects but
  this seems to do the same here)

 Can someone explain that to me..?

 (it's Zope 2.3.2, Python 1.5.2, SuSE Linux 7.0)

 cheers,
   Christian

 --
 COM.lounge  http://comlounge.net/
 communication  design [EMAIL PROTECTED]

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





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



Re: [Zope-dev] ZEO on SMP

2001-05-24 Thread Tino Wildenhain

Hi Dyon,


--On Donnerstag, 24. Mai 2001 05:07 +1000 Dyon Balding 
[EMAIL PROTECTED] wrote:

 Tino,

 Thanks for your reply.

 When you say it works fine on a dual processor machine, are you saying
 that a single ZEO client fully utilises both processors? or that you
 are running two ZEO clients successfully?

I'm running 2 clients at the same time (actually I'm running 3: 2 clients 
for HTTP requests and one client for FTP)


 Unfortunately I'm currently stuck with Windows due to both political
 reasons, and because we are interfacing to a large SQLServer database.

political reasons... will they never lern...
However, we are using strange databases with ZmxODBCDA/mxODBC
and Merant (http://www.merant.com) middleware.
This way we only have one NT Box to access the databases.

Regards
Tino

 -d

 On Wed, May 23, 2001 at 08:44:59PM +0200, Tino Wildenhain wrote:
 Hi Dyon,

 ZEO on a dual processor machine runs fine for me.
 I'm using redhat-linux for the server (ZEO and Clients
 on same machine)
 If you dont need strange things I would not recommend
 Win2k as server platform.

 Best regards
 Tino Wildenhain

 --On Mittwoch, 23. Mai 2001 11:35 -0700 Dyon Balding
 [EMAIL PROTECTED]  wrote:

  Hi,
 
  We are setting up a cluster of ZEO clients on dual processor machines.
  From some experiments and from searching through the mailing lists, it
  appears that a single Zope process will not take full advantage of the
  two processors.
 
  The solution would appear to be to run two ZEO clients on each server.
  This, however, is causing problems.
 
  I can successfully run two Zope (non-ZEO) processes on a single
  machine, but two ZEO clients don't seem to coexist nicely on the
  Windows 2000 machine.  The second client to start will accept
  connections, but never responds with anything.
 
  Zope: 2.3.2, ZEO: 1.0b3, Windows 2k for clients, Linux and Windows 2k
  for storage server.
 
  Is there a better solution?  If not, has anyone come across this
  problem?
 
  Any pointers appreciated
  -d
 
  ___
  Zope-Dev maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope-dev
  **  No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope )




 --
 Dyon Balding [EMAIL PROTECTED]





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



Re: [Zope-dev] ZEO on SMP

2001-05-23 Thread Tino Wildenhain

Hi Dyon,

ZEO on a dual processor machine runs fine for me.
I'm using redhat-linux for the server (ZEO and Clients
on same machine)
If you dont need strange things I would not recommend
Win2k as server platform.

Best regards
Tino Wildenhain

--On Mittwoch, 23. Mai 2001 11:35 -0700 Dyon Balding [EMAIL PROTECTED] 
wrote:

 Hi,

 We are setting up a cluster of ZEO clients on dual processor machines.
 From some experiments and from searching through the mailing lists, it
 appears that a single Zope process will not take full advantage of the
 two processors.

 The solution would appear to be to run two ZEO clients on each server.
 This, however, is causing problems.

 I can successfully run two Zope (non-ZEO) processes on a single machine,
 but two ZEO clients don't seem to coexist nicely on the Windows 2000
 machine.  The second client to start will accept connections, but never
 responds with anything.

 Zope: 2.3.2, ZEO: 1.0b3, Windows 2k for clients, Linux and Windows 2k
 for storage server.

 Is there a better solution?  If not, has anyone come across this
 problem?

 Any pointers appreciated
 -d

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





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



Re: [Zope-dev] Professional Sites Using Zope??

2001-05-16 Thread Tino Wildenhain

Hi Jawad,

we use the existing heterogenous database system of your
company for a B2B e-commerce solution. With zope we had
the flexibility to do so and archive releability too.
For access to databases we use Merant middleware together
with ZmxODBC.
Unfortunately the service is not open to the public.
It has come out only the strange databases are somewhat a
bottleneck for the system. However, we handle around
100 customer at any given moment round the clock.

The other site we built with zope is our companys public
web site. You'll find it on http://www.peacock.de/

HTH
Tino Wildenhain

--On Mittwoch, 16. Mai 2001 12:15 -0700 Jawad [EMAIL PROTECTED] wrote:


 Hi,

 I am a newbie in zope and want to use it to develop a e-commerce order
 processing system using Zope. I have experience in languages like
 Smalltalk and Java, so learning Zope is fun too. Please let me know What
 Database will be useful and please don't recommend MY SQL. It does not
 even support Foreign Key relationship. Does Zope support DB2 , SQL
 Anywhere, or Oracle.?

 I am also interested to know Is there any professionally developed sites
 in Zope/Python. Please let me know the URL.

 Regards
 Jawad






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



Re: [Zope-dev] convert zope objects to unicode

2001-05-16 Thread Tino Wildenhain

Hi Sin,

see http://dev.zope.org/Wikis/DevSite/Projects/SupportPython21/FrontPage

for whats going on at the unicode-sector for zope. IMHO it does
not make sense to duplicate effort.

Regards
Tino

--On Donnerstag, 17. Mai 2001 01:27 +0800 Sin Hang Kin 
[EMAIL PROTECTED] wrote:

 If I would like to hack zope to store all string objects in unicode, where
 is the best place to do it?

 I would like to have the incoming string go through unicode(inputstr,
 encoding) and all outgoing strings go through with
 outputstring.encode(encoding)

 However, after looking around the zope source, I can not find where is the
 appropriate place to do it.

 Rgs,

 Kent Sin
 -
 kentsin.weblogs.com
 kentsin.imeme.net


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





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



Re: [Zope-dev] Experiments with ORMapping

2001-05-10 Thread Tino Wildenhain

Hi Shane,

--On Donnerstag, 10. Mai 2001 11:32 -0400 Shane Hathaway 
[EMAIL PROTECTED] wrote:

...
 But storage of binary pickles was never the intention anyway.  I created
 a little interface that would allow you to store different classes in
 different PostgreSQL tables.  Before I got to implementing anything,

Is this much like the ZPatterns approach?
Or do we want to make some automatism to get tables created and destroyed
according to ZClasses needs?

 though, I had to move to another project.  But the file sketch shows
 (I hope) what I had in mind for making this work: programmers would call
 a bunch of functions that would put together a relational mapping tree.

 Now, in our discussion yesterday we decided ORStorage wasn't the right
 way to achieve relational mapping because there is no way for the
 database storage layer to have any context just given an OID.  If we
 instead consider writing a replacement for the stuff that's mainly in
 Connection.py, life gets a lot simpler.  At this level it *is* possible
 to know the parent OID of an object, though the current codebase does
 not use this opportunity.  Also, we wouldn't have to pickle and unpickle
 unnecessarily.

 So, if we have context, the relational mapping tree can work.  It would
 turn Zope into a purely relational application server, which a lot of
 folks apparently want.  ;-)

Oh, do they? ;)
Me dont :-)

Regards
Tino

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



oodb philosophics ;) was: Re: [Zope-dev] Experiments with ORMapping

2001-05-10 Thread Tino Wildenhain

Hi shane,

I think the motivation people want an RDBMS storage beneth zodb is
because they understand RDBMSes these days are performant, relieable
and can quiete easy maintained.

I've seen Java implementations using this approach to achive persistens
using as example Powertier[tm] to explicit map oop data to an RDBMS.
I didnt like it because you have to map your objects each time you create
a class, keep in mind not to infere with others etc...

Would it not be better to improve the abilities of the Filestorage
to handle updates better? May be most of the storage system in C?
With logfiles like modern RDBMSes use to incorporate fast changes?
However, to avoid pickling/unpickling and may be to update on
attribute-change, we need the approach you mentioned.

What about using a real oodb for zope? Dont remember any particular
product name, but I heard something.

Regards
Tino Wildenhain


--On Donnerstag, 10. Mai 2001 12:39 -0400 Shane Hathaway 
[EMAIL PROTECTED] wrote:

 Tino Wildenhain wrote:
  But storage of binary pickles was never the intention anyway.  I
  created a little interface that would allow you to store different
  classes in different PostgreSQL tables.  Before I got to implementing
  anything,

 Is this much like the ZPatterns approach?

 Which part of ZPatterns are you referring to?  The idea is to
 (generally) put all instances of a class in a certain table.  But the
 implementation details having nothing in common with ZPatterns.

 Or do we want to make some automatism to get tables created and destroyed
 according to ZClasses needs?

 I was thinking there would be a default table where everything gets
 stored by default.  A programmer then tells the ORMapping about specific
 classes and how to store them.

  So, if we have context, the relational mapping tree can work.  It would
  turn Zope into a purely relational application server, which a lot of
  folks apparently want.  ;-)

 Oh, do they? ;)
 Me dont :-)

 You know, it might be possible to get a team together to implement
 this.  How many out there would be interested in pursuing it further?
 IMHO it's not as much work as it sounds at first.  Zope being so
 object-oriented, you really can replace one of its most fundamental
 assumptions (an OODBMS) with something else (an RDBMS) without a huge
 effort.

 Shane





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



Re: [Zope-dev] another Zope hanging..

2001-05-03 Thread Tino Wildenhain

Hi,

most problems with hanging zope come from external RDBMS-access.
You wont see anything useful in the logs because there are
some objects published before the *sql-method is hanging.
If you have a monitor program for your database, you see many
blocks on tables or rows during this times.
I expect it with DB-adapters not fully thread aware and -
with to high timeout.

In fact it seems we need timeoutsockets and asynchronous
rdb-access.

If one thread is hanging, in the scope of 120 instructions,
zope has to wait before the global interpreter lock
frees. So if its stuck in the call of a C library
(database adaptors are most in C) it cannot continue
until the call returns.

Regards
Tino Wildenhain

--On Donnerstag, 3. Mai 2001 17:51 +0200 Christian Scholz 
[EMAIL PROTECTED] wrote:

 Hi!

 Alright... so you're getting an OSError 11, and you're using Zope 2.3.1.

 errno 11 is temporarily unavailable which means about as much as
 foobar feeblefar as far as I'm concerned ;-).

 great :)

 Though you've said the -M log isn't helpful here, I think it is.  If
 this is happening when a certain method is hit, or at a certain time of
 day, or when a certain number of connections are reached, etc., the -M
 log in combination with requestprofiler can help determine this.
 Otherwise it's a guessing game.

 ok, just thought that maybe some exception can be caught.. I will try to
 use requestprofiler now, though I checked the -M log before and around
 that time there was no obvious problem.. (also it's not loaded at the
 moment and it's  happening here and then, don't see a pattern there..)

 I will check (and maybe change the mysql adapter, as I recently had
 problems with it on a sun machine, too).

 thanks anyway :)

 Christian


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





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



Re: [Zope-dev] wxPython + ZODB = bliss

2001-04-24 Thread Tino Wildenhain

Hi Shane,

--On Dienstag, 24. April 2001 14:08 -0400 Shane Hathaway 
[EMAIL PROTECTED] wrote:

 http://www.zope.org/Members/hathawsh/pyTree


very nice! :)))
Regards
Tino

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