[Zope] Zope 2.3.0 a2 and ZClasses

2001-01-12 Thread John Verzani

I am trying to upgrade my zope to see the new features in 2.3.0 a2
(from 2.2.4). I installed, copied my previous /var /Extensions start
stop and access files and then started up zope. All works well
*except* the few zClasses that I had written now do not work. They
have survived previous upgrades. Can anyone point me in the right
direction? I am unclear how to debug this as there are no apparent
error messages.

Thanks,

John
-- 

.  John Verzani  mailto:[EMAIL PROTECTED]  .
.  Dept. of Mathematics  http://www.math.csi.cuny.edu/~verzani .
.  City University of New York tel: (718) 982-3623 .
.  College of Staten Islandfax: (718) 982-3631 .
.  Staten Island, NY 10314 .


___
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] using zope with MS FrontPage -- underscore in foldernames

2000-10-28 Thread John Verzani

Hi,

I'd like to use zope to serve static webpages created with MS
Frontpage (and others of course). I was hoping that they could be
ftpped into the ZODB and served up straight. However, a number of
folders have underscores for leaading folder names and I've discovered
this is a Zope no no. Is there some way short of renaming the
offending folders to do this. (also I'm not keen on LocalFS solutions
either.)

Thanks for any help.
-- 

.  John Verzani  mailto:[EMAIL PROTECTED]  .
.  Dept. of Mathematics  http://www.math.csi.cuny.edu/~verzani .
.  City University of New York tel: (718) 982-3623 .
.  College of Staten Islandfax: (718) 982-3631 .
.  Staten Island, NY 10314 .


___
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] A ZClass for LaTeX documents

2000-10-23 Thread John Verzani

Hi,

I've been using a ZClass for LaTeX documents that I put together in a
manner very similar to the one described in making a ZClass for STX
documents at http://www.zope.org/Members/tseaver/STX_Document I like
to mark things up in LaTeX as I can type it faster than HTML, I can
create very nice printouts in PDF or PostScript and there is a nice
renderer into HTML called tth.

There are a few annoyances that I would like some help on.

* I am using tth (http://hutchinson.belmont.ma.us/tth/) which can
  convert LaTeX into HTML quite well. In order to do so, when
  uploading the tex file or changing the tex file, I call tth and
  store the HTML along with the tex source. My DTML for this is

dtml-if uploaded_body
  dtml-call "REQUEST.set('body_tex', uploaded_body )"
/dtml-if
dtml-if body_tex
dtml-let body_html="PARENTS[-1].SiteMethods.tth(body_tex)"
dtml-call "REQUEST.set('body_html',body_html)"
/dtml-let
/dtml-if

dtml-call "propertysheets.Basic.manage_editProperties( REQUEST )"
dtml-call reindex_object

  Which if there is a new file upload stores it in body_tex, and then
  takes body tex and run tth on this to create the body_html. 

  When I do this though, the tth is called on the old body_tex data, not 
  the recently stored one. Because of this, I have to change the file
  twice. 

  Any ideas as to why and how I can fix this? My guess is
  subtransactions, but I don't know how to fix that. 


* Ideally, I would like to be able to call the latex file this way
  dtml-var latex_filename fmt=tth 

  (or even better just as dtml-var latex_filename) 

  where tth is a method which takes a latex document and returns
  HTML. I couldn't figure out how to do this though. How does one go
  about defining new format methods for ZClasses? I would imagine it
  isn't hard, I just need to know where to look.

* If that isn't too hard, I would also like to know how to make this
  an option for markup in SquishDot. I have a math class using this as 
  a discussion board, and it would be nice to let them use basic LaTeX 
  for math markup.

Thanks for any pointers.

John Verzani



-- 
....
.  John Verzani  mailto:[EMAIL PROTECTED]  .
.  Dept. of Mathematics  http://www.math.csi.cuny.edu/~verzani .
.  City University of New York tel: (718) 982-3623 .
.  College of Staten Islandfax: (718) 982-3631 .
.  Staten Island, NY 10314 .


___
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 method to add a folder and put image inside

2000-07-07 Thread John Verzani

Zope has me stumped.

I want to make a _simple_ form and process to add a folder then insert 
into that folder some properties and an image. Here is what I am
trying with my DTML method for processing the form request:


dtml-call "manage_addFolder(REQUEST['id'],REQUEST['title'])"
dtml-with "REQUEST['id']"
dtml-if image
  dtml-call "manage_addImage('image',image)"
/dtml-if

dtml-call "manage_addProperty('example',example,'text')"

/dtml-with

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


I thought by using the dtml-with and the folder id that the
subsequent manaage_add* would add to the newly created folder. I know
I'm on the right track for when I hardcode the folder name (replace
REQUEST['id'] with a string) what I want to do works.

Thanks for any help.


-- 
........
.  John Verzani  mailto:[EMAIL PROTECTED]  .
.  Dept. of Mathematics  http://www.math.csi.cuny.edu/~verzani .
.  City University of New York tel: (718) 982-3623 .
.  College of Staten Islandfax: (718) 982-3631 .
.  Staten Island, NY 10314 .


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