Re: [Zope] dtml

2001-01-07 Thread Jan H. Haul

nando n wrote:
> 
> i want to know as much as possible about dtml.

Nando,
this is the perfect time to read the Zope Book. You can read it
on the Zope.Org site or download the HTML and print a copy
yourself. It will be published by O'Reilly later this year, by
the way.
This book is just made as a good, in-depth tutorial answering
broad questions like yours.

After you've read the book, feel free to contact the list again
with specific questions if there is anything you need help with -
we all do it, and it surely helps.

On the other hand, very broad, basic questions are best answered
by the book. Really. To fully answer your question on the list,
someone would just have to rewrite the chapter on DTML of the
Zope book, which is a waste of everybodies' time, including
yours, as it would surely take longer than downloading the
chapter from zope.org :-)

For goot DTML examples, you can click at the "DTML source" link
on every Zope.org page.

Jan

___
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] site structure

2000-12-14 Thread Jan H. Haul

Nuno Goncalves wrote:
> 
> > On Thu, 14 Dec 2000, Nuno Goncalves wrote:
> > > How can we define a structure for an entire site with Zope ?
> > > for example i want that all the site's pages have a table with 3
> > > colums. it's kind of a template for the web site !
> >
> >Using standard_html_header and standard_html_footer in every Document on
> > your site...
> But that way if i want to change the structure, i have to change on every
> page.
> My ideia was to create a template(3 colums) where i add objects (dtml
> documents).
> If i want to change the site structure to 2 colums i only change the
> template !
> 
> Nuno
> 

That is *exactly* what standard_dtml_header and ...footer are
for.
Together, they *are* your template.

You *include* these in every document (using the  tag. They'll show up in your documents at run time.

Put the default template into the root folder and all your DTML
documents will acquire it. In a sub-folder, you can either do
nothing (then the acquired header and footer will be used), or
override these with a folder-specicic template.

See the Zope book, it explains it pretty well.

Jan

___
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] INTERBASE cannot do this type of query ?

2000-12-14 Thread Jan H. Haul

Francois-regis Chalaoux wrote:

> Error, Products.gvibDA.gvib.gvibExceptions.ProgrammingError: - Dynamic SQL Error -- 
>SQL error code = -206 -- Column
> unknown -- MOUSE
> 
> SQL used:
> 
> select IND_SPECIE
> from ZEB_INDIVIDU
> where IND_SPECIE = "MOUSE"

Use single quotes around 'MOUSE'.

In SQL, single qoutes are for string literals, double quotes for
column names (there are people who think spaces in column names
or mixed lower/upper case column names are neat NOT).

Jan

___
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 Book Beta / inserting anchors into the "official" HTML?

2000-11-05 Thread Jan H. Haul

Simon Coles wrote:
> 
> >I wholeheartedly agree with Jason and Chris. I would very much appreciate a
> >PDF version that could be easily printed, or read with Adobe's Reader.
> 
> If you have the full version of Adobe Acrobat (you have to pay for
> it, as opposed to the free Reader) you can "Capture" web pages into a
> PDF. I created a PDF of the Zope Book beta to read on the train
> today. PDFs created in this way are full text searchable :-)

Well, that is not exactly the point - anybody can use, e.g.,
htmldoc (a very fine tool from www.easysw.com, which is not a big
moneydrain as Adobe distiller is).
The point in favor of a semi-official draft copy PDF is that it
gives us a common reference frame for reviews and feedback. The
PDF would mean everybody has the same page and line numbers,
while HTML has no such concept.

Hmmm. It would be pretty easy to cook up a script to number all
the  tags and include that number in the HTML as comments or,
even better, anchors so you can directly link to a paragraph). Of
course this makes sense only if it is done consistently, i.e., at
the source. That would certainly be fine with O'Reilly.

Cheers,
Jan

___
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 Book Beta

2000-11-05 Thread Jan H. Haul

