RE: [Zope] dtml

2001-01-06 Thread Lee Hunter

You should read the Zope Book at

http://www.zope.org/Members/michel/ZB

Especially the chapter on DTML

http://www.zope.org/Members/michel/ZB/DTML.html


If you want to see DTML source code in action there is a link at the bottom
of many of the pages on the http://www.zope.org site that exposes the code.

The tutorial that comes with Zope is also helpful.

Good luck
Lee Hunter

Nando n wrote:

 i want to know as much as possible about dtml.
 what is its purpose??? i really wanna know that answer. cause i
 have to do
 dtml like preprocessor for ASP in visual basic.
 could you give me as many urls of dtml sites and real dtml site examples?
 _


 ~~~

  H U M  C O M M U N I C A T I O N S  L T D

  * content management  * technical editing
  * web design  Flash development

   Ste. 147 99 Fifth Avenue
   Ottawa ON Canada K1S 5P5

  1-819-459-2511


___
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] HTML formatting from a text field

2000-12-13 Thread Lee Hunter

Hi Ausum,

Do you mean a text field that shows a row of formatting buttons at the top
for 'bold', 'italic' 'add link' etc.

There is an ActiveX control that is built in to IE Explorer 5.x - you just
have to call it from your page.

Here's the information from Microsoft:

http://msdn.microsoft.com/workshop/author/dhtml/edit/ref/cncpt.asp

If you get it working with Zope (which shouldn't be a problem) let us know.

The Manila/Frontier CMS uses it as a default and it works well. It's very
handy when you have users who have basic word processor knowledge (i.e. they
know enough to select text first then click a formatting button) but can't
be trusted with hand coding html.

Cheers

Lee Hunter



  - - - H U M  C O M M U N I C A T I O N S  L T D - - -
website design, content management and technical editing
   Ste. 147 99 Fifth Ave Ottawa ON Canada K1S 5P5
  1-819-459-2511


Ausum wrote:
 what I have in mind, wich is
 a sort of simple html editor within a text field. As I said before, the
 only place I've seen something like that is at Hotmail.



___
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] Another Zope E-Commerce Site Online

2000-12-06 Thread Lee Hunter

Site looks beautiful but I would *never* have guessed that it was an ecom
site unless you told me.

Even then it was just by accident that I clicked an image and came to a
price and description. Maybe that's the part you were refering to as being
in progress.

Otherwise the site works great.

Cheers

Lee Hunter
Hum Communications Ltd.



 Brad Clements wrote:

  Just announcing this new e-commerce zope based site.
 
  http://www.adirondackcraft.com
 
  Come buy something, but don't whack it too hard, this site is still a
  work in progress (aren't they all?)



___
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] BSD 4 installation

2000-11-24 Thread Lee Hunter

I'm trying to build Zope on a BSD server.

According to the install.txt I have to run two commands - "python w_pcgi.py"
and "./start".

I managed to get the first command to run (python w_pcgi.py) after editing
my Makefile.pre.in and do.py as per the FAQ.txt.

But when I when I run the second command (./start) I get the following error
message:

media2: {38} % ./start
Traceback (innermost last):
  File "/magma/users/u21/wake/zope/z2.py", line 554, in ?
exec "import "+MODULE in {}
  File "string", line 1, in ?
  File "/magma/users/u21/wake/zope/lib/python/Zope/__init__.py", line 94, in
?
import ZODB, ZODB.ZApplication, imp
  File "/magma/users/u21/wake/zope/lib/python/ZODB/__init__.py", line 85, in
?
import sys, ExtensionClass, TimeStamp, cPersistence, Persistence
ImportError: No module named ExtensionClass

Any ideas as to what I'm doing wrong?

TIA

Lee Hunter
Hum Communications Ltd.



___
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] Search and replace

2000-11-21 Thread Lee Hunter

Kapil wrote:

 that would like to see this changed.  Building such an interface with
 gnome or kde would be possible, indeed there are already efforts
 underway to do both. But to create a cross-platform solution really
 needs... Mozilla. Sadly, the ZopeMoz projects appears to be dead,
 hopefully developer interest can be generated in reviving it after
 ActiveState releases the python bindings to XPCOM (which should be
 soon).

Wasn't there some talk of using Radio Userland (formerly Pike) as an
interface to Zope? It's too bad that Userland has made the very odd decision
to broaden RU into a music sharing gizmo - it really lost focus after that
point. But at least it still offers my beloved search and replace and a few
other basic editing tools.

On the other hand I actually *like* the Zope management interface - in fact,
so far I've found it to be very easy to understand and a total pleasure to
use. It just doesn't offer some things that I must have - features that
would probably be hard to incorporate into a browser interface.

Regards

Lee Hunter
Hum Communications Ltd.



