[Zope] SV: [Zope] Imagemaps

2000-09-20 Thread peter be

> How can I get to make image maps in zope??
> 

If you have already made an imagemap, you then use it like this:



There are so far no imagemap tag creation in Zope but there are plenty of free 
software for that.
The expensive but good Dreamweaver makes it very easy.


___
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] Strange CSS inclusion BUG

2000-09-19 Thread peter be

Try these alternatives:

no...

but...


or 

no...

but...
/loca_css

Could be worth a trial!

Den tis, 19 sep 2000 skrev du:
> To use CSS file, I put the following line in the head of HTML files:
> 
> 
> "
>   rel="stylesheet" type="text/css">
> 
> 
> Where "local_css" is a DTML document containing CSS style sheet.
> But the DTML generates the following error message:
> 
> Error Type: AttributeError
> Error Value: 'string' object has no attribute 'absolute_url'
> 
> If I strip the  Why is the DTML document local_css changed into a string 
> after ?
> 
> 
> 
> ___
> 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 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] dtml-in theentiresite

2000-09-11 Thread peter be

In the root
A DTML Method

Some objects (mostly DTML Documents) have a property (boolean) that tells
whether this is a helppage or not.
What I want to do is to loop though eash and every object in the entire site
(not very big) and check if the object has this property.



  

  


Any other good solutions are welcomed!

___
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] From date to timestamp

2000-08-26 Thread Peter Be

I managed to go from timestamp to date with


But how do convert a date to timestamp?
I.e. from say: "27/08/00 23:59" to 967322xxx?
All I know to begin with is the day, month and year.

Would be nice if I can do this in DTML straight away.
Is it time.mktime something?


___
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] Simple Directory of URLs problem (Waaa)

2000-08-23 Thread Peter Be

Roug

Installing your Simple Directory of URLs gives me this message when I start
up Zope on window98.

"that is not valid. This should never happen. (Waaa)."

There is something wrong with the permissions I guess but I can't see the
error message it generates because either I'm stupid or MS DOS PROMPT is to
short on lines.
If it was Linux I could at least have scrolled upwards to see the whole
error message.
I can see that the error must occur in PermissionMapping.py


I run Zope 2.2.1b1 on Windows98.
The tgz file I downloaded contained three files. __init__.py, version.txt
and product.dat. Is that correct?
The problem is, that I can't see or Add the Simple URL object from my Add
dropdown list. Why is that?

I have so far never had any problems with this setup. (I think)
It is a development server, so I can knock it off and start again if I have
to.

I have followed the Installation instructions, and I have successfully
installed your product previously on Zope 2.1.6

Cheers, Peter



___
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] JavaScript help!

2000-08-13 Thread Peter Be

Maybe not a Zope specific question but the problem arises only with Zope
DTML.

The documentEdit.dtml page in OFS has this little HTML:


And what I want to do is trigger a JavaScript that replaces specific
characters in the textarea box to others.
I.e. Replace swedish ö with HTML: ö

The problem is the name of the textarea box!
It is called "name:text"
If I replace the name of the textarea box to say "data", then my JavaScript
works fine.
I have tried to "eval" the box, but to no effect.
Any ideas??

--
Here's the JavaScript source:





---
Here's the JavaScript error:
invalid label.

document.manage_edit_form.data:text
..^



___
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] SV: [Zope] getitem('string') but with HTML

2000-08-09 Thread peter be

Yeah! It worked.
I didn't use you dtml-in at all, and I guess you didn't understand my unwell-formated 
question.

However, getitem(arg,1) worked! 

Can somebody tell me the difference between: _.getitem(arg) and _.getitem(arg,1) ??
And what does _.getitem(arg,n) do? Where n is 0,1,2,3,4,...
- Original Message - 
From: Kapil Thangavelu <[EMAIL PROTECTED]>
To: peter be <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, August 09, 2000 12:16 AM
Subject: Re: [Zope] getitem('string') but with HTML


