Here is an example of how I use Webware.
I need to pull data from Quickbase.com - a web based database ASP type service.
1) Created a generic QBClient module in python that interacts w/ Quickbase
--- All coding done w/o webware at all
2) Create a servlet with this method:
def prepareReport(self):
qb = QBClient()
qb.userName = 'This is not my qbusername'
qb.passwd = 'This is not my passwd'
qb.database = 'this is not my database'
ctable = qb.getCVSTable() <-- return CVS data
csvdata = ASV.ASV() < ASB is a module to parse CVS data
csvdata.set_field_names(['Name','Products','Alt1','Alt2','Alt3','Alt4','Alt5'])
csvdata.input(ctable,ASV.CSV())
csvdata.data.pop(0) <- the top row is header info, lose that
self.records = csvdata
3) create a PSP file that uses self.records
<%def writeTableRecord(row):%>
<tr>
<TD class="reportSectionCell" align="left" style="text-align:left;"><b><%= row['Name']%>
<TD class="reportSectionCell" align="left" style="text-align:left;"><b><%= row['Products']%>
</tr>
<% end %>
on the other hand if you are building a pretty standard website Zope is much easier. I build a large website and support site in Zope and it was very easy to build up a FAQ and knowledge base. Of course when I had to integrate that Knowbase into a MsSQL database things got interesting.....
-Aaron
Chris Bruce wrote:
I truly believe that Python is probably the best web development language around. I have actually been paid to develop with Java, ASP, PHP, and Perl and none of them are the silver bullet, like python appears to be. But, I am now trying to find a great framework to use on all future apps done in Python.
I am getting ready to build a large webbased application. I am set on python (still wondering how to make installation easy) and am deciding between Zope and Webware. I have developed many Zope applications, but new to Webware. I am well aware that they are very different and they can't truly be compared. But many things I have read about Webware always mention "Non of the Headaches of Zope" or something similar. What is meant by this?
Can you guys offer some objective information for/against Zope/Webware in general. My application is basically "a website in a box" designed for the needs of a specific industry..
I am not looking to start a debate or anything, just trying to get some fresh points of view. Some of the reasons why I am looking at Webware: MiddleKit mod_webkit I have had weird ZODB issues in the past. Maximum use of Python
Features about Zope I like: Webbased access to development and whole system Built in Security (no coding) Super fast to develop and deploy apps Virtual Host Support
Thanks,
Chris
-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss
------------------------------------------------------- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click here: http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss