[Zope-dev] Re: [Zope] WebDAV/Word readonly problem resolved

2001-11-26 Thread Joachim Schmitz

Hurrahhh !

it works now.

On Mon, 26 Nov 2001, Andreas Jung wrote:

 I also checked-in a newer version of ZServer/HTTPResponse.py some minutes
 ago
 to provide a general Etag support. This should work now.

 Andreas
 - Original Message -
 From: Joachim Schmitz [EMAIL PROTECTED]
 To: Andreas Jung [EMAIL PROTECTED]
 Cc: zope-list [EMAIL PROTECTED]; zope-dev [EMAIL PROTECTED]
 Sent: Monday, November 26, 2001 13:39
 Subject: Re: [Zope] WebDAV/Word readonly problem resolved


 Hallo Andreas,

 I downloaded and installed the new DTMLMethod.py, but no change in behavior,
 did you test it ?

 I looked at the networkdump, and still no Etag in the HTTPResponse :-(



 On Mon, 26 Nov 2001, Andreas Jung wrote:

  The long outstanding problem that WinWord treated a .html file as
  read-only when it has been opened through WebDAV/webfolder is finally
  resolved. Joachim Schmitz gave the hint that WinWord depends on the
  HTTP ETAG header that Zope usually did not send. This behaviour is odd
  because HTTP 1.1 does not require that a server sends this header.
 
  The CVS trunk and Zope-2_4-branch contain a modified version of
  lib/python/OFS/DTMLMethod.py that solves that problem.
 
  Andreas
 
  -
 -Andreas JungZope Corporation   -
-   EMail: [EMAIL PROTECTED]http://www.zope.com  -
   -  Python Powered   http://www.python.org -
-   Makers of Zope   http://www.zope.org  -
 -  Life is a fulltime occupation  -
  -
 
 
 
  ___
  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 )
 
 

 Mit freundlichen Grüßen

 Joachim Schmitz

 AixtraWare, Ing. Büro für Internetanwendungen
 Hüsgenstr. 33a, D-52457 Aldenhoven
 Telefon: +49-2464-8851, FAX: +49-2464-905163


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





Mit freundlichen Grüßen

Joachim Schmitz

AixtraWare, Ing. Büro für Internetanwendungen
Hüsgenstr. 33a, D-52457 Aldenhoven
Telefon: +49-2464-8851, FAX: +49-2464-905163


___
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] Transaction environment in threaded zope-product

2001-11-26 Thread Chris McDonough

You should be able to pass the database into a thread object and
obtain a connection from it in order to manipulate the underlying
database like so:

class YourThread(threading.Thread):
def __init__(self, db):
self.db = db

def run(self):
threading.Thread.run(self)
self.doSomething()

def doSomething(self):
conn = self.db.open()
root = conn.root()
app = root['Application']
print app.Control_Panel.objectIds()
app.foo = 'bar'
get_transaction().commit()

Then in your code that has a reference to the database via
persistence:

  db = self._p_jar._db
  worker = YourThread(db)
  worker.start()


- Original Message -
From: Christian Theune [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, November 09, 2001 6:46 AM
Subject: [Zope-dev] Transaction environment in threaded zope-product


 Hi.

 I have a zope product, that uses threads, to control programs
 running outside zope and doing some async stuff.

 What I found is, that i can't do changes from the self-started
 thread (ChrisW: that's the problem... ;) ).

 But how do I get into a transaction do be able to change things on
 persistent objects?

 get_transaction().begin() doesn't work, and I don't find any
 documentation to get started from ...

 plz help me

 Christian

 --
 Christian Theune - [EMAIL PROTECTED]
 gocept gmbh  co.kg - schalaunische strasse 6 - 06366 koethen/anhalt
 tel.+49 3496 3099112 - fax.+49 3496 3099118 mob. - 0178 48 33 981

 reduce(lambda x,y:x+y,[chr(ord(x)^42) for x in 'zS^BED\nX_FOY\x0b'])

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



[Zope-dev] Global Variable

2001-11-26 Thread Pascal Samuzeau

Hi,   
  
I've that code :  
  
  
dtml-let TEST='dir'   
dtml-in portal_catalog.searchResults(Type='Cas clinique',   
review_state='published', sort_on='Date', sort_order='reverse')  
size=1 end=1 
 dtml-var id
/dtml-in
/dtml-in
  
script type=text/javascript   
  
var image   = 0;  
var delai   = 2000;   
var icone   = new Array ();   
var lelien  = ''; 
var max =  dtml-var  
compte_images(repertoire='/uv/web/cnr/cas/TEST;',prefixe='Ima-') -  
1;  
  
I need to get the value returned by the dtml-var id in the function 
called compte_images and in some others later in the code.  
  
My question : I need something like a global variable, that I may use 
here and there.   
  
But, infortunately, I don't know how to write it. 
  
Anyone knows it ? 
  
Thank you 
PS
--
Oreka ! Nous sommes l'internet moins cher !   
Surfez 25% moins cher avec http://www.oreka.com   

___
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] WebDAV/Word readonly problem resolved

2001-11-26 Thread Andreas Jung

The long outstanding problem that WinWord treated a .html file as
read-only when it has been opened through WebDAV/webfolder is finally
resolved. Joachim Schmitz gave the hint that WinWord depends on the
HTTP ETAG header that Zope usually did not send. This behaviour is odd 
because HTTP 1.1 does not require that a server sends this header.

The CVS trunk and Zope-2_4-branch contain a modified version of 
lib/python/OFS/DTMLMethod.py that solves that problem.

Andreas

-
   -Andreas JungZope Corporation   -
  -   EMail: [EMAIL PROTECTED]http://www.zope.com  -
 -  Python Powered   http://www.python.org - 
  -   Makers of Zope   http://www.zope.org  - 
   -  Life is a fulltime occupation  -
-



___
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] WebDAV/Word readonly problem resolved

