Re: [Zope] DateTime mess

2005-11-25 Thread Andreas Jung



--On 25. November 2005 12:43:48 -0800 Dennis Allison 
<[EMAIL PROTECTED]> wrote:




True.  But the context of this thread was whether deprecation made sense
or not.  I was agreeing with Chris that the DateTime problems are better
solved by replacement than by patching, but also that there is a large
amount of code that has been made to work using the current DataTime and
that investment needs to be protected.



I agree that is should be replaced but I also mentioned that we tried to 
achieve that already some years ago and we gave upso talking about 
deprecation really makes sense when someone puts a replacement module on 
the table. I know that the DateTime module is a piece of crap but crap you 
can live mostly with (as long as you don't need timezones :-)).


-aj


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


Re: [Zope] 120MB file import failures

2005-11-25 Thread Dieter Maurer
Michael Dexter wrote at 2005-11-24 11:49 -0800:
>I apologize if this is a FAQ, I could not find the answer.
>
>I would like to put a 120MB file into ZODB and it is constantly failing.

But you should have learned that you cannot simply say "is failing"
but must describe precisely (error information, traceback) *how*
it is failing...

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


Re: [Zope] Psycopg export/import

2005-11-25 Thread Dieter Maurer
William Herring wrote at 2005-11-25 11:31 -0500:
> ...
>However, the methods I imported from Zope 2.2.2 do not connect to the
>database.  Message is "Warning: The database connection for this method
>cannot be found!".  However, the Connection ID is shown and all appears to
>be in place.

Where is this message?
Comes it from an exception? If so, with what traceback?


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


Re: [Zope] DateTime mess

2005-11-25 Thread Dennis Allison

True.  But the context of this thread was whether deprecation made sense 
or not.  I was agreeing with Chris that the DateTime problems are better 
solved by replacement than by patching, but also that there is a large 
amount of code that has been made to work using the current DataTime and 
that investment needs to be protected.   


On Fri, 25 Nov 2005, Andreas Jung wrote:

> 
> 
> --On 25. November 2005 12:22:05 -0800 Dennis Allison 
> <[EMAIL PROTECTED]> wrote:
> 
> >
> > If I have a vote, +1 on deprecation and replacement with something less
> > buggy.
> 
> You can only deprecate when you have something better. As long as there is 
> no useful replacemenet there is nothing to deprecate :-)
> 
> -aj
> 
> 

-- 

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


Re: [Zope] DateTime mess

2005-11-25 Thread Andreas Jung



--On 25. November 2005 12:22:05 -0800 Dennis Allison 
<[EMAIL PROTECTED]> wrote:




If I have a vote, +1 on deprecation and replacement with something less
buggy.


You can only deprecate when you have something better. As long as there is 
no useful replacemenet there is nothing to deprecate :-)


-aj



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


Re: [Zope] DateTime mess

2005-11-25 Thread Dennis Allison

If I have a vote, +1 on deprecation and replacement with something less
buggy.  We have spent enormous amounts of time trying to sort out and then
work around DateTime problems.  On the other hand, we have a substantial
amount of code that uses DateTime and finally, mostlyt works.  We'd be
unhappy if we had to rewrite everything--so a long deprecation period
makes sense.

Timezones, BTW are just the tip of the iceberg.  Datetime tries to be
a "it just works" solution to an inherently ambiguous problem and 
incorporates many surprises.




On Fri, 25 Nov 2005, Chris Withers wrote:

> Peter Bengtsson wrote:
> > -1 on making DateTime deprecated. I'm sure thousands of zope people
> > use DateTime in thousands of places. Technically it might be correct
> > deprecate it but politically it's just going to put people off from
> > upgrading.
> 
> I'm sure it would be fairly trivial to write an unpgrader, but really, 
> deprecating it, even if the deprecation period is fairly long, is the 
> only sane way to tackle this...
> 
> cheers,
> 
> Chris
> 
> 

-- 

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


Re: [Zope] Creating a DTM Document in a variable folder.

2005-11-25 Thread Peter Bengtsson
folder = getattr(context, 'b')
adder = folder.manage_addProduct['OFSP'].methodAdd
adder('index.html', 'Some title')

That creates it with default content. To change it you'll have to call
dtmlm = getattr(context, 'index.html')
dtmlm.manage_edit("bla bla bla bla bla", 'Same title')
# or
f = open('/tmp/foobar.html')
dtmlm.manage_upload(f)




On 11/25/05, Martin Koekenberg <[EMAIL PROTECTED]> wrote:
>
>  Hello,
>
> I don't have any Python experience yet, so who has a solution for this
> 'problem'.
>
>  Example:
>
> I 've 3 folders a, b & c.
> I want to create a dtml document in a folder by a form. The folder is a
> variable in my form.
>  The formis no problem, the form action is no problem. The python script to
> craete that document is my problem.
>
>  How can I create a DTM Document in a variable container ?
>
>  Regards,
>
>  Martin Koekenberg
>
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
>
>
>


--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Psycopg export/import

2005-11-25 Thread William Herring
As part of an object, I have exported several zsql methods from Zope 2.2.2
and imported to Zope 2.6.2.  In the later version I am using Psycopg as a
database connection to Postgres.  It is working fine for all ZSQL methods I
have created within 2.6.2.

However, the methods I imported from Zope 2.2.2 do not connect to the
database.  Message is "Warning: The database connection for this method
cannot be found!".  However, the Connection ID is shown and all appears to
be in place.

An ideas?  Thanks in advance.


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


[Zope] Creating a DTM Document in a variable folder.

2005-11-25 Thread Martin Koekenberg


Hello,

 
I 
don't have any Python experience yet, so who has a solution for this 
'problem'.

 

Example:

 
I 
've 3 folders a, b & c.
I 
want to create a dtml document in a folder by a form. The folder is a 
variable in my form.

The formis no problem, the form action is no problem. The python script to 
craete that document is my problem.

 

How can I create a DTM Document in a variable container ?  

 

Regards,

 

Martin Koekenberg

 

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


Re: [Zope] DateTime mess

2005-11-25 Thread Lennart Regebro
On 11/25/05, Chris Withers <[EMAIL PROTECTED]> wrote:
> Really? What should we be using instead then?

datetime works much better in most cases.

> I honestly think it _should_ go away, just with plenty of notice...

Well, possibly.

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] 120MB file import failures

2005-11-25 Thread Chris Withers

Michael Dexter wrote:


I apologize if this is a FAQ, I could not find the answer.

I would like to put a 120MB file into ZODB and it is constantly failing.


Have a look at Tramlines from Infrae...

cheers,

Chris

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

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

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


Re: [Zope] DateTime mess

2005-11-25 Thread Chris Withers

Lennart Regebro wrote:

It depends on what you mena with deprecated. It *is* deprecated from
the point of view, that if you start developing something new now,
then don't use it.


Really? What should we be using instead then?


It is not deprecated in the way that "this will go away in the
future", though. It must stay for backwards compatibility reasons, but
if it can be fixed, than this would be a Good Thing.


I honestly think it _should_ go away, just with plenty of notice...

cheers,

Chris

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

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

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


Re: [Zope] DateTime mess

2005-11-25 Thread Chris Withers

Peter Bengtsson wrote:

-1 on making DateTime deprecated. I'm sure thousands of zope people
use DateTime in thousands of places. Technically it might be correct
deprecate it but politically it's just going to put people off from
upgrading.


I'm sure it would be fairly trivial to write an unpgrader, but really, 
deprecating it, even if the deprecation period is fairly long, is the 
only sane way to tackle this...


cheers,

Chris

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

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

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