> peter be wrote:
> > 
> > I have a rather simple setup. And all I want to do is to show some news content, 
>but with the way I'm doing it, the HTML is not parsed.
> > 
> > /root
> > index_html
> > view_each_news_html
> > /news
> > news_001 (MS ruined!)# a DTML Document
> > news_002 (Peter on killin spree) # a DTML Document
> > ...# lots of DTML Documents
> > 
> > Index_html lists all available news and that works fine. All I do is that I list 
>the documents' title together with their bobobase_modification_time.
> > 
> > Each news item is linked as href="/news_folder/view_each_news_html?newsID=">
> 
> 
> 
> why use getitem wouldn't an objectItems be more what you want.
> 
> from root in index_html
> 
> 
> 
> 
> 
> 
> 
> 
> OR
> 
> getitem takes an optional arg. on whether it should call the item or
> just get a reference
> 
> try _.getitem(item, 1)
> 
> 
> check the Zope Quick Reference for more info
> 
> http://www.zope.org/Members/ZQR
> 
> Cheers 
> Kapil
> 
> ___
> 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 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] getitem('string') but with HTML

2000-08-08 Thread peter be

I have a rather simple setup. And all I want to do is to show some news content, but 
with the way I'm doing it, the HTML is not parsed.

/root
index_html
view_each_news_html
/news
news_001 (MS ruined!)# a DTML Document
news_002 (Peter on killin spree) # a DTML Document
...# lots of DTML Documents

Index_html lists all available news and that works fine. All I do is that I list the 
documents' title together with their bobobase_modification_time.

Each news item is linked as 

In view_each_news_html:

I first tried this:

But it didn't parse the HTML in it.

Static view works. For example changing:
 to 

I have tried both:



And...




But none worked.
Question is, how do I render with the getitem() function? so that HTML is HTML and 
not just text (html_quote)??


Grateful, Peter



___
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] Sequence problem

2000-08-06 Thread peter be

This little DTML code is supposed to be generic for alla folder is the profil folder.

What I want to do is a to have a next folder and previous folder in evey one.

/profil/
/folder_XHJSD
/folder_GIEHG
/folder_OWKD
/and_many_more
/
/folders_here

document_html

Document_html is acquired in all folders in the profil folder.
I started doing something like this:

, 

... and this returns: folder_XHJSD, folder_GIEHG, folder_OWKD

What I want to do is something like this:




previous
next



 but this returns 
Error Type: KeyError
Error Value: sequence-next
so it is obviuosly the wrong way of doing it.

Grateful for help!


___
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] Month number as string as variable

2000-08-01 Thread peter be

Dear All.

What I want to do is display this months Poll.
I have created three Polls ( from the Poll Product ), named month_06, month_07, 
month_08.
I understand that I will have to use the getitem() function to "show" the Poll itself, 
but I don't know how to create the string "month_0X"

 ...returns (today) '08' Good!


 ...also returns (today) '08' Good!


But I don't want to use the fmt when I display it. 
I'd like to have something like this:
* this is where the problem lies.



But this obviously, is bad syntax.
(I have tried [] squared brackets as well)

Best Regards, Peter


___
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] SV: [Zope] simple dtml-if question

2000-07-26 Thread peter be

Correct me if I'm wrong.

If the SerialNumber is taken from a ZSQL method, shouldn't you been able to show it 
without testing its content.
Such as: 
 

Those rows that have something other than 'null' would be shown together with a  .

Curious.

- Original Message - 
From: joel grimes <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 26, 2000 6:14 PM
Subject: [Zope] simple dtml-if question


> How do I do this?
> 
> I have a table with a field called SerialNumber.  I want to test it for null 
> and return a non-breaking space if it's null.
> 
> Here's what I tried:
> 
>  
> 
> 
> 
> Doesn't work (be nice-I'm new).  I've tried various combinations of quotes - 
> no quotes but apparently haven't hit it just right yet.
> 
> What I'm trying to do is stick SOMETHING in an empty cell so netscape 
> doesn't remove my borders when it encounters the empty cell - is there an 
> easy fix?
> 
> Thanks,
> 
> Joel
> 
> 
> 
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
> 
> 
> ___
> 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 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] Importing exchange rates

2000-07-18 Thread Peter Be

If you don't have too much traffic on your site, you can let the "first user
of the day" be responsible for triggering new values to a db/file using the
ZopeTime function.

