[Zope] Folderish Properties

2000-09-07 Thread Tim Cook


I have a folderish ZClass with a set of properties. When I create
an instance via DTML my code doesn't update the properties from
REQUEST.

I use exactly (names changed of course) the same code to
instantiate a document like ZClass and it works fine.  So what's
the difference between Folderish ZClasses  Document ZClasses in
assigning to their properties? (The instance IS created, just the
properties aren't assigned values.)

I used the howto on adding instances via DTML change to the
'_add' methods in both ZClasses.

Here's the code FWIW:

--- Document-'ish' ---

dtml-var standard_html_header

dtml-call "REQUEST.set('id',REQUEST['med_name'])"
dtml-call "REQUEST.set('title', REQUEST['med_name'])"
dtml-call "REQUEST.set('online_lookup',
REQUEST['online_lookup'])"
dtml-call "REQUEST.set('indications', REQUEST['indications'])"
dtml-call "REQUEST.set('contraindications',
REQUEST['contraindications'])"
dtml-call "REQUEST.set('warnings', REQUEST['warnings'])"
dtml-call "REQUEST.set('alt_names', REQUEST['alt_names'])"
dtml-call "REQUEST.set('dose_delivery',
REQUEST['dose_delivery'])"
dtml-call "REQUEST.set('doc_type', REQUEST['doc_type'])"

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

center
H2dtml-var med_name was added./H2
p
a href="formulary" Back to Formulary Menu /a
/center

dtml-var standard_html_footer





--- Folder-'ish' ---

dtml-var standard_html_header

dtml-call "REQUEST.set('id',REQUEST['login_id'])"
dtml-call "REQUEST.set('login_id', REQUEST['login_id'])"
dtml-call "REQUEST.set('first_name', REQUEST['first_name'])"
dtml-call "REQUEST.set('middle_name', REQUEST['middle_name'])"
dtml-call "REQUEST.set('last_name', REQUEST['last_name'])"
dtml-call "REQUEST.set('honorific', REQUEST['honorific'])"
dtml-call "REQUEST.set('generation', REQUEST['generation'])"
dtml-call "REQUEST.set('gender', REQUEST['gender'])"
dtml-call "REQUEST.set('fda_number', REQUEST['fda_number'])"
dtml-call "REQUEST.set('supervisor_id',
REQUEST['supervisor_id'])"
dtml-call "REQUEST.set('job_title', REQUEST['job_title'])"
dtml-call "REQUEST.set('created_by', REQUEST['created_time'])"
dtml-call "REQUEST.set('created_time',
REQUEST['created_time'])"



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

center
H2dtml-var login_id was added./H2
p
a href="providers" Back to Provider Menu /a
/center

dtml-var standard_html_footer

As Always - Thanks!

-- Tim Cook --
FreePM Project Coordinator http://www.freepm.org
OS Health Care Alliance Supporter http://www.oshca.org

___
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 Question on lines

2000-09-07 Thread Tim Cook

"Coleman, Bryan" wrote:
 
 I am trying to itterate through a lines property in the folder so that the
 options will drop down. I did not think that the following code would work
 but I could not think of anything else.
 
   dtml-in valid_codes
  option value="dtml-var valid_codes"dtml-var
 valid_codesnbsp;/option
   /dtml-in
 
 
Try this Bryan,

SELECT name="mySelection"
dtml-in valid_codes
 option value="dtml-var sequence-item" dtml-var sequence-item
nbsp; /option
/dtml-in
/SELECT


-- Tim Cook --
FreePM Project Coordinator http://www.freepm.org
OS Health Care Alliance Supporter http://www.oshca.org

___
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 for PDFs

2000-09-07 Thread Tim Cook

Timothy Wilson wrote:
 
 Hi everyone,
 
 I'd like to make a large number of PDF files available for download from my
 site. HTML versions of the files will also be available for online viewing.
 
 I could certainly include the PDF files as regular file objects or I could
 create a ZClass specifically for PDF files.
 
 I suspect that this question may be of general interest, so I'm asking for
 comments about the pros and cons of either approach.
 

Does this not do what you want?

http://www.zope.org/Members/gaaros/ZpdfDocument

-- Tim Cook --
FreePM Project Coordinator http://www.freepm.org
OS Health Care Alliance Supporter http://www.oshca.org

___
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 for PDFs

