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 )


[Zope-dev] [DateIndex bug] catalog related, already post on collector

2002-12-06 Thread Paolo Galati
Product DateIndex.py,v 1.7 2002/08/14 22:19:27

Using DateIndex on CMF1.3
An owerflow error is raised from DateIndex product
on line 187 indexing the date fields of products
deriving from DefaultDublinCoreImpl class.
(almost all CMF products)

187: t_val = ( ( ( ( yr * 12 + mo ) * 31 + dy ) * 24 + hr ) * 60 + mn )

The t_val value exceed int limit (2147483647) because the
DefaultDublinCoreImpl set, for object that never expire,
the value:
__CEILING_DATE = DateTime( , 0 ).


-- 
Paolo Galati - [ n o z e  S.r.l. ]
Via Giuntini, 25/29 - 56023 Navacchio - Cascina (PI)
Tel +39  (0)50 754380 - Fax +39 (0)50 754381
mailto:[EMAIL PROTECTED] - http://www.noze.it

___
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 Chris McDonough
 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.

 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 )



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 )


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

2002-12-06 Thread Chris McDonough
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).

 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 )