Something like this maybe:
IF (SELECT day FROM currencytable == ZopeTime(day)):
SHOW FROM DB
ELSE:
START THE COLLECTORS SCRIPT
AND PUT IN THESE VALUES IN THE DB

- Original Message -
From: ethan mindlace fremen <[EMAIL PROTECTED]>
To: Adrian Madrid <[EMAIL PROTECTED]>
Cc: Zope Mailing List <[EMAIL PROTECTED]>
Sent: Tuesday, July 18, 2000 4:06 AM
Subject: Re: [Zope] Importing exchange rates


> Adrian Madrid wrote:
> >
> > I need to obtain the current exchange rates for the yen, mark, etc. with
> > at least once a day, preferrably every other 15". Is there an easy way
> > to do this in Zope?
>
> It depends on where the exchange rates are.
>
> If you get them from a database, you can make zope display the current
> rates.
>
> If you get them from a web page, you can use the client feature of zope
> to go snarf the web page and then extract what you need (hope you have
> permission :)
>
> If some other mechanism can write them to a file, you can suck them up
> with an external method whenever someone asks for it.
>
> hope that helps,
> --
> ethan mindlace fremen
> Zopatista Community Liason
> Abnegate I!
>
> ___
> 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 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] How to require an @ symbol in email form field??

2000-07-18 Thread Peter Be

The nicest way would be to use a JavaScript clientside script on the form
page.
I think you can find a good one @ javascript.internet.com

If you don't want to use Javascript, you can use the regular expression
found from the javascript and use it in a python method of module.

- Original Message -
From: Stacy Formby <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 17, 2000 7:57 PM
Subject: [Zope] How to require an @ symbol in email form field??


> Hello,
>
> I am new to Zope; since our webmaster left I'm trying to make small
> changes to the website. We have a standard registration form that
> collects information from users (first name, last name, email, company
> name, etc.) All of the fields are required, except address 2, address3.
>
> Great. fine. If the user doesn't fill out a field, they get an alert.
> But they can fill each field out with gibberish--as long as there is a
> character in the input, we accept it.
>
> Is there a way to require at least an "@" sign in the email field? The
> powers that be think this would be useful.
>
> Here's the form processing code as it stands today. Any help is
> appreciated.
>
> Sformby
>
>  
> 
> The length of the following expr is due to the fact that some types of
> form elements
> (e.g. text) always create a var, while others (e.g. radio) don't.
> 
>
> 
>   
>
>  
>  The following input fields
> are required
> and have not been filled out: 
> 
> expr="REQUEST.form.has_key(_['sequence-key']) and
> REQUEST.form[_['sequence-key']]">
>   
>
> 
> Please click on your browser's "Back" button to update your information,
> or click
> here to start over. 
>
>
>
> ___
> 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 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] SV: [Zope] linuxworld article

2000-07-16 Thread peter be

Well Gijs, you've got some points right in what you're saying BUT...
If you know some HTML and Stylesheets why don't you revamp the interface yourself. I 
have.
Look for dtml files in your Zope root. When you open them you'll see that it's good 
old HTML.

I, for example, have a small monitor and not much space for long lists of objects, so 
I changed that in one single line of HTML. Neither did I like the boring white 
background. 
Change:  to 

I used to think that Linux was ugly and Windows was nicer. Then I realized that if I 
spend a couple of mins on customizing Enlightment or KDE, I can have it exaclty the 
way I want it. Even better than Windows!

Isn't Open Source software cute?

- Original Message - 
From: Gijs Reulen <[EMAIL PROTECTED]>
To: Mailinglist Zope <[EMAIL PROTECTED]>
Sent: Sunday, July 16, 2000 2:27 PM
Subject: RE: [Zope] linuxworld article