2000-09-07 Thread Tim Cook

Timothy Wilson wrote:

 It doesn't appear that the ZpdfDocuments is what I'm looking for.
 ZpdfDocument seems to render PDF on the fly from structured text or HTML. I
 was interested in simply storing an existing PDF file in the ZODB and making
 it available for download.
 
 Is there a reason to make a PDF ZClass? Would it make things easier?
 

I can't think of one. But if you need it then someone else
probably does too. g

-- Tim Cook --
FreePM Project Coordinator http://www.freepm.org
OS Health Care Alliance Supporter http://www.oshca.org

___
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] Whitespace in lines property

2000-09-06 Thread Tim Cook

Can anyone tell me why when I edit a lines property I get leading
whitespace inserted?
The first line gets seven  each one after that gets 10 spaces.

I tried stripping it out but this didn't seem to have any effect.

...

textarea name="alt_names:lines" rows="10" cols="50" 
dtml-in alt_names
  dtml-let cur_item=sequence-item
dtml-var "_.string.strip(cur_item)"
  /dtml-let
/dtml-in
/textarea

...

Thanks,
-- Tim Cook --
FreePM Project Coordinator http://www.freepm.org
OS Health Care Alliance Supporter http://www.oshca.org

___
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] Whitespace in lines property

2000-09-06 Thread Tim Cook

Tino Wildenhain wrote:
 
 Hi Tim,
 
 Tim Cook wrote:
 
  Can anyone tell me why when I edit a lines property I get leading
  whitespace inserted?
  The first line gets seven  each one after that gets 10 spaces.
 
  I tried stripping it out but this didn't seem to have any effect.
 
  ...
 
  textarea name="alt_names:lines" rows="10" cols="50" 
  dtml-in alt_names
dtml-let cur_item=sequence-item
  ^^^ here^here
  dtml-var "_.string.strip(cur_item)"
  ^ here^here
/dtml-let
  ^^^here   ^ here
 
  /dtml-in
  /textarea
 
  here marks your whitespaces.
 
 try:
 
 textarea name="alt_names:lines" rows="10" cols="50" 
 dtml-in alt_namesdtml-let cur_item=sequence-itemdtml-var
 "_.string.strip(cur_item)"
 /dtml-let/dtml-in/textarea
 
 Ugly code, but...
 

Well, "realize something NEW everyday!" 
It never crossed my mind that the space between my code elements
would be rendered. DUH!

Thanks,
-- Tim Cook --
FreePM Project Coordinator http://www.freepm.org
OS Health Care Alliance Supporter http://www.oshca.org

___
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] Designing with Zope

2000-09-01 Thread Tim Cook


Hoefully this is not too ambiguous. But I'm wondering if there
are any "gotcha's" in developing an application that would
maintain parts of it's data in ZODB and the rest in an RDBMS?  

This might be better stated as a situation where one application
that uses Zope and an RDBMS was a sub-part of a ZODB
application.  Say, a sales management app in ZODB uses an
accounting app that stores its data in an RDBMS through the same
Zope server?

Thanks,
-- Tim Cook --
FreePM Project Coordinator http://www.freepm.org
OS Health Care Alliance Supporter http://www.oshca.org

___
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] Re: ZPatterns Stability

2000-09-01 Thread Tim Cook

Chris Withers wrote:
 
 Tim Cook wrote:
   If you're brave you could try ZPatterns and then realyl not care at all
   ;-)
  
  
  Don't you mean; 'If you're insane...' ?
 
 No, I really don't!
 
 ZPatterns is very cool, but still not documented. It's alpha but seems
 stable enough for production in a lot of cases.
 


Thanks for the tip Chris. I had not even looked at ZPatterns (I'm
having enough problems getting basic Zopisms into my head g).
It looks very exciting but I think it'll wait for the next
version. Complete redesign would be in order to take advantage of
the concepts.

-- Tim Cook --
FreePM Project Coordinator http://www.freepm.org
OS Health Care Alliance Supporter http://www.oshca.org

___
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] The Challenge: Zealots vs. Skeptics

2000-08-31 Thread Tim Cook

Marty McKeever at Work wrote:

 The question is this:  "What are some examples of high-profile and/or
 enterprise level ecommerce or web production sites using zope?"
 
 Send me examples and i'll post them to the original thread.
 

Did you try here?

