Re: [Zope] Editors [OT]

2001-01-26 Thread Geoffrey L. Wright

Michel Pelletier [EMAIL PROTECTED] writes:

 On Thu, 25 Jan 2001, Chris Withers wrote:

[...]
  - FTP or WebDAV editing built in as standard (or alternative solution, like
  cadaver making it work ;-)
 
 XEmacs

Is there a WebDAV mode for XEmacs?  Or perhaps a well understood way
of tying it to cadaver?  A bit of searching on both topic led to no
immediate clueful solutions.

I'm (hopefully) just about to run into a situation where I'm going to
start off-site development on another Zope project, but I need a more
secure way of editing than XEmacs/efs...

If there were a friendly way of tying XEmacs to cadaver that might
just be the ticket


//glw


___
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] Some help required but no sarcastic comments this time please

2001-01-24 Thread Geoffrey L. Wright

[EMAIL PROTECTED] writes:

 On Tue, Jan 23, 2001 at 11:17:32PM -, alankirk wrote:
  Hi there,
 
  i sent an email the other week regarding problems i've been
  experiencing with zope and MySQL. I've set up a database
  connection for zope and mysql and it sort of works. I can send
  queries to add data to my database ok but when i send a query to
  get data from my database i get one of 3 errors and my python
  server that zope runs from stops. The errors i get are Python
  experienced an error in (either nothing,MYSQL.DLL or
  PYTHON15.DLL).
 
  I am using Zope 2.2.2 on windows(this time i'd appreciate no
  sarcastic comments this time) I've sent a few emails about this
  problem to various people (including to this address) and the
  response has been pretty poor, i've even tried to email people
  involved with the mysql database adaptors and got no response.

  It is really important that i get this problem sorted now if
  possible as my final year project for university depends on this
  'bug' getting fixed.
  
  If you can give me help on this or point me in the direction of
  someone who can, i'd be grateful
 
  Cheers
  
  Alan
 
 Alan:
 
 This is not meant sarcastically.
 
 You are probably the only person who has ever tried to do this!
 Probably no one can help you.  (In case people don't remember, Alan
 is working on Win9x; windows 98, as I recall.)

I thought it was ME.  But hopefully it was 98

 You are working on a platform which is known for instability, with
 limited debugging capabilities.
 
 I urge you to either change to NT/SQL Server or to Linux/MySql or to
 Linux/PostgeSQL.  I can help you with the last, I suspect others can
 help you with either of the first two.
[...]

I have to concur here.  I do a _lot_ of development against MySQL --
I've dealt with it on both Win32 and various *NIXes.  MySQL is really
much more at home in a *NIX environment.  If you're completely tied to
Win32, you'd likely save yourself a lot of grief by moving to Win NT.
And if you go that far, I have to agree with Mr. Penny that SQL Server
would be a much better choice on NT for a DB.  My experiences with
MySQL on NT have tended to be frustrating -- but then I'm a fairly
poor NT admin.  But on *NIX MySQL is both extremely easy to administer
and solid as a rock.

Of course, I was a college student not so long ago, and know well that
an NT license isn't cheap.  And neither is SQL Server.  But maybe you
have a rich relative.  If not and you still really want this to work,
here's my sarcasm-free suggestion.

Pick up a used low-end Pentium.  I just grabbed a P120 with 32 megs of
RAM, a 750 meg HD and a 3Com EtherLink III for 80 bucks for use as a
firewall.  You could probably do better if you shopped around.  If you
intend to put both Zope and MySQL on the this box, I would up the RAM
to 64 megs.  The whole thing should certainly set you back less than
100 bucks.

Now install Linux.  If you're new to it, pick an easy distro like
RedHat or Mandrake.  Both have a very strait-forward install process.
If the idea if installing Linux by yourself for the first time makes
your hands tremble, find your local Linux User Group (LUG).  If you're
at a big university, check with the CS department.  They can probably
give you a contact.  In all likelihood, somebody in the LUG will be
falling over himself (herself?) to help you out.  FreeNIX people are
usually like that.  Worst come to worst, a case of cheap beer should
buy you a working install of Linux/MySQL.  In fact, if you happen to
live in Alaska I'll do it for that price!