> Hi
> 
> I think the author is right about the interface of Zope. Take a look at what
> Enhydra has to offer:
> http://www.enhydra.org/software/ScreenShots.html
> What the author especially is missing in Zope is something line Enhydra DODS
> (Data Object Design Studio), an grafical interactive way to combine objects
> and relational data. And 'coming soon' an interactive app-builder...
> Zope Studio depends on Mozilla, but how long will that all take to complete
> ?
> 
> Besides laking a slick interface, Zope is missing the real interactivity
> Enhydra can offer; Java apps on the server and on the client can communicate
> directly and therefore make a lot more visually possible in terms of
> administration, debugging, etc.
> 
> A solution ?
> 
> Has anyone at Digital Creations yet taken a look at Beehive's MetaPublisher
> ? I think that is the way to go for the short term (Studio being long term)
> ! Nice looking browser interface, combining data and databases, wizards,
> etc.
> 
> Python and Zope has momentum NOW, but if we fail to deliver at least some of
> the features other platforms have (and the number will increase; for example
> with Borland Delphi comming to Linux, so will WebHUB, a webplatform for
> Delphi !) new users will be disappointed and go somewhere else.
> Zope deserves better then being a temporary hype :-(
> 
> > http://www.linuxworld.com/linuxworld/lw-2000-07/lw-07-penguin_2.html
> >
> > Hmm...what is your opinion on the article above? I'm interested to see the
> > author's comparison btwn Enhydra and Zope.
> >
> > regards,
> > firestar
> >
> >
> > __
> > FREE Personalized Email at Mail.com
> > Sign up at http://www.mail.com/?sr=signup
> >
> >
> > ___
> > 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 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 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] Aligning Images With Text

2000-07-12 Thread Peter Be

I posted a similar question, but unfortunatly no response on that one.
I haven't done it yet, but I guess you could simply change the Image product
so that it can handle another parameter.
If you use .tag you can only control ALT, HEIGHT, WIDTH and BORDER
Look for these things in the Image module and see if you can add ALIGN.

Good luck. Please keep us posted if any success. :)
- Original Message -
From: Terry Babbey <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 12, 2000 8:24 PM
Subject: [Zope] Aligning Images With Text


> Here is my code:
> 
> 
> 
>
> What I would like to do is align the picture to the right of my web
> page. If I was programming html I would do it like this:  src=T043PIC align=right>
>
> Any help?
> Terry
>
> --
> __
> Terry Babbey
> Technical Support Specialist
> Lambton College, Sarnia, Ontario, Canada
> __
>
>
>
> ___
> 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 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] SV: [Zope] String Substitution

2000-07-11 Thread peter be

 should do it.

or 


...if you want to replace a single chr.

BTW, what is the html entitiy for ' ?
- Original Message - 
From: Tim Russell <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 11, 2000 9:43 PM
Subject: [Zope] String Substitution


> I'm trying to convert data entered in a form to a format that I can
> manipulate later, specifically, I need to convert " (double quotes) and
> possibly ' (single-quotes) to the appropriate HTML substitute, like " .
> What's the easiest way to do this? Is there built-in Zope functionality for
> this, or will it be necessary to use an external Python method? Thanks..
> 
> 
> ___
> 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 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] SV: [Zope] Document Title

2000-07-10 Thread peter be

You must be thinking of this:


- Original Message - 
From: Terry Babbey <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 10, 2000 9:04 PM
Subject: [Zope] Document Title


> I am trying to get a document title to print out and am having
> problems.
> 
> As part of my web page I would like to display the title of a
> document, and the document id is stored in a variable. But Zope is
> interpretting the information in the variable as a string and not as a
> document id.
> 
> Any ideas,
> Terry
> 
> --
> __
> Terry Babbey
> Technical Support Specialist
> Lambton College, Sarnia, Ontario, Canada
> __
> 
> 
> 
> ___
> 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 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] SV: [Zope] "http://www.zope.org": HORRIBLE HTML

2000-07-08 Thread peter be

Please, take a look at the errors the validator outputs before you post messages like 
"Is Zope buggy..."
Well you did at least draw some attention to the thing, but I must be honest and say 
that I'm quite happy with the way Zope produces HTML. 

Hope you don't feel like I'm barking back, but after having looked at it closer, the 
HTML is not bad at all.

Cheers, Peter
- Original Message - 
From: Svante Kleist <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 07, 2000 5:35 PM
Subject: [Zope] "http://www.zope.org": HORRIBLE HTML