http://www.zope.org/Resources/CaseStudies


-- Tim Cook --
FreePM Project Coordinator http://www.freepm.org
OS Health Care Alliance Supporter http://www.oshca.org

___
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] Calling list.remove() bug

2000-08-27 Thread Tim Cook


Platform information:

Zope version: Zope 2.2.1b1 (binary release, python 1.5.2,
linux2-x86) 
Python version: 1.5.2 (#10, Dec 6 1999, 12:16:27) [GCC 2.7.2.3] 
System Platform: linux2 

-

Notice in add_weekly the dtml-call day_list.
It does nothing but with out it I get this traceback:

   Zope Error

   Zope has encountered an error while publishing
this resource. 

   Error Type: AttributeError
   Error Value: __getitem__

 
Traceback (innermost last):
  File /usr/local/zope/2.2/lib/python/ZPublisher/Publish.py, line
222, in publish_module
  File /usr/local/zope/2.2/lib/python/ZPublisher/Publish.py, line
187, in publish
  File /usr/local/zope/2.2/lib/python/Zope/__init__.py, line 221,
in zpublisher_exception_hook
(Object: Traversable)
  File /usr/local/zope/2.2/lib/python/ZPublisher/Publish.py, line
171, in publish
  File /usr/local/zope/2.2/lib/python/ZPublisher/mapply.py, line
160, in mapply
(Object: add_weekly)
  File /usr/local/zope/2.2/lib/python/ZPublisher/Publish.py, line
112, in call_object
(Object: add_weekly)
  File /usr/local/zope/2.2/lib/python/OFS/DTMLMethod.py, line
172, in __call__
(Object: add_weekly)
  File
/usr/local/zope/2.2/lib/python/DocumentTemplate/DT_String.py,
line 502, in __call__
(Object: add_weekly)
  File /usr/local/zope/2.2/lib/python/DocumentTemplate/DT_In.py,
line 691, in renderwob
(Object: done_list)
  File
/usr/local/zope/2.2/lib/python/DocumentTemplate/DT_Util.py, line
337, in eval
(Object: _['sequence-item'] in day_list)
(Info: day_list)
  File string, line 0, in ?
AttributeError: (see above)





--
DTML METHOD: period_begin
Selects a set of dates in the past 41 days that are either the
first day of the month or a Sunday. Returns the list.

dtml-call "REQUEST.set('first_day', ZopeTime() )"
dtml-call "REQUEST.set('to_day', ZopeTime() )"
dtml-call "REQUEST.set('day_list', [])"

  dtml-in "_.range(0,40)"
dtml-call "REQUEST.set('rpt_date', first_day -
_['sequence-item'])"

 dtml-if "rpt_date.lessThanEqualTo( to_day )"
   dtml-if "(rpt_date.day()==1) or rpt_date.dow()==0"
  dtml-call "day_list.append(rpt_date.strftime('%Y / %m
/ %d'))"
   /dtml-if
 /dtml-if

  /dtml-in

dtml-return day_list

---
DTML METHOD: add_weekly
Input form to report weekly activities. 


dtml-call "REQUEST.set('day_list', period_begin)"
dtml-call "REQUEST.set('done_list', [])"

dtml-in "objectValues(['DTML Document'])"
  dtml-if "doc_type == 'weekly'"
 dtml-call "done_list.append(week_begin.strftime('%Y / %m /
%d'))"
  /dtml-if
/dtml-in

dtml-call day_list


dtml-in done_list
   dtml-if "_['sequence-item'] in day_list"
 dtml-call "day_list.remove(_['sequence-item'])"
   /dtml-if
/dtml-in

....
more code here that uses day_list in a SELECT/SELECT and
takes more form input.
...


Is this a bug or should I clean up my code??? s


-- Tim Cook --
FreePM Project Coordinator http://www.freepm.org
OS Health Care Alliance Supporter http://www.oshca.org

___
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] Calling list.remove() bug

2000-08-27 Thread Tim Cook

Kapil Thangavelu wrote:
 
 Tim Cook wrote:
 
  -
 
  Notice in add_weekly the dtml-call day_list.
  It does nothing but with out it I get this traceback:
 
 Zope Error
 
 Zope has encountered an error while publishing
  this resource.
 
 Error Type: AttributeError
 Error Value: __getitem__
 
 
  Traceback (innermost last):
