Problem Installing SetTag-1.0.1
I'm traying to install the SetTag-1.0.1 product but is not working it shows ImportError: No Module Named SetTag-1.0.1 What can I do to make it Work? _________________________________________________________________ Charla con tus amigos en línea mediante MSN Messenger: http://messenger.yupimsn.com/
Alexander Alvarado wrote:
I'm traying to install the SetTag-1.0.1 product but is not working it shows ImportError: No Module Named SetTag-1.0.1
What can I do to make it Work?
Don't use it. Don't use DTML. Learn ZPT and Python scripts and your life will be much better in the long run... Chris
I have nothing to add here but just have to ask....
Don't use DTML. Learn ZPT and Python scripts and your life will be much better in the long run...
Our entire site is DTML with some py scripts and external Methods sprinkled in.... Hundreds and hundreds of dtml files that refer to other dtml files.... standard_html_header, etc. everywhere. How is it possible to convert a site to ZPT when DTML is so tightly tied together and lives everywhere? Just curious. Thanks Allen Chris Withers wrote:
Alexander Alvarado wrote:
I'm traying to install the SetTag-1.0.1 product but is not working it shows ImportError: No Module Named SetTag-1.0.1
What can I do to make it Work?
Don't use it. Don't use DTML. Learn ZPT and Python scripts and your life will be much better in the long run...
Chris
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
On Fri, 2003-09-12 at 09:20, Allen wrote:
I have nothing to add here but just have to ask....
Don't use DTML. Learn ZPT and Python scripts and your life will be much better in the long run...
Our entire site is DTML with some py scripts and external Methods sprinkled in.... Hundreds and hundreds of dtml files that refer to other dtml files.... standard_html_header, etc. everywhere.
How is it possible to convert a site to ZPT when DTML is so tightly tied together and lives everywhere?
Just curious. Thanks
Generally speaking: -Migrate the 'presentation' parts of the site to page templates. -Migrate the 'logic' parts of the site to python scripts. Anything else would be dependant on the site itself. [snip] -- Edward Muller - http://www.interlix.com - "Open Source Specialists" Dedicated Zope Hosting - Web Hosting - Open Source Consulting Network & PC Service & Support - Custom Programming Phone: 417-862-0573 - Cell: 417-844-2435 - Fax: 417-862-0572 Jabber: edwardam@jabber.interlix.com - AIM: edwardam453 - ICQ: 287033
On Fri, 2003-09-12 at 10:23, Edward Muller wrote:
Generally speaking: -Migrate the 'presentation' parts of the site to page templates. -Migrate the 'logic' parts of the site to python scripts.
Even more generally speaking: - If it ain't broke, don't fix it. ZPT may be a better choice for a *new* project than DTML, but it's absurd to suggest that ZPT conveys any advantage that is worth refactoring an working system for. $.02, Dylan
Well, it ain't broke and it works very well most of the time. And I like DTML. It just makes sense to me. Guess that makes me weird these days... And I have broken all the rules...mixing logic and presentation. But I do it that way because it works and gives me the results I need. I have been "programming" HTML since late '92 and the tag-based syntax works well for me. Doing a LOT more in Python scripts and External methods and slowly converting some things so I am not STAYING in the dark ages. I use HomeSite5 for editing so coding in DTML works great. Thanks for the comments guys. Stop by and see what I mean... www.fredericksburg.com ...mostly all DTML and ZCLASSes. Scares me to think about converting the whole thing over. Allen Dylan Reinhardt wrote:
Generally speaking: -Migrate the 'presentation' parts of the site to page templates. -Migrate the 'logic' parts of the site to python scripts.
Even more generally speaking: - If it ain't broke, don't fix it.
ZPT may be a better choice for a *new* project than DTML, but it's absurd to suggest that ZPT conveys any advantage that is worth refactoring an working system for.
On Fri, 2003-09-12 at 13:11, Allen wrote:
Well, it ain't broke and it works very well most of the time. And I like DTML. It just makes sense to me. Guess that makes me weird these days... And I have broken all the rules...mixing logic and presentation. But I do it that way because it works and gives me the results I need. I have been "programming" HTML since late '92 and the tag-based syntax works well for me. Doing a LOT more in Python scripts and External methods and slowly converting some things so I am not STAYING in the dark ages. I use HomeSite5 for editing so coding in DTML works great.
Broke is relative, as you said it works well 'most of the time'. :-) I personally don't like DTML, which doesn't mean that you shouldn't use it. :-) Here is a link I dug up: ZPT vs. DTML http://www.zope.org/Members/regebro/zpt_vs_dtml/ [snip] -- Edward Muller - http://www.interlix.com - "Open Source Specialists" Dedicated Zope Hosting - Web Hosting - Open Source Consulting Network & PC Service & Support - Custom Programming Phone: 417-862-0573 - Cell: 417-844-2435 - Fax: 417-862-0572 Jabber: edwardam@jabber.interlix.com - AIM: edwardam453 - ICQ: 287033
Allen wrote:
Well, it ain't broke and it works very well most of the time. And I like DTML. It just makes sense to me. Guess that makes me weird these days...
No really, but give ZPT a spin if you get a chance. It is different, but from the posts I'ev seen, most peopel whio start using it like it a lot :-)
And I have broken all the rules...mixing logic and presentation. But I do it that way because it works and gives me the results I need.
Well, if it works for you, that's no problem. You may have issues if you need other people to help you out either by taking over bits of the code, or if you ask on the list for help with problems...
STAYING in the dark ages. I use HomeSite5 for editing so coding in DTML works great.
HomeSite5 would probably handle ZPT even better ;-) Chris
On Fri, 2003-09-12 at 12:48, Dylan Reinhardt wrote:
On Fri, 2003-09-12 at 10:23, Edward Muller wrote:
Generally speaking: -Migrate the 'presentation' parts of the site to page templates. -Migrate the 'logic' parts of the site to python scripts.
Even more generally speaking: - If it ain't broke, don't fix it.
ZPT may be a better choice for a *new* project than DTML, but it's absurd to suggest that ZPT conveys any advantage that is worth refactoring an working system for.
$.02,
Dylan
I never said he HAS to convert his DTML to ZPT. For me however, Once I found ZPT (they happened during a time when I took about a year off from anything zope related) I never looked back to DTML. DTML was always *wrong* as far as I was concerned. ZPT is much cleaner, breaks less editors, helps enforce the separation of logic and presentation, etc. But that's just me. If it were my site I would refactor the DTML parts into ZPT/Python Scripts (and maybe a few products) over time. Again, that's just me. -- Edward Muller - http://www.interlix.com - "Open Source Specialists" Dedicated Zope Hosting - Web Hosting - Open Source Consulting Network & PC Service & Support - Custom Programming Phone: 417-862-0573 - Cell: 417-844-2435 - Fax: 417-862-0572 Jabber: edwardam@jabber.interlix.com - AIM: edwardam453 - ICQ: 287033
On Fri, 2003-09-12 at 12:27, Edward Muller wrote:
I never said he HAS to convert his DTML to ZPT.
Good point. And I didn't mean to suggest that it was your idea that he needed to refactor. You were answering a direct question of *how* to refactor and I meant only to answer the implied question of *why* to refactor. Sorry for the confusion. Dylan
Dylan Reinhardt wrote:
On Fri, 2003-09-12 at 10:23, Edward Muller wrote:
Generally speaking: -Migrate the 'presentation' parts of the site to page templates. -Migrate the 'logic' parts of the site to python scripts.
Even more generally speaking: - If it ain't broke, don't fix it.
Absolutely, but Alex had a broken thing ;-) Chris
Our entire site is DTML with some py scripts and external Methods sprinkled in.... Hundreds and hundreds of dtml files that refer to other dtml files.... standard_html_header, etc. everywhere.
How is it possible to convert a site to ZPT when DTML is so tightly tied together and lives everywhere?
If it works dont break it, ignore Chris. DTML is just fine - not perfect, seperation of logic and content is the key so if you do get chance I would always recommend a bit of cleaning up and moving stuff in Python Scripts which it sounds like you are doing anyway. After all in 2 years time someone will just have the replacement for ZPT working and the people will be sending emails that say "Dont use ZPT" :) -- Andy McKay http://www.agmweb.ca
Allen wrote:
I have nothing to add here but just have to ask....
Don't use DTML. Learn ZPT and Python scripts and your life will be much better in the long run...
Our entire site is DTML with some py scripts and external Methods sprinkled in.... Hundreds and hundreds of dtml files that refer to other dtml files.... standard_html_header, etc. everywhere.
How is it possible to convert a site to ZPT when DTML is so tightly tied together and lives everywhere?
Slowly, and over time. You can call DTML from ZPT and ZPT from DTML, so the transition can be done bit by bit... Chris
Alexander Alvarado schrieb:
I'm traying to install the SetTag-1.0.1 product but is not working it shows ImportError: No Module Named SetTag-1.0.1
What can I do to make it Work?
It seems that Zope can't find the product directory. Are you sure you unpacked it to your .../zope/lib/python/Products directory? hth, Tobias
participants (7)
-
Alexander Alvarado -
Allen -
Andy McKay -
Chris Withers -
Dylan Reinhardt -
Edward Muller -
Tobias Herp