[Zope] Printing data from a external python method.

2000-07-17 Thread jesse

Hello, I'm creating a smart forms type product, similar to Smarter 
Forms.  However, smarter forms, while a good product, is not as user 
friendly or as smooth running as we would like. 

   What I am doing is creating a Index, which calls the form, which 
once completed posts to the external pythod method formchecker.   
However, once formchecker checks to see that all the fields were 
filled out, how can I use the EPM (external python method to print 
out the data on a dtml method? 



   Thank you for your input, Jesse. 

___
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] The proper usage of Sequence-item

2000-07-18 Thread jesse

I'm improving on Smarter forms so that instead of having to hard code every field into 
the code that checks for errors, it automaticly reads the dictionary that is in 
REQUEST and checks every key in it.  I'm trying to work with this...



   
 starting the loop 

 I'm saying that if the current key is empty, display this. 

Please fill in your  below





You're done! Thanks for your input .
You could put a link to somewhere else on your site here...


Please correct this and click the Next button to complete
the form.





any input would be helpful. 

___
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] retrieving data from REQUEST.form

2000-08-11 Thread jesse

I am creating a program, yet again.  How this works is, 

a zope factory calls a form, which submits data from a  to a DTML document.  
I want this DTML document to take the data from the form and display it on multiple 
lines. For instance: 

If a person fills out the textarea like so:

First line
second line
third line

I want the DTML document to print out: 

First line
second line
third line

The only problem is, when the  submits to the document, (lets say the 
textarea is called list), it submits it as a dictionary.  That means all the data is 
on a SINGLE STRING.  So the data from the form looks like this. 

 = 
{'list': 'first line/015/012second line/015/012third line'}

the /015/012 represent the line breaks.  

Seeing this, i used the replace function in zope, trying to replace the line breaks 
with , which would be accepted by html.  however, whenever you try and access the 
information in the form as a string...

 

it comes out with 

line one line two line three 

All the line breaks dissapear! So there is nothing to replace! Does anyone have any 
ideas how I could solve this problem?  


 

___
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] Creating properties with a product.

2000-08-16 Thread jesse



___
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] Creating properties with a product.

2000-08-16 Thread jesse

Hello, I recently created a product which adds a folder, with multiple dtmldocuments 
inside of it, effectivly creating a site immedatly.  However, even though I can add 
folders and documents easiliy, I can't seem to create properties! 
It keeps giving me the Attribute error: aq_base.  
Here is the code for the function that does the work: 



def manage_addMemberSite(self, id, title='',REQUEST=None):
"""Add a MemberSite folder."""

try: user=REQUEST['AUTHENTICATED_USER']
except: user=None

folder = MemberSite(id, title)
# _setObject must be the Zope hook that actually stores this instance in
# the ZODB
self._setObject(id, folder)

folder.manage_addFolder(id='Images', title='')
folder.manage_addDTMLDocument(id='index_html', title='', file=index_body)
folder.manage_addDTMLDocument(id='navbar', title='', file=navbar_html)
folder.manage_addDTMLDocument(id='content', title='enter page content here', 
file=default_dd_html)

folder.manage_addProperty(id='nav_color', value='#483D8B', type='string')
folder.manage_addProperty(id='content_color', value='#F0E68C', type='string')
folder.manage_addProperty(id='background_color', value='#FF', type='string')

if REQUEST:
return self.manage_main(self, REQUEST, update_menu=1)


The folder.manage_addProperty(id etc etc) does not work.  I have been looking all 
over, have looked to where the error seems to stem from, (the valid_property_id 
function in the PropertyManager.py) but I can't seem to find out whats wrong.  Does 
anyone have any ideas?

Please respond ASAP.  



___
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] How do you search Tiny Tables?

2000-06-14 Thread jesse

I created a tiny table and then fed the information into a DTML Method by inserting 
the tiny table subject headers into a table I creating inthe method html.  Is is 
possible to search the tiny table since the Method is just calling the information and 
it is not actually in the document?  Yes? No?  If yes, how would I go about doing this 
or could you direct me to the resource that I would need to do this.  If no, is there 
another table factory that IS searchable? 



--
Working at Multimedia Collective to make quality web pages for young Buisnesses. 
Jesse. 
--

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

2000-08-24 Thread Jesse D. Sightler

Hi Melissa,


Did you get to come down this weekend?  If you did, then that was one
short visit!  


It was a very short visit, as I ended up coming in Saturday afternoon and
 leaving early Sunday afternoon to go to a 5PM meeting. 


Well, after tomorrow you may not recognize me.  (I may not
want to recognize me either!)  I am going tomorrow to Laura Hipps to get
my hair cut and possibly highlighted.  I have always wanted it short, so
here goes.  Even though I really want it, it is still scary.  (Be glad
that you are not a girl!)


So how do you like it?


Well, I was just wondering if you think you could handle riding the rides
with me at Carowinds?  


Sure.  :)


The only kinds of rides I don't ride are the ones
that hang you upside-down and leave you there for a little while.


Oh, I used to never ride those, but I'vc gotten to the point now where I'll
 ride just about any of them.  Admittedly, I'm still not the biggest of "stand-up"
 coasters...   The "vortex" (which is, I think, still the only one like that
 at Carowinds) actually looks pretty good, though.  :)


  Are
you going to meet us at the church or are you going to meet us at
Carowinds?



I'm planning on coming down Friday evening and meeting y'all at the church. 
 Do you know what time they are planning on meeting?  The last that I had
 heard was 8 AM.

-
Jess