File /usr/local/zope/2.2/lib/python/ZPublisher/Publish.py, line
 
  (Object: done_list)
File
  /usr/local/zope/2.2/lib/python/DocumentTemplate/DT_Util.py, line
  337, in eval
  (Object: _['sequence-item'] in day_list)
  (Info: day_list)
File string, line 0, in ?
  AttributeError: (see above)
 
  --
  DTML METHOD: period_begin
  Selects a set of dates in the past 41 days that are either the
  first day of the month or a Sunday. Returns the list.
 snip
  ---
  DTML METHOD: add_weekly
  Input form to report weekly activities.
 
 - dtml-call "REQUEST.set('day_list', period_begin)"
  dtml-call "REQUEST.set('done_list', [])"
 
 
 
  dtml-call day_list
 
  dtml-in done_list
 dtml-if "_['sequence-item'] in day_list"
   dtml-call "day_list.remove(_['sequence-item'])"
 /dtml-if
  /dtml-in
 
  
  more code here that uses day_list in a SELECT/SELECT and
  takes more form input.
  ...
 
  Is this a bug or should I clean up my code??? s
 
 
 When you call request.set your setting daylist to the method not the
 results of the method. try switching it to
 
 dtml-call "REQUEST.set('day_list', period_begin(_.None, _))"
 
 Kapil
 

Hmm, thanks.  I ran a little test stub that set day_list both
ways with the var rendered each time.  They returned exactly the
same list. 

But, your suggestion did correct the problem that I had.

So, as a newbie warning to others just because it renders
correctly doesn't mean that it's behavior is going to be correct
in a programmatic sense.  

So, why did the dtml-call or dtml-var calls cause the add_weekly
method to work?   

(Too many years of procedural code and not enough OOP zen!).

-- Tim Cook --
FreePM Project Coordinator http://www.freepm.org
OS Health Care Alliance Supporter http://www.oshca.org

___
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] Calling list.remove() bug

2000-08-27 Thread Tim Cook

Kapil Thangavelu wrote:

 dtml-var "foobar(_.None, _)"
 
 this passes it None for a client, and the current namespace as the
 mapping, and no keyword args.
 
 hope that was clearer than mud.
 

So the 'key' to this confusion is that we are passing the 'Zope
namespace' to the python method (function) call?
(Which I guess is REALLY just a Python namespace anyway?)

Maybe I should study the Python source where this occurs. It's
still VERY foggy! g

-- Tim Cook --
FreePM Project Coordinator http://www.freepm.org
OS Health Care Alliance Supporter http://www.oshca.org

___
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] OT: Website design / spec / development resources

2000-08-26 Thread Tim Cook

Kapil Thangavelu wrote:
 
 "J. Atwood" wrote:
 
  I am looking for some good guidelines in designing, spec'ing and

 
 Not zope specific, but of a high quality and worth reading even if it is
 biased, is philip greenspun's book on web publishing...
 http://www.arsdigita.com/asj/books/panda


FYI,
They've changed the URL on you:
http://www.arsdigita.com/books/panda/

-- Tim Cook --
FreePM Project Coordinator http://www.freepm.org
OS Health Care Alliance Supporter http://www.oshca.org

___
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(?) Syntax Question (dtml-in)

2000-08-25 Thread Tim Cook


I want to use the same DTML method for different operations. It
gathers info from properties of DTML Documents and returns a
list. The list is a list of lists.

Each item in the list valid_prj contains a list of two strings,
ie. 

valid_prj = [['abcd','1234'],['efgh','5678']]

I want to only provide the first item of each list in this
SELECT:

...

dtml-in valid_prj
  OPTION value="dtml-var sequence-item"dtml-var
sequence-item/OPTION
/dtml-in
 
...

But darn if I can get the right combination for the correct
syntax to get only that first item of valid_prj. 

Thanks,
-- Tim Cook --
FreePM Project Coordinator http://www.freepm.org
OS Health Care Alliance Supporter http://www.oshca.org

___
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 implement a round through the whole web site

2000-08-25 Thread Tim Cook