> 
> Has anybody tried to validate the Zope homepage? Like so:
> 
> < URL: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.zope.org%2F >
> 
> My attention was drawn to this sad fact when I reported
> (was I thought was) a bug in Mozilla:
> 
> < URL: http://bugzilla.mozilla.org/show_bug.cgi?id=44757 >
> 
> Is Zope buggy, producing HTML like this?
> 
> Svante Kleist
> NEMESIS systemDesign, Stockholm
> 
> 
> 
> 
> ___
> 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 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] SV: [Zope] Newbie: String work

2000-06-27 Thread peter be

Hello Andy

the syntax should be 

let string = "fred~~bloggs~aardvark"

_.string.split(string,'~~')[-1]
i.e.


Should work.

In python, it's the same thing. 

- Original Message - 
From: Andy Gates <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 27, 2000 12:39 PM
Subject: [Zope] Newbie: String work


> Simple stuff from the simple people today: string manipulation.
> 
> I have a string variable which has various chunks delimited by double 
> tildes ~~. In order to do what I need to do, I need to extract the 
> section of the string after the last double-tilde, so that
> 
> "fred~~bloggs" returns "bloggs"
> "fred" returns "fred"
> "fred~~bloggs~aardvark" returns "aardvark"
> 
> I can see that rfind is the thing I need to use, but as usual (gah! 
> newbie!) I'm stuck on the syntax.  Help!
> --
> Andy Gates, Learning and Research Technology
> [EMAIL PROTECTED] - ICQ#74362415
> 
> 
> ___
> 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 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] Zope in the UK

2000-06-21 Thread peter be



Hello Britts!
 
I live and work in London as a webdeveloper, but I 
haven't had a chance to stuck me teeth to some Z work here yet.
Are there no Zope developers in the UK, and 
especially in London where I live?
 
If you know about how Zoped UK (London) 
is on Zope, please let me know.
 
Best Regards, Peter 
 


[Zope] Iterate all request input

2000-06-03 Thread peter be

Hello

I have a form page on a none-Zope site where a huge form sends lots of information 
about a visitors input to my Zope site, from where I send this with the sendmail tag.
If I knew exactly what input fields they post on the nonZope site, I could write 
something like this:

To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]

Firstname: 
Nickname: 



The only problem is that I don't always know what fields they use on the nonZope site. 
So I can have maybe 5 or 30 input fields coming in to my Zope-sendmail.

In ASP one does something like this:
<% For each Request.Form in i
 request.form(i)
%>

But how is this done in DTML? And how do I prevent empty fields to cause problems? 
I also don't what to use  since this might cause problems with 
existing objects called nickname in the namestack.


___
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] SV: [Zope] mailhost problem

2000-05-31 Thread peter be


Isn't it supposed to be: 
To: Nameof Persontosendto <[EMAIL PROTECTED]>
Instead of:
To: 


This can be used in conjunction with variables; for example:




To:  <>

I use that on my Zope site, and it works fine.

- Original Message - 
From: Graham Chiu <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 31, 2000 8:11 PM
Subject: Re: [Zope] mailhost problem


> In article <[EMAIL PROTECTED]>, Mike Mikkelsen
> <[EMAIL PROTECTED]> writes
> >  (the select statement *is* returning the correct
> >account)
> >   
> >   To:  
> >   From: 
> >   Subject: Mailing Back Password
> >
> >   Your password is .
> >
> >   Thank you for shopping at sombody!
> >   
> >
> >   Your password has been mailed to .
> >
> >   blah blah blah
> >
> 
> Try removing all whitespace before the headers To: ,From:
> -- 
> Regards,  Graham Chiu
> gchiucompkarori.co.nz
> http://www.compkarori.co.nz/index.php
> Powered by Interbase and Zope
> 
> ___
> 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 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] import folder at other place than root

2000-05-29 Thread peter be

Is it possible and how to change the folder that the Zope interface use for importing 
zexp files?

I "host" friends on my Zope site, but I can't let them have access to my import folder 
which is in C:\Program\Zopesite\import
At the moment my friends have to email me their zexp files, if they for example want 
to upload something they've been working on locally.

Can I not edit the line where the Zope source code says that it expects zexp files 
from.
Ex. 
From:
importfolder = C:\Program\Zopesite\import 
To:
importfolder = D:\otherdomain\or\host\folder
Or:
importfolder = "http://www.hostfriends.com/zopeimport"

Ideas?


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