Once you're at that point you'll probably find a lot more help.  I
think your problem at this point is simply that you have a fairly
exotic configuration.  Most people haven't seen the problems you're
having because they aren't using the same platform.  Both Zope and
MySQL are server software packages, and server software usually finds
its home on server OSes.

And even though Zope seems to bridge the great MS/*NIX cultural divide
quite nicely, MySQL is really from a *NIX world.  I think it's just
not a common choice for databases amongst Microsoft devotees.  I
would guess that 95+ percent of people who have tried to connect Zope
and MySQL have been working with some UNIX variant, and of those the
majority are probably using some flavor of Linux.

So I guess I could distill all of this advice down to one simple
statement:

If you pick a software combination used by a large number of people,
you'll likely find yourself with a strong base of user support.  If you
use an unusual combination, you may have to tough it out on your own.


Best 'o luck!


//glw


___
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] mailhost example problem

2001-01-22 Thread Geoffrey L. Wright

"Michael Angelo" [EMAIL PROTECTED] writes:

 hi,
 
 i am experiencing a strange problem with using the mailhost example on
 zope.com.
snip


This might sound totally off the wall, but I think that anything
enclosed in dtml-sendmail tags can't have any preceding whitespace.

Try this:


dtml-var standard_html_header

dtml-sendmail mailhost="MailHost"
To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Subject: Feedback from the web

message goes here
/dtml-sendmail

  h1Thank you for your input!/h1
  pYour comments have been sent./p

dtml-var standard_html_footer


I think I remember having this same issue once upon a time.  But then,
it's 4:42 Alaska-time, so it may just be that I need to go to bed
now...

 thanks
 
 mike

//glw


___
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, emacs secure ftp

2001-01-20 Thread Geoffrey L. Wright


Was just wondering what sort of solution people use for secure ftp and
zope.  I'd like to be able to use efs (or ange-ftp) over a secure
connection to zope so I can do development using efs outside of our
firewall.

Does Zope's ftp server support SSL?  Or is there some sort of
SSH-based solution?

Just curious...



//glw


___
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, xemacs and efs

2001-01-18 Thread Geoffrey L. Wright

Steve Spicklemire [EMAIL PROTECTED] writes:

 Hmmm.. I use emacs/ange-ftp all the time with zope... many
 versions.. with no trouble. Have you tried that? Since my
 client is not 'X' (yet) I don't use xemacs... 

Nope.  But explicitly telling efs to use passive mode doesn't work,
I'll try that as a next step.

Thanks!

 -steve


//glw


___
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] ZClass Adding Magic Needed

2001-01-17 Thread Geoffrey L. Wright


So:

I have a odd little problem that I can't seem to solve.  I have two
zclasses.  We'll call them zclass1 and zclass2.  zclass2 lives inside
of zclass1.  zclass1 has the following two properties:  id and
displayOrder.  zclass2 has the four properties: id, displayOrder,
alignment and content.  In both cases the id is an automaticly
generated unique number based on ZopeTime.

My problem is that I need to make a public add method that generates a
new instance of zclass1 with a new instance of zclass2 inside of it.
I also need to be able to control set the displayOrder of zclass1, and
the alignment and content of zclass2 from the same form.  The
displayOrder of zclass2 will be static for the time being, but I'll
ultimately need to control that as well.

I hacked the default add method of zclass1 so that it generates a new
instance of zclass2 each time, and using the Job Board HOWTO I managed
to make a public add method.  So far so good.  But now I can't for the
life of me figure out how to pass some form variables to one object
and some to the other, especially while they have some identically named
properties.

Any hints on this one?


//glw


___
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] ZClass Adding Magic Needed

2001-01-17 Thread Geoffrey L. Wright

Jim Washington [EMAIL PROTECTED] writes:

 Hi, Geoff
 
 Your situation looks like application logic confusion enhanced by the
 weirdness of DTML.

Application logic confusion in what way?

Perhaps I didn't give enough detail about what I'm doing.  Here's a
little ASCI art that may clear things up:

  CLASS META TYPE   PROPERTIES
  --
  ZClass1   (blob)   - id, displayOrder
 \
  \
  \/
ZClass2 (chunk)  - id, displayOrder, alignment, text

ZClass1 is basicly a container class for a bunch of displayable
subobjects.  

Each blob can contain a variable number of chunks, although for the
purpose of creating a new blob I'm only concerned about it starting
with a single chunk.

Right now (if I create a number of sample blobs and chunks by hand)
users can manipulate the display order of individual chunks within a
blob.  The can also manipulate the display order of blobs relative to
one another.

But now I need to give them the capacity to generate a new blob with
one default chunk.  This _seems_ like it should be an easy thing to
do.  And in fact I have no problem with creating a public add method.
My problem comes when I want to give these two new objects starting
values from the same form.  Something like this works perfectly:

dtml-with "manage_addProduct['ChunkProduct']"
  dtml-call "chunk_blobClass_add(_.None, _, NoRedir=1)"
/dtml-with

Where I change the add method of a blob to also always also add a
chunk and appropriately adjust the permession of my add method so that
anybody can use it.

The user will need to control the the displayOrder of the blob.  It's
default chunk will always have a displayOrder of 1.  The user also
needs to control the alignment and text of the default chunk.

And note again that when both the blob and it's chunk are created they
are given a random id based on ZopeTime, since I don't want my users
to have to care about the id of either object.  Because of this I
don't need to worry about passing an id to either one of them from my
form...

I hope this at least manages to clear up my problem a bit.

 Use a Python Script/Method to do the background heavy lifting. If you
 are using with, let  and REQUEST.set() to access your items, it can
 be done much more simply and understandably in a Python Script/Method.  

I'm open to doing this the Python Way as well, but I have the same
problem there.

 -- Jim Washington
 
 "Geoffrey L. Wright" wrote:
  
  So:
  
  I have a odd little problem that I can't seem to solve.  I have two
  zclasses.  We'll call them zclass1 and zclass2.  zclass2 lives inside
  of zclass1.  zclass1 has the following two properties:  id and
  displayOrder.  zclass2 has the four properties: id, displayOrder,
  alignment and content.  In both cases the id is an automaticly
  generated unique number based on ZopeTime.
  
  My problem is that I need to make a public add method that generates a
  new instance of zclass1 with a new instance of zclass2 inside of it.
  I also need to be able to control set the displayOrder of zclass1, and
  the alignment and content of zclass2 from the same form.  The
  displayOrder of zclass2 will be static for the time being, but I'll
  ultimately need to control that as well.
  
  I hacked the default add method of zclass1 so that it generates a new
  instance of zclass2 each time, and using the Job Board HOWTO I managed
  to make a public add method.  So far so good.  But now I can't for the
  life of me figure out how to pass some form variables to one object
  and some to the other, especially while they have some identically named
  properties.
  
  Any hints on this one?


___
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] Stopping a dtml-in

2001-01-17 Thread Geoffrey L. Wright

Dieter Maurer [EMAIL PROTECTED] writes:

 Diego Rodrigo Neufert writes:
   dtml-in "_.range(1000)"
   code...
   dtml-if valueOk
  STOP THE LOOP
   /dtml-if
   /dtml-in
 A long time ago, someone has implemented a "dtml-break" tag.

Wow.  That's good to know.  I just created some fairly ugly code to
get around the lack of something like a dtml-break.

I just tried searching for it on zope.org, on the mailing lists, and
using google for good measure.  Didn't find any mention of it
anywhere.  If anybody does come up with a link I'd love to see it.

I wonder why there's nothing like that natively..?


//glw


___
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] Tools used for programming Zope

2001-01-17 Thread Geoffrey L. Wright

"Chris Withers" [EMAIL PROTECTED] writes:

 Both WebDAV and FTP support are supposed to be better in 2.3 with full
 WebDAV level 2 compliance at some point in the future...

I wonder if I can use emacs/efs with 2.3 w/out crashing it..?  Right
now when I try to use xemacs/efs with Zope 2.2.x, it occasionally
brings down Zope(!).

I guess it's time to download and test...


//glw


___
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, xemacs and efs

2001-01-17 Thread Geoffrey L. Wright


So I have a question for any zope/xemacs/emacs users out there...

Since entering the word of emacs about 5 months ago, I've fallen in
love.  At work I now just about live in emacs -- well, actually in
xemacs.  I've even gone so far as to start using gnus for all my mail
and news.  And I at work I use efs to access most of the code that I
work on.

Unfortunately, I seem to have a nasty problem with efs and Zope --
about 1 in 6 or 7 times I try to access Zope with efs I manage to kill
Zope!  And this in not just one install of Zope, nor is it one
specific instance of xemacs/efs.  I've killed Zope 2.2.x installed on
RedHat6.2 and 7.0, Debian, LinuxPPC and Win98.  I've managed to do
this with two different installs of xemacs on two different machines.
In one case I was using the xemacs RPM that comes with RH6.2
Powertools, and in another case I'm using the gtk-xemacs from xemacs
CVS.  (and boy is it purdy!)

Is this normal, or am I cursed in some way?  I just download the
2.2.3b1 version of Zope, dropped on a RH7.0 workstation and managed to
kill it again.  The strange thing is, I never have any other stability
problems with Zope.

I'd LOVE to be able to use efs with Zope.  Right now I end up cutting
and pasting code in and out of browser windows -- which just feels
kind of unwieldy...

Thanks for any help or words of solace...


//glw


___
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, xemacs and efs

2001-01-17 Thread Geoffrey L. Wright

[EMAIL PROTECTED] (A.J. Rossini) writes:

 What version of EFS are you using, and if not recent, have you
 considered upgrading the EFS package?

1.21

That's the most recent version listed by the xemacs package manager.
Is there a known problem with older versions of efs and  zope?

 best,
 -tony

//glw


___
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, xemacs and efs

2001-01-17 Thread Geoffrey L. Wright

ender [EMAIL PROTECTED] writes:

 On Wednesday 17 January 2001 18:39, Geoffrey L. Wright wrote:
  [EMAIL PROTECTED] (A.J. Rossini) writes:
   What version of EFS are you using, and if not recent, have you
   considered upgrading the EFS package?
 
  1.21
 
  That's the most recent version listed by the xemacs package manager.
  Is there a known problem with older versions of efs and  zope?
 
 !!i think!! zope in general has problems with active FTP clients. if you can 
 make efs work passive only you'll probably have better results.

I just set efs to explicitly use passive mode:

(setq efs-use-passive-mode t)

I've tried about 8 logins so far with no crash, which is better than I
usually get.  Of course, every once in a while I'll get on a run where
I succeed in 20 or more logins, and then I finally make an attempt
that kills Zope again.  If this works I'm gonna send ya flowers,
'cause this single problem has kept me from falling in love with Zope.

It would seem, though, like having Zope be so delicate in the face of
active FTP connections would constitute a fairly nasty bug.  Unless,
of course, the issue that I'm running to is completely idiosyncratic
to me.

 kapil

//glw


___
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] Poor Procedural Programmer Needs OOPish Enlightenment

2001-01-03 Thread Geoffrey L. Wright


or...

"A Cry for Namespace Help"


I seem to have run into one of those Zope namespace issued that's
starting to make me dizzy.

I have a index_html method that displays content conditionally
depending on where it's called.  It looks like this:


dtml-if expr="PARENTS[0].id != 'edit'"
  dtml-var index.html
dtml-else
  dtml-var chunk_editFrameset
/dtml-if

The chunk_editFrameset method also displays the same index.html file in
one of two frames.  This works like a champ.  If I'm in a directory
called edit when this is called, it displays the frameset.  Otherwise,
it displays the index.html directly.

The index.html method is contains a bunch 'o static html plus another
method called chunk_dspPrimaryCol that also conditionally displays
information based on where it's called.  chunk_dspPrimaryCol looks like
this:

dtml-if expr="PARENTS[0].id != 'edit'"
  dtml-var chunk_dspPrimaryColPublic
dtml-else
  dtml-var chunk_dspPrimaryColEdit
/dtml-if

This doesn't work like I'd hoped, since I have to move back up the
namespace stack to find index.html, and by the time I do I'm no longer
in the edit folder.  So I _always_ end up displaying the
chunk_dspPrimaryColPublic method, even if I call the index_html method
from within the edit folder.

What I need (I think) is a way to keep all of this activity in the
edit Folder.  Or I need some other way of solving this problem.  Any
thoughts?  I hope my description was clear enough...


-- 
Geoffrey L. Wright
Developer / Systems Administrator

(907) 563-2721 ex. 4900
http://www.integritysi.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 )




Re: [Zope] Poor Procedural Programmer Needs OOPish Enlightenment

2001-01-03 Thread Geoffrey L. Wright

[EMAIL PROTECTED] writes:

 Not sure if this is your problem, but since methods don't have namespaces,
 I'm not sure why your code could not be reduced to:
 
 dtml-if expr="id != 'edit'"
  dtml-var index.html
 dtml-else
  dtml-var chunk_editFrameset
 /dtml-if

You're right -- this works just as well, and is much cleaner.  And I
figured out my problem while yanking out another unneeded reference to
PARENTS.  In my framset code I had a reference to PARENTS[1] (not
[0]!), so I was forcing Zope to look at the index.html method from the
namespace of the test_site folder.  DOH!

Zope is a funny thing -- it makes some things so much easier, but I
always find myself getting tangled up in stooopid namespace problems
of my own making.  I guess I'm just not used to thinking this way yet.

Many thanks for the assist.

 Sean

//glw


___
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] can't change zclass meta type

2000-12-27 Thread Geoffrey L. Wright


I can't seem to completely change a zclass meta type.  When I make a
change on the "basic" tab of the zclass, my change seems to take, and
the new meta type is displayed in the form.

But when I try to add an instance of this metatype, I still see the
old meta type name in the dropdown.  When I try to reference objects
by metatype in my code, the new name does work, so it appears that the
new metatype is ... mostly ... applied.

Is this a bug?  Or is the some other location where I also need to
change this info?

-- 
Geoffrey L. Wright
Developer / Systems Administrator

(907) 563-2721 ex. 4900
http://www.integritysi.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 )




Re: [Zope] Editing Property Sheet HTML

2000-12-19 Thread Geoffrey L. Wright

"Brian Lloyd" [EMAIL PROTECTED] writes:

  The question is ... how do I do it?  I'd like to make the default
  textarea field quite a bit bigger -- but I wasn't able to explore my
  way to success in the interface, and about 20 mins of seaching has
  yielded no answers.
 
 You could edit lib/python/OFS/properties.dtml, which renders
 the property management screen. The DTML in there has gotten
 pretty scary over time though :^)

Yikes!

But thanks ... I think I can hack it into submission.

And here's a followup question:

If I want to make a custom Properties view for a specific ZClass, how
do I proceed?  Just create an additional method for the class and add it
under Views?  And if I do this, is there any kind of DTML templete
(sort of like the default add and addForm methods) that I can work
from?  And do I need to go this far if I (for example) simply want to
change the display order for existing properties?

Many thanks (as always) for any answers you have...

 Brian Lloyd[EMAIL PROTECTED]
 Software Engineer  540.371.6909  
 Digital Creations  http://www.digicool.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 )

-- 
Geoffrey L. Wright
Developer / Systems Administrator

(907) 563-2721 ex. 4900
http://www.integritysi.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 )




Re: [Zope] Editing Property Sheet HTML

2000-12-19 Thread Geoffrey L. Wright

Tres Seaver [EMAIL PROTECTED] writes:

 "Geoffrey L. Wright" [EMAIL PROTECTED] wrote:
 
  The question is ... how do I do it?  I'd like to make the default
  textarea field quite a bit bigger -- but I wasn't able to explore my
  way to success in the interface, and about 20 mins of seaching has
  yielded no answers.
  
  Then again, it's pretty late, so mebbe I'm just being dim
 
 If the propertysheet you want to customize belongs to a ZClass, then
 you are in luck.  Try adding a "Property Sheet Interface" object to
 the methods tab of your ZClass:  it will prompt you for the name of
 the sheet, and whether you want a "view" interface or an "edit"
 interface;  it then creates a DTML Method with appropriate chrome
 for customization.

Ah -- it does, in fact.  Very nice and works like a champ.

Gracias.


 Tres.


-- 
Geoffrey L. Wright
Developer / Systems Administrator

(907) 563-2721 ex. 4900
http://www.integritysi.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] Object adding strangeness

2000-12-13 Thread Geoffrey L. Wright


So I've created a simple little product to dynamically manage CSS.  It
consists of three ZClasses and the arrangement looks something like
this:
 
   STYLEn_containerClass
 \
  \-- STYLEn_styleClass
  \
   \-- STYLEn_stylePropertyClass
 
The STYLEn_containerClass can contain a variable number of styles
which can, in turn, contain a variable number of properties.

I've also hacked the add method for the STYLEn_containerClass so that
it creates a number of default styles.  So far, this has all worked
swimmingly, but I have run into one really strange issue that I can't
figure out for the life of me.  Basicly, the folder that contains the
STYLEn_containerClass somehow(?) manages to aquire the title of the
last instance of STYLEn_styleClass that gets created.  So in the
follow example, the title of the containing folder get renamed to
"Header style" from whatever it happened to be before.

Does anybody have an idea of why this might be happening?   TIA for 
any answers or leads.

My code is below:
 
 ---
 
dtml-commentCreate the "STYLEn" container./dtml-comment
 
dtml-with "STYLEn_containerClass.createInObjectManager('STYLEn',REQUEST)"

  dtml-call 
"propertysheets.STYLEn_containerClassPropertySheet.manage_editProperties(REQUEST)"
  dtml-call "manage_editProperties(REQUEST)"
 
 
  dtml-commentCreate header style/dtml-comment
 
  dtml-call "REQUEST.set('ts', ZopeTime())"
  dtml-call "REQUEST.set('id',_.str(_.int(ts)) + '-1')"
  dtml-call "REQUEST.set('title','Header style')"
  dtml-with "STYLEn_styleClass.createInObjectManager(REQUEST['id'], REQUEST)"
dtml-call "REQUEST.set('element','h1')"
dtml-call "REQUEST.set('style','header')"
dtml-call 
"propertysheets.STYLEn_styleClassPropertySheet.manage_editProperties(REQUEST)"
dtml-call "manage_editProperties(REQUEST)"
dtml-with "STYLEn_stylePropertyClass.createInObjectManager('font-family', 
REQUEST)"
  dtml-call "REQUEST.set('value','arial, sans-serif')"
  dtml-call 
"propertysheets.STYLEn_stylePropertyClassPropertySheet.manage_editProperties(REQUEST)"
  dtml-call "manage_editProperties(REQUEST)"
/dtml-with
dtml-with "STYLEn_stylePropertyClass.createInObjectManager('font-size', REQUEST)"
  dtml-call "REQUEST.set('value','16pt')"
  dtml-call 
"propertysheets.STYLEn_stylePropertyClassPropertySheet.manage_editProperties(REQUEST)"
  dtml-call "manage_editProperties(REQUEST)"
/dtml-with
dtml-with "STYLEn_stylePropertyClass.createInObjectManager('font-style', 
REQUEST)"
  dtml-call "REQUEST.set('value','normal')"
  dtml-call 
"propertysheets.STYLEn_stylePropertyClassPropertySheet.manage_editProperties(REQUEST)"
  dtml-call "manage_editProperties(REQUEST)"
/dtml-with
dtml-with "STYLEn_stylePropertyClass.createInObjectManager('font-weight', 
REQUEST)"
  dtml-call "REQUEST.set('value','bold')"
  dtml-call 
"propertysheets.STYLEn_stylePropertyClassPropertySheet.manage_editProperties(REQUEST)"
  dtml-call "manage_editProperties(REQUEST)"
/dtml-with
dtml-with "STYLEn_stylePropertyClass.createInObjectManager('color', REQUEST)"
  dtml-call "REQUEST.set('value','#00')"
  dtml-call 
"propertysheets.STYLEn_stylePropertyClassPropertySheet.manage_editProperties(REQUEST)"
  dtml-call "manage_editProperties(REQUEST)"
/dtml-with
  /dtml-with

/dtml-with

dtml-comment
  Now we need to return something.  We do this via a redirect so that the URL is 
correct.

  Unfortunately, the way we do this depends on whether we live in a product or in a 
class.  If we live in a 
  product, we need to use DestinationURL to decide where to go. If we live in a class, 
DestinationURL won't 
  be available, so we use URL2.
/dtml-comment

dtml-if DestinationURL

  dtml-call "RESPONSE.redirect(DestinationURL+'/manage_workspace')"

dtml-else

  dtml-call "RESPONSE.redirect(URL2+'/manage_workspace')"

/dtml-if

/body/html

 ---



-- 
Geoffrey L. Wright
Developer / Systems Administrator

(907) 563-2721 ex. 4900
http://www.integritysi.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 )




Re: [Zope] dtml-with syntax question

2000-10-13 Thread Geoffrey L. Wright

Tim Cook writes:

  I'm sure someone will correct me if I'm wrong. But I believe you
  want:
  
  dtml-with "_.getitem(attribute3)"

Haven't tried it in my code yet, but thanks to your post I found the
section about _.getitem().  That'll come in handy all over the place,
so many thanks for the pointer!


//glw

___
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] dtml-with syntax question

2000-10-12 Thread \Geoffrey L. Wright\ Geoffrey L. Wright

Chris Withers writes:
  "Geoffrey L. Wright" wrote:
   
   Where objectName2 is actually an attribute of objectName1.
  
  
   dtml-with objectName1
   dtml-var attribute1
   dtml-var attribute2
   dtml-var attribute3
   dtml-with objectName2
  dtml-var attribute1
   /dtml-with
   /dtml-with
  
  The above should now work...
  
  ...if it doesn't please explain in what way ;-)
 
Hmmm...  OK.  Here is my relevant code, complete with resulting error message:

dtml-with sidebar_item

  dtml-var attribute1
  dtml-var attribute2
  etc...
 
  dtml-with gsi_content
dtml-with inventory
  dtml-with attribute3
dtml-var short_desc
  /dtml-with
/dtml-with
  /dtml-with

/dtml-with sidebar_item

And Zope sez:

  Error Type: KeyError
  Error Value: short_desc

attribute1, attribute2 and attribute3 are all attributes of
sidebar_item.  If I change the dtml-with attribute3 to read 
dtml-with weepee_the_weewee (where weepee_the_weewee is the actual
name of the object I'm trying to refer to), then  I see the short_desc
attribute of weepee_the_weewee perfectly.

Don't I have to do something in my syntax to indicate that I'm looking
for the the value of attribute3 rather than an object with the literal
id "attribute3"?

  cheers,
  
  Chris

Dazed  Confused,

//glw

___
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] Using ProxyPass and SiteRoot

2000-10-12 Thread \Geoffrey L. Wright\ Geoffrey L. Wright

knight writes:

  Timothy,
  
  Without going into too much detail, you are going to want to set up a
  virtual host in apache for the hostname www.isd197.k12.mn.us, and inside
  that virtual host you will want to add your ProxyPass lines similar to my
  example:

[...]

And just for reference, here's another working example with ProxyPass:

  NameVirtualHost 172.17.10.13

  VirtualHost 172.17.10.13
  ServerName syslog.integritysi.com
  ServerAdmin [EMAIL PROTECTED]
  ProxyPass / http://vishnu.integritysi.com:8080/syslog/
  ProxyPassReverse / http://vishnu.integritysi.com:8080/syslog/
  ProxyPass /misc_ http://vishnu.integritysi.com:8080/misc_
  ProxyPass /p_ http://vishnu.integritysi.com:8080/p_
  ErrorLog logs/syslog.integritysi.com
  TransferLog logs/syslog.integritysi.com
  /VirtualHost

Good luck, and don't forget to enable the ProxyPass module.


//glw

___
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] non-Zope object attribute admin interface

2000-10-12 Thread \Geoffrey L. Wright\ Geoffrey L. Wright

Kindly Zopistas:

Am curious how to go about building an "alternate Property Sheet View" for
custom ZClasses.  The default view is great for me and other
developers, but I need to build the something that looks a bit more
customer-friendly.

I spend about 20 minutes looking around the Zope site, but haven't yet
turned about any useful information.  Perhaps somebody could point me
to a relevant HOWTO or some example code?

Many thanks!



//glw

___
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-with syntax question

2000-10-11 Thread Geoffrey L. Wright

So here's a question from a fairly new Zope developer:

I think I am finally getting a decent handle on namespace issues in
Zope, and I can now with the dtml-with tag with reasonable efficacy in
simple situations. But I have run into something of a brick wall on
one issue.

What I would like to be able to do is something like this:

dtml-with objectName1
dtml-var attribute1
dtml-var attribute2
dtml-var attribute3
dtml-with folder.subFolder.objectName2
   dtml-var attribute1
/dtml-with
/dtml-with

Where objectName2 is actually an attribute of objectName1.


I figure I _should_ be able to do this, and I'm sure I'm missing
something obvious.  But I spent about a half hour scanning the
Zope.org site and the list archives and can't find an obvious example
of this.

Any thoughts, hints or HOWTOs?



Thanks!


//glw

___
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] symbolic links or invisible objects..?

2000-08-29 Thread Geoffrey L. Wright


Zopistas:


Am working on a simple content management system for about 6 sites, and so
far, so good.  It's my first medium-sized Zope project and Zope has been
wonderful to work with so far.

However, I've been tasked with the project of creating the simplest
possible interface for some very non-technical content managers.  So the
first thing I did was abstract out the content from some fairly complex
formatting.  This was easy, and now I have a site where all the content
that theae people need to touch always lives in an object called
page_content.  Objeects by this name now exist at many points in the site.

Aparently the fact that a number of other non-content objects are visible
at the same level of heirarchy in the site is a problem.  So my question
is this:


 Is there any way to make zope understand something like a UNIX symbolic
 link?  If so, I could easily create a single directory with a symlinks to
 all the appropriate objects in the site.  Content managers would then
 have access only to this dir and would therefor see all appropriate
 objects.

 Or perhaps there is a way to make other objects invisable to those w/out
 the necessary permission to use them?  I've played with Zope permissions
 a but, and haven't yet found a way to do this.

 Or is the some other way entirely to look at this problem?


TIA for any help on this.



//glw


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