2001-11-26 Thread Joachim Schmitz

Hallo Andreas,

I downloaded and installed the new DTMLMethod.py, but no change in behavior,
did you test it ?

I looked at the networkdump, and still no Etag in the HTTPResponse :-(



On Mon, 26 Nov 2001, Andreas Jung wrote:

 The long outstanding problem that WinWord treated a .html file as
 read-only when it has been opened through WebDAV/webfolder is finally
 resolved. Joachim Schmitz gave the hint that WinWord depends on the
 HTTP ETAG header that Zope usually did not send. This behaviour is odd
 because HTTP 1.1 does not require that a server sends this header.

 The CVS trunk and Zope-2_4-branch contain a modified version of
 lib/python/OFS/DTMLMethod.py that solves that problem.

 Andreas

 -
-Andreas JungZope Corporation   -
   -   EMail: [EMAIL PROTECTED]http://www.zope.com  -
  -  Python Powered   http://www.python.org -
   -   Makers of Zope   http://www.zope.org  -
-  Life is a fulltime occupation  -
 -



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



Mit freundlichen Grüßen

Joachim Schmitz

AixtraWare, Ing. Büro für Internetanwendungen
Hüsgenstr. 33a, D-52457 Aldenhoven
Telefon: +49-2464-8851, FAX: +49-2464-905163


___
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] Stack overflow on tru64 with Zope 2.4.3 and Python 2.1.1

2001-11-26 Thread Masoud Kazemi


Hello,

I am having trouble with Zope 2.4.3 and Python 2.1.1 and a stack
overflow problem.  I have upped the maxthreads and  per process
(doubled)
stack that Michael suggested on a previous message
(http://lists.zope.org/pipermail/zope-dev/1999-November/002116.html),
but that did not fix the problem.  Python was compiled with threads,
and the only test that failed was test_format.  

I saw some stuff on Google about Python 1.5 series and stack
overflows with re ... could this problem be related?

The exact error message is:

Stack overflow: pid 1723, proc python, addr 0x140ed5fe8, pc
0x120062858

Any suggestions or help is appreciated.

Thanks

Masoud




Masoud Kazemie-mail: [EMAIL PROTECTED]
Statistical Laboratory   Phone : (515) 294-2186
Iowa State UniversityOffice: 212 Snedecor

___
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] ZOPD as a publishing platform

2001-11-26 Thread Scott Deerwester

  Current thinking is to build a tiny little ZODB implementation in C
  (anybody have one?) to access the DB on the handheld, plugged into a
  tiny little HTTP server like thttpd or Abyss, and an embedded browser
  like ViewML to access it.

 ZODB is pretty intimately connected to Python.  Rewriting all of ZODB in
 C would be pointless, since you'd still need a Python interpreter to
 make sense of the objects coming out of the database.

 Maybe you just need a simple data store, like a Berkeley DB file.


Sort of, but Berkeley DB is probably too big and complicated to use on a
wimpy little handheld - the library alone is nearly 1Mb.

Hmm. How about some sort of custom simple data store with a Python
wrapper on it, so that I could use Zope to let people help build the
content sets from wherever they are, and then just move the whole
content wad to a handheld? The content's going to be something like
simple HTML - like SquishDot articles - with a catalog holding metadata:
language, subject, expiry date, source...

Sort of like:

[ Zope ] - [ Python wrapper ] - [ C API ] - [ Content DB ]

in the content management context and:

[ Embedded HTTP server ]  - [ C API ] - [ Content DB ]

for accessing it. Hmm... Has anybody done anything like this?



___
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] Integrating mailman with Zope?

2001-11-26 Thread Joachim Werner

Hi!

 Has anyone out there tried this already?  Last we heard, Mailman was
 a standalone CGI program, and in order to make it work with Zope you
 had to run both Mailman and Zope behind another web server (such as
 Apache).

Yes, but if you control the Mailman from Zope, you will of course not need
the cgi component, which only provides management interfaces and the mailing
list archives, not the actual mail sending functionality.

 What we're planning to do is write a CGI product for Zope 2.3.3 so that we
 can run CGI programs with ZServer under Zope, eliminating the need to set
 up and configure Apache or any other web server.

 If you've already written a CGI Zope product (i.e., a product that lets
 you run CGI programs from any Zope folder), please let me know! Otherwise,
 I'll continue the experiments. ;-)

There already seems to be a product that can do this. But as I stated above,
I'd take the Mailman code as a library and rewrite the management screens in
Zope. For adding a new list, you still need to change stuff in the mail
configuration of your machine (i.e. create an alias for the list). This
COULD be scripted from Zope, but might be a security issue.

Joachim


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