Christian Leutloff wrote:
 
 Hi,
 
 I want to add a round to a small Zope based web site. Therefor I would
 like to add a prev and a next button on each page. So it is possible
 to start on the first page and then move on to the next one by
 clicking on the next button. After some clicks on the next button I'm
 sure to have visited all pages.
 
 I want to realize this goal through adding an attribute named sequence
 (´seq´) to every DTML document that should be reached through the
 round. The value is a 4 digit number that defines the order in which
 the pages should appear. Then I've started to implement a method using
 DTML to generate the hyperlinks for prev/next. The strategy would be
 to determine the sequence number of the actual document. Afterwards
 all documents are searched and each id is compared to the actual
 one. The results should be saved in variables that could be used to
 set up the links after all documents have been processed.
 
 My problem is now how to store the intermediate results in
 variables. I'm able to define a variable (myseq), but I'm not able to change
 the value afterwards:


I 'feel' like I may not know everything you're wanting to
accomplish, but.

By, 'small', do you mean 50 pages, 100 pages?  

How about each page gets an id  that will put it in the proper
order when it is appended to a list and then sequenced through? 
Start out with id's that are, maybe 10 numbers apart so that you
can easily insert pages in the sequence with out renumbering the
other pages. Or you could just as easily use your 'seq' property.

Create and append to a list each of the pages sorted by id. Then
your NEXT PREVIOUS links will be to; sequence-index +1 and
sequence-index - 1.

HTH,

-- Tim Cook --
FreePM Project Coordinator http://www.freepm.org
OS Health Care Alliance Supporter http://www.oshca.org

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

2000-08-20 Thread Tim Cook

Tino Wildenhain wrote:

  So if you have:
 
  dtml-comment
 
   ... some syntactically bad dtml ...
 
  /dtml-comment
 
  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?
 dtml-comment is a tag like all the other tags. It does not
 control the parser. One advantage is, you may nest comment-tags.

Tino,
That maybe an advantage (though I don't recall ever nesting
comments).
Then some of us need a dtml-disable tag. VBG

-- Tim Cook --
FreePM Project Coordinator - http://www.freepm.org
OS Healthcare Alliance Supporter - http://www.oshca.org

___
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] Sendmail Tag - No Buffer Space

2000-08-10 Thread Tim Cook


Anyone have an idea what could cause this error when attempting
to send email?
Besides the header, the email is only one line of plain text (no
dtml).
Sendmail is running on port 25 and works okay.
OS is Linux 2.2.5-15
Zope 2.2 final


Error Type: error
Error Value: (105, 'No buffer space available')




Traceback (innermost last):
  File /usr/local/zope/2-2/lib/python/ZPublisher/Publish.py, line
222, in publish_module
  File /usr/local/zope/2-2/lib/python/ZPublisher/Publish.py, line
187, in publish
  File /usr/local/zope/2-2/lib/python/Zope/__init__.py, line 221,
in zpublisher_exception_hook
(Object: ElementWithAttributes)
  File /usr/local/zope/2-2/lib/python/ZPublisher/Publish.py, line
171, in publish
  File /usr/local/zope/2-2/lib/python/ZPublisher/mapply.py, line
160, in mapply
(Object: Test_mail)
  File /usr/local/zope/2-2/lib/python/ZPublisher/Publish.py, line
112, in call_object
(Object: Test_mail)
  File /usr/local/zope/2-2/lib/python/OFS/DTMLMethod.py, line
167, in __call__
(Object: Test_mail)
  File
/usr/local/zope/2-2/lib/python/DocumentTemplate/DT_String.py,
line 502, in __call__
(Object: Test_mail)
  File
/usr/local/zope/2-2/lib/python/Products/MailHost/SendMailTag.py,
line 188, in render
(Object: MailHost)
  File
/usr/local/zope/2-2/lib/python/Products/MailHost/MailHost.py,
line 219, in send
(Object: MailHost)
  File /usr/local/zope/2-2/lib/python1.5/smtplib.py, line 182, in
__init__
  File /usr/local/zope/2-2/lib/python1.5/smtplib.py, line 216, in
connect
error: (see above)
---


-- Tim Cook --
FreePM Project Coordinator - http://www.freepm.org
OS Healthcare Alliance Supporter - http://www.oshca.org

___
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] Requested Zope feature

2000-08-09 Thread Tim Cook

"J. Atwood" wrote:
 
 A lot of the time I end up going into a document/folder/method just so I can
 click on the 'view' tab popping up a new window so I can see it (option
 click / right click).
 
 It would be very nice if DC could add a icon (or take over the existing
 icon) to pop a new window with the object ( a target="top" href="object"  )
 so you could view the object without having to edit it. This would save
 about 2 steps for something that, personally, I do all the time. The link to
 the object would still be for editing it.

