[Zope] Another DateTime Strangeness

2000-07-09 Thread Nils Jeppe


Zope just stored a DateTime I entered as 13:14 in a slightly odd way:

2000/07/09 13:13:60 GMT+1


Known bug?



___
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] cr/lf causing spaces

2000-07-08 Thread Nils Jeppe

On Sun, 9 Jul 2000, Ben Leslie wrote:

  One of my "favorite" issues with win/DOS has always been its use of CR+LF
  combinations. Why? Because all browsers interpret the thing as a SPACE.
 
 AFAIK this is an HTML thing, not a win/DOS thing. The HTML spec treats any
 whitespace as a space.

Well unix uses only cr by default, and browsers do not interpret that as a
whitespace.

  Or is there already a way to avoid this?
 I ran into the same problem (using Linux), and there isn't really anyway to
 get around it, apart from having un-nicely formatted DTML source.

Maybe a problem with the way the textarea editor netscape etc work.



Nils


___
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] http://www.zope.org: HORRIBLE HTML

2000-07-07 Thread Nils Jeppe

On Fri, 7 Jul 2000, Svante Kleist wrote:

 Has anybody tried to validate the Zope homepage? Like so:
  URL: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.zope.org%2F 

I think this can be mostly attributed to the people who built zope.org. If
I validate some pretty plain standard page, I get nothing
except:

Error: Missing DOCTYPE declaration at start of document (explanation...)

...which arguably isn't really necessarry.

Of course, each product than includes rendered objects is only as good as
the html of its authors. But to say Zope generates terrible html is a bit
much, imho. ;-)



Nils




___
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] Comparing two dates WITH time?

2000-07-05 Thread Nils Jeppe


Hello Gregor,

Thanks for the reply. If I read this bug correctly, though, it means the
time is off by one hour. I checked and all my date/time objects get stored
as gmt+1 (which of course is indeed wrong), however, shouldn't the
comparison of the two variables succeed anyway?


Best wishes,
Nils


On Wed, 5 Jul 2000, Gregor Hoffleit wrote:

 I guess this problem is just an incarnation of the open bug #1204
 (cf. http://classic.zope.org:8080/Collector/1204/view), "DateTime has
 bad problems with daylight saving times".
 
 A patch for is available as http://www.zope.org/Members/hathawsh/DateTime.py
 but it is not included in the CVS version.
 
 Essentially, this bug says that DateTime conversions and rendering tends to
 be wrong, when your're in a daylight saving time zone (e.g. 'Sommerzeit').



___
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] About Powered by Zope...very simple, isn't it?

2000-07-04 Thread Nils Jeppe

On Tue, 4 Jul 2000, Pierre Rougier wrote:

 is it possible..? I though it was in the "standard html header" but it
 seems that it is not...gasp...

Yeah it's in the standard html footer! :-)


best wishes,
Nils


___
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] Comparing two dates WITH time?

2000-07-04 Thread Nils Jeppe



Hello All,

I need help again.


How do I compare two dates that include full timestamps?

If I try date_updated = ZopeTime() it works only for dates that do not
include times... as soon as you have a time in the date_updated field,

If the date_updated contains only a date (200/07/04 for example) it works
flawlessly. What am I doing wrong?

(Note that if I set the date_updated to yesterday with a time, it works
also. is this a bug, or what? My logic would tell me that 2000/07/04
12:00:00 GMT+1 is smaller than 2000/07/04 11:59:00 GMT+1).


Please someone tell me what's going on, I am beinning to feel that I am
either asking too stupid questions, or I have problems no-one has any clue
about. I am not sure what'd frighten me more... ;-)


Best wishes,
Nils





___
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] File Sub-ZClass

2000-06-14 Thread Nils Jeppe


Hello fellow Zopians,


OK I seem to have further located my problem. In a File ZClass, index_html
is used to display the file. But I want my ZClass to have text in the
index_html, and display/offer the file for DL in a method, say,
download_html.

How do I display the File's data? In the Zope Quick Reference I found
something called view_file_or_image, but this works only as long as I
don't have a custom index_html...

Help, anybody? :)



Nils


-- 
 "Like most of life's problems, this one can be solved with bending."
--- Bender



___
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] Accessing Superclass methods?

2000-06-14 Thread Nils Jeppe


Hello,

I have yet another question (sorry to spam y'all)..

How do I call a ZClass'es superclasses' methods in dtml? :-)



best wishes,
Nils



-- 
 "Like most of life's problems, this one can be solved with bending."
--- Bender



___
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] Accessing Superclass methods?

2000-06-14 Thread Nils Jeppe

On Wed, 14 Jun 2000, Rik Hoekstra wrote:

  How do I call a ZClass'es superclasses' methods in dtml? :-)
 They're automatically available

not if I overwrite them...

In Java I think you can do somethink like call super.method().


Best wishes,
Nils


-- 
 "Like most of life's problems, this one can be solved with bending."
--- Bender



___
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] Zope 2.2 beta 1 released

2000-06-13 Thread Nils Jeppe

On Tue, 13 Jun 2000, Anthony Baxter wrote:

  I go to the manager interface of my root folder in Zope and it dies with
  a Dr Watson :-(   
 ?? What's a Dr Watson? I haven't seen that error...

Wasn't that a sort of gpf/exception handler under Windows
3.1 / NT3.51?




-- 
 "Like most of life's problems, this one can be solved with bending."
--- Bender



___
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 access stored file data?

2000-06-13 Thread Nils Jeppe


Hi Folks,

OK I am progressing slowly. But I am stuck again. I have created a
ZClass which is a subclass of CatalogAware and File. I have created an
index_html view and mapped it in the Views tab to the View
"category" if that's the right word. The purpose is that when the
Instance's URL is enterd, information about the file will be displayed. On
this page I want a link which will enable download or viewing of the
file. But... how do I do this?

I really can't figure it out. Help would be appreciated...



best wishes,
Nils



-- 
 "Like most of life's problems, this one can be solved with bending."
--- Bender



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