Hi,
I tried using formlib and tried the integrating into plone site ...
Im getting this error when I tried to create the product skeletion using Paste:
ImportError: No module named Cheetah.Template
Following is what happens when i run the paster command:
#paster create -t plone ploneexample.formlib
. (All info is put here)
.
.
Creating template basic_namespace
Creating directory ./ploneexample.formlib
Recursing into +namespace_package+
Creating ./ploneexample.formlib/ploneexample/
Recursing into +package+
Creating ./ploneexample.formlib/ploneexample/formlib/
Traceback (most recent call last):
File "/usr/bin/paster", line 7, in ?
sys.exit(
File
"/usr/lib/python2.4/site-packages/PasteScript-1.3-py2.4.egg/paste/script/command.py",
line 76, in run
invoke(command, command_name, options, args[1:])
File
"/usr/lib/python2.4/site-packages/PasteScript-1.3-py2.4.egg/paste/script/command.py",
line 115, in invoke
exit_code = runner.run(args)
File
"/usr/lib/python2.4/site-packages/PasteScript-1.3-py2.4.egg/paste/script/command.py",
line 210, in run
result = self.command()
File
"/usr/lib/python2.4/site-packages/PasteScript-1.3-py2.4.egg/paste/script/create_distro.py",
line 124, in command
self.create_template(
File
"/usr/lib/python2.4/site-packages/PasteScript-1.3-py2.4.egg/paste/script/create_distro.py",
line 167, in create_template
template.run(self, output_dir, vars)
File
"/usr/lib/python2.4/site-packages/PasteScript-1.3-py2.4.egg/paste/script/templates.py",
line 57, in run
self.write_files(command, output_dir, vars)
File
"/usr/lib/python2.4/site-packages/PasteScript-1.3-py2.4.egg/paste/script/templates.py",
line 126, in write_files
template_renderer=self.template_renderer)
File
"/usr/lib/python2.4/site-packages/PasteScript-1.3-py2.4.egg/paste/script/copydir.py",
line 90, in copy_dir
svn_add=svn_add, template_renderer=template_renderer)
File
"/usr/lib/python2.4/site-packages/PasteScript-1.3-py2.4.egg/paste/script/copydir.py",
line 90, in copy_dir
svn_add=svn_add, template_renderer=template_renderer)
File
"/usr/lib/python2.4/site-packages/PasteScript-1.3-py2.4.egg/paste/script/copydir.py",
line 99, in copy_dir
template_renderer=template_renderer)
File
"/usr/lib/python2.4/site-packages/PasteScript-1.3-py2.4.egg/paste/script/copydir.py",
line 272, in substitute_content
import Cheetah.Template
ImportError: No module named Cheetah.Template
Any idea why this occurs?
Adit
On 3/27/07, Christian Klinger <[EMAIL PROTECTED]> wrote:
Adit Ranadive schrieb:
> Hi,
>
> My question is follows:
>
> I have a couple of page templates and a python script. The first page
> template
> contains a form for users to fill in their data. This form is submitted to
> another server and a perl script executes on the data on the form and
> sends back
> the response to the second page template. The second page template
> displays the
> response.
> I want to turn this into a product.
> What is the best possible way to do this?
>
> Also, keeping in mind that Im using Plone 2.5.1 and will be shifting to
> Plone
> 2.5.2 soon. For future compatibility in what way should the product be
> designed?
>
> Thanks,
> Adit
>
> P.S. : I dont know what the perl script does but I submit it data and it
> redirects the response to the second template.
>
Hi Adit,
do you know formlib. This is a zope 3 package, which is usable
through five. I find it very useful. Maybe this is an option
for you new product. It renders you automatically the input_form
from an interface of your Product. And it takes care on validation.
You can get some info about formlib here:
http://svn.zope.org/zope.formlib/branches/f12gsprint-widget/src/zope/formlib/form.txt?rev=38253&view=markup
The integration into plone:
http://plone.org/documentation/tutorial/using-zope-formlib-with-plone/?searchterm=formlib%20plone
hth Christian
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers
--
Adit Ranadive
MS CS Candidate
Georgia Institute of Technology,
Atlanta, GA
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers