Re: [Zope] Found an fatal error in Zope 2.3.0 :) RESOLVED

2001-01-31 Thread Radek Hnilica

This problem was completly resolved.  My mistake, I incorrectly create debian binary 
package.  After creating correct package the new zope 2.3.0 is up and running.

-- 
Radek Hnilica 

___
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] How to get a name of uploaded file

2001-01-31 Thread Radek Hnilica

Hello zopists,

I create a small application.  User enters file via web interface, and this is parsed 
and pushed into SQL.
the input form is DTML method like this
 DTML method: send_file == I use [] instead of <>
[dtml-var standard_html_header]
...
  [form action="receive_file" method="post" enctype="multipart/form-data"]
...
[input type="File" name="file" value=""]
...
[input type="submit" value=" Send File "]
...
  [/form]
[dtml-var standard_html_footer]
== end of file =

The receive_file is external python method
= receive_file, function name= rcv_file
from string import strip
import pg

def rcv_file(self, REQUEST):
...
fileobj = REQUEST.form['file']
filelist = fileobj.readlines()
fileobj.close
for line in filelist:
(* parse line and push it into SQL server *)
...
== end of file 

Is there any way how to get a name of uploaded file.  I mean another than let user 
type the name in another field.
I was looking in REQUEST object and nothing about the filename found there.
I allso read Zope Book, digging in documentation arround, but with no success.

-- 
Radek Hnilica 

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




Re: [Zope] Re: where can I find Debianised source for zope-2.3.0 ?

2001-01-31 Thread Radek Hnilica

> Not to forget:
>   3) ship patches to the maintainer if it works for you - may be this will
>  help him :)

I'm in mail contact.  If I found something interesting, I send it to him.

-- 
Radek Hnilica 

___
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] Found an fatal error in Zope 2.3.0 :)

2001-01-31 Thread Radek Hnilica

Hello all,

While trying to debianize, compile and install new zope 2.3.0 I found that
file z2.py doesn't contain necesary first line.  I look to previous version 2.2.4 and 
there it is.

#!/usr/bin/env python

The source was taken from zope.org. I'v also look at CVS and there
it's missing to.

-- 
Radek Hnilica 

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




Re: [Zope] where can I find Debianised source for zope-2.3.0 ?

2001-01-31 Thread Radek Hnilica

> On Wednesday 31 January 2001, at 11 h 8, the keyboard of Radek Hnilica 
 
> This is quite common: most upstream maintainers do not want to ship debian/ 
> directory, ".spec" file, etc.

For example the Gwydion Dylan compiler has debian directory in their CVS.  It's nice 
thing if it's up to date.

> > Do anyone know where the debianised source can be taken from.
 
> 2) Download the 'zope-XXX.diff.gz' from the source/ directory of a Debian archive.

I know how to get and compile debianized source, but in official tree the latest 
version of zope is 2.2.4-3.  In this time I'm trying to use debian directory from 
2.2.4 and for sure rename 2.3.0 to 2.2.9-1.


-- 
Radek Hnilica 

___
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] where can I find Debianised source for zope-2.3.0 ?

2001-01-31 Thread Radek Hnilica

Hello all,

I'm using Debian/GNU Linux Potato on all my machines.  And I want try to install Zope 
2.3.0 on my server.  I'm capable of compiling zope from debian source package, but on 
main zope site zope.org I found only plain zope source.  This package doesn't contain 
debian directory.

Do anyone know where the debianised source can be taken from.

Thanks

-- 
Radek Hnilica 
http://www.balga.cz/hnilica

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