___
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] Search and replace

2000-11-20 Thread Lee Hunter

Martin Winkler wrote:
  the object-oriented approach is great for not having
 to search/replace
 anymore. I really do not know any situation where s/r is
 still needed. The
 people who fill in content in our company have
 ZClass-Interfaces, and they
 only insert actual content.

I understand the beauty of object oriented programming and that it also has
some application for content and user interface elements.

But what happens when the random, free form content that your users are
inserting contains errors or has to be globally changed?

Maybe the manufacturers of Spam send your company a lawyer's letter saying
that use of the word 'Spam' on your website infringes on their trademark and
your boss tells you to change every instance of 'Spam' to 'processed meat
product' including all of your heavily trafficked Squishdot discussions, but
not where Spam was used to refer to the Monty Python skit.

What would you do in that situation? Would you have made the word 'Spam' a
variable simply because it was used in more than one location?

Regards

Lee Hunter
Hum Communications Ltd.



___
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] Search and replace

2000-11-20 Thread Lee Hunter


Martin Winkler wrote
 I just wanted to express that this feature may be too hard to
 program for
 the (IMHO) rare cases that we really need it, but IF there

I had understood that Python and Zope excelled at string manipulation.
That's why I am surprised that it would be difficult to scan a folder full
of documents to find a word and replace it with another (with the option of
ignoring anything in pointed brackets). I'm not a programmer so I probably
don't appreciate the complexities of the task, however in this case it seems
like the object-oriented database is a hindrance rather than a help. If it
was just a batch of html files I could search and replace through them with
just about any piece of software on my desktop.

I wouldn't know whether this is the sort of tool that is generally useful,
but in my work I use search and replace all the time (if only to fix my
endless confusion over 'its' and 'it's')

Cheers

Lee Hunter
Hum Communications Ltd.


___
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] Search and replace

2000-11-19 Thread Lee Hunter

Is there any way to do a 'search and replace' in a Zope folder (and it's
subfolders)?

TIA

Lee
Hum Communications Ltd.


___
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] Search and replace

2000-11-19 Thread Lee Hunter

Ouch!

Zope has no built in way to do search and replace? As an editor, that is a
*very* serious drawback indeed!

The first workaround you suggest may be useful when  creating new pages
although  only when you can guess what might change in the future and it
also requires that all of the people creating content think like
programmers, not writers.

The second approach seems somewhat risky, complex and challenging for an
unsophisticated user.

Isn't replacing text one of the most fundamental tasks when creating and
maintaining a web site or any other set of documents, for that matter?

Shouldn't there be a S  R tab on every folder object that provides a choice
of replacing html, dtml or text and that spits out a report on what was
changed? Or even better, that first gives you a report of *proposed* changes
and then allows you to check off the ones you want to ok.

Lee Hunter
Hum Communications Ltd.

 -Original Message-
I wrote:
 Is there any way to do a 'search and replace' in a Zope
 folder (and it's
 subfolders)?

Martin Winkler replied
 AFAIK: no. But on the other hand: why do you need it? That's
 what objects
 are for... Just create a method with the text that may change
 sometimes and
 is displayed on many pages, and include it with dtml-var ...
 One possibility I see is: export the folder as XML, edit the
 file in your
 favourite text-editor and do a search 'n replace. (with the
 dtml-var, of
 course ;-)
 Then import the file again.

 Hope this helps,

 Martin



 ___
 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] Newbie Install: Solaris/Zeus

2000-11-15 Thread Lee Hunter

I'm trying to install Zope 2.2.2 on a shared web host that uses Zeus running
on Solaris.

When I try to run "python w_pcgi.py" I get the following error:



Zope requires Python thread support!



The version of Python on the machine is 1.5.2

Any thoughts on what I'm doing wrong?

Cheers

Lee


___
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] Multi-lingual sites and workflow

2000-11-01 Thread Lee Hunter

I was wondering if anyone here has used Zope to create
bilingual/multi-lingual/localised websites.

I've done a number of bilingual (French and English) projects in recent
years using plain old html where the two language versions had to be kept
mostly symmetrical and its been a bit of a pain as the site grows to keep
the two versions in synch and make sure the translations are done on time
etc.

Its seems that Zope might help manage these kinds of projects - by smoothing
the workflow - tracking what needs translation, perhaps sending stuff to the
translator automatically, reporting on what's been done by who and comparing
the two language versions to make sure they are parallel. And perhaps even
sharing a common architecture - so that you didn't need two sets of DTML
methods etc.

I'm wondering if this fits into other generic Zope workflow products that
people have talked about developing or if it would have to be built from
scratch.

Anyone have thoughts on this subject?

Regards

Lee Hunter
Hum Communications Ltd.



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