Fred Yankowski wrote:
> 
> I agree completely that the Zope Book beta will get more reviewers,
> and better feedback to the authors, if it is available as PDF.  

A valid point.
I do not care about the format that much. But what I care about
is a clear method of referencing the text, to the line or
paragraph level, so that we can get comments and corrections to
the authors/copyeditors efficiently.

A PDF *with page and line numbers* would fit the bill nicely. As
would a HTML file with paragraph numbers (as HTML comments,
maybe?).

The point is that we should be able to give meaningful feedback,
like "page 147, line 15: there should be their" (a totally
made-up example, do not go hunting for that one).
It just does not do to quote full sentences and have the
copyeditor search for all that stuff. Too much wasted time on
both ends.

Cheers,
Jan

___
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] 'Offline' mailhost

2000-10-09 Thread Jan H. Haul

Michael Bernstein wrote:
> 
> "Jan H. Haul" wrote:
> >
> > Each of these will be around 42 KByte large.
> >
> > Huh? Why that? you ask.
> > Because in the header of each mail, the whole recipient list will
> > be listed under To: or Cc:
> > [snip]
> > - privacy: You would not like to have "your" recipients end up on
> > other people's mailing lists
> 
> What about using BCC: ?

That would effectively sending one separate mail to each
recipient, without giving you the full benefit of being able to
identify each in case of bounces.
I'd recommend using mailing list processing software (ezmlm on
qmail is especially handy, or majordomo) for the task - it is in
fact written for just this, and makes your life so much easier.
If someone insists in reinventing wheels, well, Monty Python has
a nice sketch on the topic :-)

Jan

___
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] 'Offline' mailhost

2000-10-07 Thread Jan H. Haul

Terry Kerr wrote:
> 
> Chris Withers wrote:
> 
> > Hannu Krosing wrote:
> >
> > > Also you could send just one message to all the recipients instead of
> > > sending individual messages.
> >
> > Urm, they could be pretty unfriendly mail messages if they're being sent
> > to a coupla thousand people. The bandwidth dcoming out of your server
> > alone would be far higher than it needed to be :-(
> 
> How would the bandwidth change??

Well, suppose you send a message of, say, 2 KByte (about one page
of typed text) to 1,000 recipients. You'll make about 1,000
connections to the recipients' MX hosts. 

Each of these will be around 42 KByte large.

Huh? Why that? you ask.
Because in the header of each mail, the whole recipient list will
be listed under To: or Cc: (I assumed 40 bytes per address as a
roundabout figure). In the envelope (what the SMTP protocol
*uses* to deliver the message, only one address will be used, the
body To: list is mainly for the recipients' use (to show them who
else got it).

Besides, there are other problems why you will want separate
mails:

- privacy: You would not like to have "your" recipients end up on
other people's mailing lists
- stability: When E-mail bounces, you would like to hanle it
intelligently, like trying this address once again (as it could
be a temporary outage) and take the address off the list if it
still bounces a week or so later
- stability again: You woulld not like to be blacklisted as
either a spammer or clueless by the recipients' postmaster :-)

I would probably use a stable MTA (like qmail, which has good
mailing list processing software, or postfix) for the job.

Cheers,
Jan


___
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] Barcodes, magnetic cards, etc.

2000-08-27 Thread Jan H. Haul

On Wed, 23 Aug 2000, Erik Enge wrote:
> 
> > And, by the way, do you know if there exist a magnetic card scanner
> > that plugs in to the PS/2?  And if yes, which information would get
> > from such a card?  Just a number, or are there other possibilities?
> >
> [Curtis Maloney]
>
> What is on the card is, strangely enough, what is on the card.  Magstripe
> readers commonly interface to ps/2 keyboard ports via a 'chok' or 'wedge',
> which just plugs inline with your regular keyboard.