I second that motion.
All in favor say Aye!

-- Tim Cook --
FreePM Project Coordinator - http://www.freepm.org
OS Healthcare Alliance Supporter - http://www.oshca.org

___
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] Sendmail Connection

2000-08-08 Thread Tim Cook


I created a MailHost but when I attempt to send an email I get a
'111 Connection Refused' error.  Is this a sendmail permission
problem? 

Thanks,
-- Tim Cook --
FreePM Project Coordinator - http://www.freepm.org
OS Healthcare Alliance Supporter - http://www.oshca.org

___
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-sendmail Error

2000-08-02 Thread Tim Cook


Anyone tell me what this error indicates?

Error Value: (105, 'No buffer space available')

-- Tim Cook --
FreePM Project Coordinator - http://www.freepm.org
OS Healthcare Alliance Supporter - http://www.oshca.org

___
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] Retrieving the week number with DateTime

2000-08-02 Thread Tim Cook

David Coe wrote:
 
 I suspect there is no 'standard' definition of week number.
 

I asked this on a list with a bunch of accounting types and got
the same reply.  It is 'generally' associated with payroll or tax
periods.

Once you have a 'definition' for Jan 1 of the current year and
the day of the week that 'your' week starts on then you could use
David's suggestion(s).
Either you or your customer has to define those two things first.

-- Tim Cook --
FreePM Project Coordinator - http://www.freepm.org
OS Healthcare Alliance Supporter - http://www.oshca.org

___
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-in syntax

2000-07-29 Thread Tim Cook

Kyle Burnett wrote:
 
 so i have this loop and i want to count a variable:
 
 dtml-in wherever
 
   dtml-if sequence-start
dtml-var count-id
   /dtml-if
 
 /dtml-in
 
 but what i really want to count is specific values for id. so let's say
 id=='value1', i want to try and do the following:
 
 dtml-in wherever
 
   dtml-if sequence-start
dtml-var "count-id=='value1'"
   /dtml-if
 
 /dtml-in
 
 but no luck. and i have tried several other make-shift syntaxes to no avail.
 
 i do have some other logic that i could use over the course of the loop to
 determine the count of distinct values but i was try to do it in far less
 code.

This may be what you already thought of. It does require a lot of
code if you have several things to count.  There may also be
cleaner ways to do it???

dtml-call "REQUEST.set('this_count', 0)"
dtml-in wherever
  dtml-call "REQUEST.set('current_id', _['sequence-item'])"
  dtml-if "current_id=='id_to_count'"
dtml-call "REQUEST.set('this_count', this_count+1)"
  /dtml-if current_id
/dtml-in wherever
I counted dtml-var this_count items.

(of course this is untested)g.

-- Tim Cook --
FreePM Project Coordinator - http://www.freepm.org
OS Healthcare Alliance Supporter - http://www.oshca.org

___
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] Displaying Lines? was: form to a email in a correct presentation ?

2000-07-28 Thread Tim Cook


Vincent Maton wrote:

 I send a form to an e-mail but I receive it brut, and I would like to
 receive it in a good presentation, you can see that I receive on the
 attachments with this email on name it "bad_reception" and see what I want
 on name it "good_reception".
 

I wish I could help. But I recognize the problem as a side effect
of using 'lines' type (and maybe tokens?)

Other than iterating through the property is there a way to
display or present the lines property for edit without the
containing ['brackets', '', 'ticks']? s

I'd like to (probably out of laziness) just be able to enter a
list of items into a textarea store it as 'lines', let a user
edit it in a textarea without the [''] visible. Let them save
it again and then iterate over the property later.

Well it works as long as I tell the user they have to enter each
item into the box seperated by commas enclosed in single-quotes
and contained in the list brackets.
YEAH RIGHT! VBG  That'll never fly.

-- Tim Cook --
FreePM Project Coordinator - http://www.freepm.org
OS Healthcare Alliance Supporter - http://www.oshca.org

___
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] Your feedback: what should DateTime strftime() behavior be?

2000-07-25 Thread Tim Cook

+1

-- Tim Cook --
FreePM Project Coordinator - http://www.freepm.org
OS Healthcare Alliance Supporter - http://www.oshca.org

___
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] Python/Tkinter Zope

2000-07-25 Thread Tim Cook

Has anyone used this combination for GUI inside a Zope app?

-- Tim Cook --
FreePM Project Coordinator - http://www.freepm.org
OS Healthcare Alliance Supporter - http://www.oshca.org

___
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] Powered by Oasis?

2000-07-20 Thread Tim Cook

Martijn Pieters wrote:
 
 OAsis is not a publishing framework. It's their version and competitor of
 SourceForge. Code Catalog, another Zope server run by Open Avenue, gives
 plenty of credit to Zope.
 
 The Powered by OAsis  button is, the way I understand it, more a 'site hosted
 by' credit.
 

Nice defense Martijn. g I didn't mean to defame them but after
reading my own post in the daylight I can see how it seemed that
way.
BUT (and I always have one) they did give me the impression they
are pushing their ease of use for hosted sites; like they
invented it.  Anyway the whole thing is off-topic. Sorry.

-- Tim Cook --
FreePM Project Coordinator - http://www.freepm.org
OS Healthcare Alliance Supporter - http://www.oshca.org

___
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] Powered by Oasis?

2000-07-19 Thread Tim Cook

Ng Pheng Siong wrote:
 
 http://www.cyclic.com/CVS/Dev/codewindow/linkhere
 
 Gives a Zope error.
 
 Icon at bottom says "Powered by Oasis".
 

Interesting.  I took some time to browse around OpenAvenue to
find their attribution to Digital Creations  / or Zope. 
Couldn't find one anywhere.  Looks like they're trying to take
full credit for the infrastructure. Without actually saying it.

-- Tim Cook --
FreePM Project Coordinator - http://www.freepm.org
OS Healthcare Alliance Supporter - http://www.oshca.org

___
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] Tim's Gripe Of The Week -- was: [Zope] (no subject)

2000-07-17 Thread Tim Cook

Hi all,

I have given myself permission to post this gripe.
Thank You g

While I do use the list archives and I try to get others that are
new to Zope to do the same.  I have a gripe for the Zen Masters. 
It's the subject line above.

Granted most of the "No Subject" mail starts with a newbie
question.  That doesn't mean you have to let it ride like that. 
Simply do what I did above.  WHY?

Once your words are immortalized in the archives they carry great
value, IF there is a subject line that makes sense.  Otherwise
it's just one more in the list each month that say "(no
subject)".  How sad that you would value you efforts at such a
low mark. 

I'd like to thank you all in advance for taking that extra 45
seconds to add or change to the appropriate subject line.  It
makes the archives that much more useful.

BTW: Thanks for all the help everyone.

-- Tim Cook --
"The more I learn, the more I realize I don't know, 
and the more I realize I don't know, the more I want to learn."
--Einstein

___
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] For Newbies Only!

2000-07-13 Thread Tim Cook


Ok folks if you are like me and not only can't see the light but
can't even find the path to the light try these things:

1. Do the Python tutorial.
2. Read every message from the list archives for the past two
months.
3. Even if you don't want to develop on a beta platform. Install
2.2b4 on another machine and go through the tutorial. Then read
the API docs.

Took me more or less two days.  Time VERY well spent.

Now go back to your application and yea shall see the path that
will lead you from darkness. 

Just my two-cents on how I found the path...

-- Tim --
Opportunity is missed by most people because it is dressed in
overalls and looks like work.
Thomas Edison

___
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] BTreeFolder

2000-07-13 Thread Tim Cook

Robert Wohlfahrt wrote:
 
 Hi,
 
 I want to try out the BTreeFolder product. I unpacked it an restarted
 Zope, but int the Products-management screen it shows up as a broken
 product. I use Zope-2.1.4 ...
 
 any ideas?

Been there, done that s. It requires 2.2+. But boy am I looking
forward to using it as soon as 2.2 is out of beta. VBG.

-- Tim --

Opportunity is missed by most people because it is dressed in
overalls and looks like work.
Thomas Edison

___
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] Version Changes

2000-07-13 Thread Tim Cook

When Saving changes from a version are the notes entered in the
text box logged anywhere?  I can't seem to find them or any
information about them.  It would be handy to use them for a
regular CHANGES file.

-- Tim --

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




<    1   2