Several vendors (afair, Keytronic and Cherry at least) make
keyboards with integrated magnetic or smart card readers, both in
regular PS/2 format as well as smaller keyboards for the POS
(cash register) market.
In effect, these keyboards behave such that when you swipe a
card, the contents of the selected track (magnetic cards usually
have three tracks, see the relevant ISO standards for details) is
"typed". Often, the magnetic card data is prefixed by an
identifier, but that's about it. If you swipe a card (or scan a
barcode with your keyboard-attached barcode reader) while in a
text editor, you'll see what the reader "types" just as if the
user typed it.

Most of the barcodes are standardized, albeit by different
standards bodies. UPC, EAN and such are used on food cans and the
like. 2 of 5 and similar are used for various purposes, e.g.,
labelling sample bottles for medical labs so you are not treated
for that other person's ailments...

Use your favorite search engine on bar codes and magnetic cards.
This is not really a Zope issue, as Zope never notices that the
article ID or whatsnot was scanned, not typed.

Jan

___
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 on AlphaStationNT...

2000-08-20 Thread Jan H. Haul

Jim Hoepner wrote:
> 
>Part 1.1Type: Plain Text (text/plain)
>Encoding: quoted-printable
>I am a total Zope newbie.  I am trying to run Zope on a AlphaStation running NT.  I 
>get a "service specific error 1"  >when I try to start Zope.

>I am using a utility called FX!32 which lets me run Win32 programs on my Alpha.
>"Compaq FX!32 (TM) lets you install and run 32 bit, x86 programs on
>   your Windows NT Alpha system."

>Does anyone have any info that might help?

>Please reply to [EMAIL PROTECTED] as I am not subscribed to the list yet.

>Thanks!
>jrh

Ok, I wil just guess.
Try to find Python 1.5.2 for your Alpha on NT (a search on
python.org should help). Worst case, take the Python source and
run it through your C compiler.
Then, take a regular Zope source release and install that.
I have never used NT on Alphas.

Another way would be to install Linux on your Alpha. There, the C
compiler is standard, Python is probably included in your Linux
distribution, and so it gets all rather easy.

HTH,
Jan

___
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] doesn't?

2000-08-20 Thread Jan H. Haul

Tino Wildenhain wrote:
> 
> Hi,
> 
> Chris Withers wrote:
> >
> > Hi,
> >
> > Is is just me or does stuff inside a  get parsed?
> >
> > So if you have:
> >
> > 
> >
> >  ... some syntactically bad dtml ...
> >
> > 
> >
> > You still can't save the page 'cos the the parser throws up an error.
> >
> > That seems silly to me. Anyone else agree?
> 
> No, I disagree. Why do you want bad dtml even inside comments?

For example to find out what exactly is bad about them - i.e.,
you develop something, you cannot save it, ok, lets comment out
the part I am not sure about and try again. Or work in progress
(hey, I've gotta sleep sometime) that you want to be stored in
the ZODB even though it's not finished. Astonishingly, some
really difficult 3am problems become surprisingly easy at 9am
after a few hour's sleep.

> dtml-comment is a tag like all the other tags. It does not
> control the parser. One advantage is, you may nest comment-tags.

True.
But still, the parser could read over all comments as long as the
 tags are properly nested.

Jan

___
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] Newbie Question (Content Manager Tutorial)

2000-08-19 Thread Jan H. Haul

"Mark A. Pappas" wrote:

> I installed Zope 2.2.0 on a Win 98 machine. Seems to work fine. I dloaded
> the Content Manager Guide and started working through the tutorial. Went to
> create a folder as instructed.
> 
> Below is what I got. What am I doing wrong?
>
> Error Type: SuperCannotOwn
> Error Value: Objects cannot be owned by the superuser
> 

You are working as superuser.
While this *did* work up to Zope 2.1.6, since Zope 2.2 the
security model was tightened.

You must (as superuser) create a user with manage privilege,
restart your browser and use that user to create objects.

HTH,
Jan

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