zapp-cvs-commit Mailing List for ZApp Framework
Brought to you by:
sspickle
You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(24) |
Jul
(14) |
Aug
(19) |
Sep
(3) |
Oct
(21) |
Nov
(9) |
Dec
(8) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(23) |
Feb
(13) |
Mar
(37) |
Apr
(5) |
May
(15) |
Jun
(2) |
Jul
(1) |
Aug
(1) |
Sep
(13) |
Oct
(1) |
Nov
(1) |
Dec
|
| 2005 |
Jan
(2) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2006 |
Jan
(4) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
|
From: Steve S. <ssp...@us...> - 2012-09-20 11:24:18
|
Update of /cvsroot/zapp/ZApp
In directory vz-cvs-4.sog:/tmp/cvs-serv14085
Modified Files:
ZApp_MiscData.py
Log Message:
allow none in xml blobs
Index: ZApp_MiscData.py
===================================================================
RCS file: /cvsroot/zapp/ZApp/ZApp_MiscData.py,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** ZApp_MiscData.py 3 Oct 2004 11:19:50 -0000 1.30
--- ZApp_MiscData.py 20 Sep 2012 11:24:15 -0000 1.31
***************
*** 66,70 ****
def buildXML(self, commit_now=1):
""" create the XML to represent this object."""
! self.xml = dumps( (self._v_xmlDict,))
if commit_now:
--- 66,70 ----
def buildXML(self, commit_now=1):
""" create the XML to represent this object."""
! self.xml = dumps( (self._v_xmlDict,), allow_none=True)
if commit_now:
|
|
From: Steve S. <ssp...@us...> - 2006-07-03 18:24:56
|
Update of /cvsroot/zapp/ZApp/www_ui In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv3144/www_ui Modified Files: createNewItemForm_html.plain createNewItem_html.plain deleteSelectedItems_html.plain displayInsertForm_html.plain displayUpdateForm_html.plain display_app_html.plain editSelectedItems_html.plain filterDisplay_html.plain index_html.plain quickDisplay_html.plain updateItem.plain updateItem_html.plain Log Message: fix up permissions in the defaults UI Index: display_app_html.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/www_ui/display_app_html.plain,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** display_app_html.plain 29 Dec 2002 18:50:15 -0000 1.2 --- display_app_html.plain 3 Jul 2006 18:24:50 -0000 1.3 *************** *** 1,5 **** Id: display_app_html Meta-Type: DTML Method ! Permissions: Proxy-Roles: Title: --- 1,5 ---- Id: display_app_html Meta-Type: DTML Method ! Permissions: View=('Manager',) Proxy-Roles: Title: Index: index_html.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/www_ui/index_html.plain,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** index_html.plain 24 Apr 2003 15:11:54 -0000 1.5 --- index_html.plain 3 Jul 2006 18:24:50 -0000 1.6 *************** *** 1,5 **** Id: index_html Meta-Type: DTML Method ! Permissions: Proxy-Roles: Title: --- 1,5 ---- Id: index_html Meta-Type: DTML Method ! Permissions: View=('Manager',) Proxy-Roles: Title: Index: displayInsertForm_html.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/www_ui/displayInsertForm_html.plain,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** displayInsertForm_html.plain 29 Dec 2002 18:50:15 -0000 1.6 --- displayInsertForm_html.plain 3 Jul 2006 18:24:50 -0000 1.7 *************** *** 1,5 **** Id: displayInsertForm_html Meta-Type: DTML Method ! Permissions: Proxy-Roles: Title: --- 1,5 ---- Id: displayInsertForm_html Meta-Type: DTML Method ! Permissions: View=('Manager',) Proxy-Roles: Title: Index: updateItem.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/www_ui/updateItem.plain,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** updateItem.plain 7 Mar 2003 11:03:19 -0000 1.4 --- updateItem.plain 3 Jul 2006 18:24:50 -0000 1.5 *************** *** 7,11 **** Meta-Type: Script (Python) Parameters: ! Permissions: Proxy-Roles: Title: --- 7,11 ---- Meta-Type: Script (Python) Parameters: ! Permissions: View=('Manager',) Proxy-Roles: Title: Index: deleteSelectedItems_html.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/www_ui/deleteSelectedItems_html.plain,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** deleteSelectedItems_html.plain 25 Apr 2003 11:35:39 -0000 1.5 --- deleteSelectedItems_html.plain 3 Jul 2006 18:24:50 -0000 1.6 *************** *** 1,5 **** Id: deleteSelectedItems_html Meta-Type: DTML Method ! Permissions: Proxy-Roles: Title: --- 1,5 ---- Id: deleteSelectedItems_html Meta-Type: DTML Method ! Permissions: View=('Manager',) Proxy-Roles: Title: Index: createNewItem_html.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/www_ui/createNewItem_html.plain,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** createNewItem_html.plain 25 Apr 2003 11:23:37 -0000 1.4 --- createNewItem_html.plain 3 Jul 2006 18:24:50 -0000 1.5 *************** *** 1,5 **** Id: createNewItem_html Meta-Type: DTML Method ! Permissions: Proxy-Roles: Title: --- 1,5 ---- Id: createNewItem_html Meta-Type: DTML Method ! Permissions: View=('Manager',) Proxy-Roles: Title: Index: filterDisplay_html.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/www_ui/filterDisplay_html.plain,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** filterDisplay_html.plain 4 Feb 2004 12:06:08 -0000 1.4 --- filterDisplay_html.plain 3 Jul 2006 18:24:50 -0000 1.5 *************** *** 1,5 **** Id: filterDisplay_html Meta-Type: DTML Method ! Permissions: Proxy-Roles: Title: --- 1,5 ---- Id: filterDisplay_html Meta-Type: DTML Method ! Permissions: View=('Manager',) Proxy-Roles: Title: Index: updateItem_html.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/www_ui/updateItem_html.plain,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** updateItem_html.plain 29 Dec 2002 18:50:15 -0000 1.3 --- updateItem_html.plain 3 Jul 2006 18:24:50 -0000 1.4 *************** *** 1,5 **** Id: updateItem_html Meta-Type: DTML Method ! Permissions: Proxy-Roles: Title: --- 1,5 ---- Id: updateItem_html Meta-Type: DTML Method ! Permissions: View=('Manager',) Proxy-Roles: Title: Index: createNewItemForm_html.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/www_ui/createNewItemForm_html.plain,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** createNewItemForm_html.plain 29 Dec 2002 18:50:15 -0000 1.3 --- createNewItemForm_html.plain 3 Jul 2006 18:24:50 -0000 1.4 *************** *** 1,5 **** Id: createNewItemForm_html Meta-Type: DTML Method ! Permissions: Proxy-Roles: Title: --- 1,5 ---- Id: createNewItemForm_html Meta-Type: DTML Method ! Permissions: View=('Manager',) Proxy-Roles: Title: Index: editSelectedItems_html.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/www_ui/editSelectedItems_html.plain,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** editSelectedItems_html.plain 29 Dec 2002 18:50:15 -0000 1.3 --- editSelectedItems_html.plain 3 Jul 2006 18:24:50 -0000 1.4 *************** *** 1,5 **** Id: editSelectedItems_html Meta-Type: DTML Method ! Permissions: Proxy-Roles: Title: --- 1,5 ---- Id: editSelectedItems_html Meta-Type: DTML Method ! Permissions: View=('Manager',) Proxy-Roles: Title: Index: quickDisplay_html.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/www_ui/quickDisplay_html.plain,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** quickDisplay_html.plain 15 Mar 2005 20:59:11 -0000 1.14 --- quickDisplay_html.plain 3 Jul 2006 18:24:50 -0000 1.15 *************** *** 1,5 **** Id: quickDisplay_html Meta-Type: DTML Method ! Permissions: Proxy-Roles: Title: --- 1,5 ---- Id: quickDisplay_html Meta-Type: DTML Method ! Permissions: View=('Manager',) Proxy-Roles: Title: Index: displayUpdateForm_html.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/www_ui/displayUpdateForm_html.plain,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** displayUpdateForm_html.plain 25 Apr 2003 10:26:31 -0000 1.5 --- displayUpdateForm_html.plain 3 Jul 2006 18:24:50 -0000 1.6 *************** *** 1,5 **** Id: displayUpdateForm_html Meta-Type: DTML Method ! Permissions: Proxy-Roles: Title: --- 1,5 ---- Id: displayUpdateForm_html Meta-Type: DTML Method ! Permissions: View=('Manager',) Proxy-Roles: Title: |
|
From: Steve S. <ssp...@us...> - 2006-07-03 18:24:55
|
Update of /cvsroot/zapp/ZApp In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv3144 Modified Files: ZApp_Base.py ZApp_PlainTextImportExport.py Log Message: fix up permissions in the defaults UI Index: ZApp_Base.py =================================================================== RCS file: /cvsroot/zapp/ZApp/ZApp_Base.py,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** ZApp_Base.py 20 Feb 2005 19:45:44 -0000 1.26 --- ZApp_Base.py 3 Jul 2006 18:24:50 -0000 1.27 *************** *** 248,253 **** # I think we probably need this, but I need to do some more testing before I check it in to the codebase. # ! # security.declareProtected("Modify ZApp DataSkin", 'change') ! # security.declareProtected("Modify ZApp DataSkin", 'manage_changeProperties') # --- 248,253 ---- # I think we probably need this, but I need to do some more testing before I check it in to the codebase. # ! security.declareProtected("Modify ZApp DataSkin", 'change') ! security.declareProtected("Modify ZApp DataSkin", 'manage_changeProperties') # Index: ZApp_PlainTextImportExport.py =================================================================== RCS file: /cvsroot/zapp/ZApp/ZApp_PlainTextImportExport.py,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** ZApp_PlainTextImportExport.py 5 Dec 2002 14:06:56 -0000 1.1.1.1 --- ZApp_PlainTextImportExport.py 3 Jul 2006 18:24:50 -0000 1.2 *************** *** 6,9 **** --- 6,13 ---- from DateTime.DateTime import DateTime + StringType=type('') + TupleType=type(()) + ListType=type([]) + # Low level formatting routines |
|
From: Steve S. <ssp...@us...> - 2006-01-05 12:01:27
|
Update of /cvsroot/zapp/ZApp/help In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32162/help Modified Files: ZApp.stx Added Files: add_zapp_app.jpg person_track_app_list.jpg Log Message: adding more docs --- NEW FILE: person_track_app_list.jpg --- (This appears to be a binary file; contents omitted.) --- NEW FILE: add_zapp_app.jpg --- (This appears to be a binary file; contents omitted.) Index: ZApp.stx =================================================================== RCS file: /cvsroot/zapp/ZApp/help/ZApp.stx,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ZApp.stx 3 Jan 2006 20:00:23 -0000 1.4 --- ZApp.stx 5 Jan 2006 12:01:18 -0000 1.5 *************** *** 124,126 **** context.registerBaseClass(PTRK_Person) ! This is a bare-bones template that you can expand on to build your class. \ No newline at end of file --- 124,193 ---- context.registerBaseClass(PTRK_Person) ! This is a bare-bones template that you can expand on to build your class. ! First, let's add the properties mentioned before. Persistent properties of ! our objects are established by providing the ZApp_Base class method 'extendProperties' ! with a LeverPropertyCollection (called 'props' in the source) that contains all ! the properties (LeverProperties really) that specify the names and attributes ! of the various properties. Edit the code that sets up the property ! collect so that it looks like this:: ! ! props = lpcol([ ! lprop(id='last', dbSize=25), ! lprop(id='first', dbSize=10), ! lprop(id='middle', dbSize=1), ! lprop(id='gender', dbSize=1), ! lprop(id='birthdate', prop_type='date'), ! ] ! ) ! ! We'll get to the options for LeverProperties later, for now notice ! that each property needs an 'id' (and be sure to avoid built-in Zope ! properties like 'id' and 'title'.) If the type is not string, use ! the 'prop_type' keyword to specify. If the size is important (e.g., ! if you're using an sql backend) you can specify the maximum property ! size by using the 'dbSize' keyword. ! ! While we're in here.. let's create an object method that 'computes' a ! "fullname" string that can be used by our application. Add a method ! to the PTRK_Person class like this:: ! ! def fullname(self): ! """compute the full name of a person.""" ! ! return "%s, %s %s." % (self.last, self.first, self.middle) ! ! This permits us to 'compute' the full name of a person object at any time ! by calling the person object's 'fullname()' method. ! ! ! Plugging The Class Into Zope ! ! Now that we have a class defined, let's plug it into the Zope ! framework. First, in the Zope instance home 'Products' directory, ! make a link to the 'PersonTracker' directory where your ! PTRK_Person.py class is defined. Then, restart Zope in 'debug mode' ! from the command line. When Zope is starting it scans the Products ! directory for classes that can be used by Zope to build ! applications. If there are any problems in loading the class, Zope ! should complain in the command line output where you started Zope. ! ! If there are no problems, go to the Zope Management Interface (ZMI) ! and pick a spot where you'd like to create your new application. ! Go to the "Select Type To Add" popup, and choose "Z App Application". ! You should see a form something like this: ! ! "Adding ZApp Application":img:add_zapp_app.jpg ! ! There is a popup to choose the flavor of "lever methods" you ! want to use. A lever method is basically just a scheme for ! using the class properties to automatically build backend schema ! and a developer UI for you. In order to do this, the ZApp application ! needs to know which backend you'll be using for your peristent storage. ! I'm going to choose postgresql, for reasons that will become clear later. ! After creating the ZApp application you should see that it contains ! the following templates: ! ! "ZApp Application Templates":img:person_track_app_list.jpg ! ! ! \ No newline at end of file |
|
From: Steve S. <ssp...@us...> - 2006-01-03 20:00:35
|
Update of /cvsroot/zapp/ZApp/help In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15148/help Modified Files: ZApp.stx Log Message: start on new docs Index: ZApp.stx =================================================================== RCS file: /cvsroot/zapp/ZApp/help/ZApp.stx,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ZApp.stx 28 Mar 2003 20:38:25 -0000 1.3 --- ZApp.stx 3 Jan 2006 20:00:23 -0000 1.4 *************** *** 1,22 **** ! ZApp ZPatterns Application Helper ! ! ZApp provides ZPatterns developers with tools that facilitate application ! development with ZPatterns. ! ! Imagine you could have an Application API that: ! ! 1 Works ! ! ZApp has four primary parts that work together: ! ! 1 ZApp_Base.py provides a base class that can be subclassed to create components of ZApp_Applications ! ! 1 ZApp_Specialist provides management features that help keep track of ZApp_Base objects. ! 1 ZApp_Application contains a hierarchy of ZApp_Specialists, and provides a set of Levers, and a simple UI. ! 1 ZApp_LeverMethods provides automated query/management functions for various backend systems --- 1,126 ---- ! ZApp Introduction ! ZApp is an collection of application development objects that live on top of Zope ! and ZPatterns. The concept is to make it easier to develop applications ! in an object oriented way using a variety of "back end" data storages ! along with transactions, triggers, and other useful technologies. ! This document assumes you're familiar with Zope, ZPatterns and some ! back-end database (we use postgresql, but others are OK). ! ! ZApp adds six main ingredients to ZPatterns: ! ! * ZApp Base Class (subclass of DataSkin) ! ! * ZApp Specialist (subclass of Specialist) ! ! * ZApp Application (central controller-like object) ! ! * ZApp Relationship subclasses (for building relational structures) ! ! * ZApp Misc Data (for attaching arbitrary misc data to objects) ! ! * ZApp CMF Content (for including ZApp objects in CMF) ! ! Of these the first three (ZAppBase, ZAppSpecialist and ZAppApplication) are core objects ! that are required to do much of anything with ZApp. The last three are optional, but ! can be very helpful. ! ! This intro consists of documentation on each of these six ingredients in the ! form of a tutorial/example that describes each of the objects/classes in turn. ! (There is more conventional class oriented documentation in Zope itself after ! you install ZApp). ! ! How to get ZApp ! ! You can get ZApp from CVS. Just type the following:: ! ! cvs -z3 -q -d :pserver:ano...@cv...:/cvsroot/zapp login ! cvs -z3 -q -d :pserver:ano...@cv...:/cvsroot/zapp co ZApp ! ! from sourceforge: http://sourceforge.net/projects/zapp ! ! ! Example Application: Keeping track of People ! Let's start with the simplest possible application. Let's say we want to ! keep track of some people. Each person will have an id, and some ! basic information (first, last and middle names, gender, birthdate). ! These people will form a 'collection' in our application. This collection ! will be managed by a 'Specialist' who knows all about people (how to find them, ! how to add them, delete them, change them, etc.). We'll call our Specialist ! 'People' so we remember which obejcts the specilist handles. ! ! The first thing we need to do is to create the Person class. There is a handy utility ! called ZAppStart (cvs -z3 -q -d :pserver:ano...@cv...:/cvsroot/zapp co ZAppStart). ! ! Put the ZAppStart folder in the same directory where you store Zope Products. ! ! type:: ! ! python ZAppTransformer.py --help + Usage: ZAppTransformer.py [-a|--action actionName] [-p|--pdb] + + -p, --pdb : break at options.. + -d, --debug [debugVal] : turn on some debugging + -a, --action actionName:arg1:arg2 : perform a templating function.. + + valid actions are: + display -- display: (Display the Product's Current Settings.) + newCMFClass -- newCMFClass:className:superClass=ZApp_CMFBase (Add a Class to an existing Product.) + newClass -- newClass:className:superClass=ZApp_Base (Add a Class to an existing Product.) + newProduct -- newProduct:productName:productAbbreviation (Build a peer directory with this script, and all the templates in it..) + rebuild -- rebuild: (Rebuild the class files..) + removeClass -- removeClass:className (Remove a from an existing Product.) + setProductName -- setProductName:productName:projectAbbreviation (Set(Change?) a Product Name) + + this will display the help info for the command line. Basically you can specify a command with arguments + separate by colons. To create a new product, use the 'newProduct' command:: + + python ZAppTransformer.py -a newProduct:PersonTracker:PTRK + + This creates a new directory (PersonTracker), as a sibling of the ZAppStart directory. + You now have an empty "PersonTracker" product. All of the PersonTracker classes can/will + be defined in this product. If you 'cd' to that directory you can continue building your + class(es) there. Let's add a new class, 'Person', to our product:: + python transform -a newClass:Person + + Now if you check in the directory you'll see something like:: + . + .. + PTRK_Person.py + __init__.py + classes.db + templates -> ../ZAppStart/templates + transform -> ../ZAppStart/ZAppTransformer.py + + The Person class is defined in the PTRK_Person.py file. The __init__.py file is the "Product init file." It's + used to register the classes used by the Product into Zope. Let's look at the PTRK_Person.py file:: + + # + # Use ZApp_Base as a base class to make details easier.. template for PTRK_Person + # + + from Products.ZApp import ZApp_Base + from Products.PageTemplates.PageTemplateFile import PageTemplateFile + + lpcol = ZApp_Base.LeverPropertyCollection + lprop = ZApp_Base.LeverProperty + + props = lpcol([ + lprop(id='person_property'), + ] + ) + + class PTRK_Person( ZApp_Base.ZApp_Base ): + + meta_type = 'PTRK Person' + + ZApp_Base.extendProperties( PTRK_Person, props ) + + def initialize(context): + context.registerBaseClass(PTRK_Person) + This is a bare-bones template that you can expand on to build your class. \ No newline at end of file |
|
From: Steve S. <ssp...@us...> - 2006-01-01 23:01:19
|
Update of /cvsroot/zapp/ZApp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11222 Modified Files: README.txt ZApp_RelationshipManager.py Log Message: fixed bug in removeObjects of relationship manager. Added test. Index: README.txt =================================================================== RCS file: /cvsroot/zapp/ZApp/README.txt,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** README.txt 7 Apr 2003 01:36:14 -0000 1.2 --- README.txt 1 Jan 2006 23:01:01 -0000 1.3 *************** *** 5,9 **** You can import "ZApp_TestApps.zexp" from tests/import into the root of a Zope instance, and ! then run the 'doCreateSchema' lever on the Gadfly, and postgres databases you want to use for testing. --- 5,9 ---- You can import "ZApp_TestApps.zexp" from tests/import into the root of a Zope instance, and ! then run the 'doCreateSchema' lever on the Gadfly, postgres, or MySQL databases you want to use for testing. Index: ZApp_RelationshipManager.py =================================================================== RCS file: /cvsroot/zapp/ZApp/ZApp_RelationshipManager.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** ZApp_RelationshipManager.py 28 Mar 2004 22:14:47 -0000 1.6 --- ZApp_RelationshipManager.py 1 Jan 2006 23:01:01 -0000 1.7 *************** *** 66,71 **** --- 66,73 ---- o2Type='' + o2ID='' if object2: o2Type=object2.objectType + o2ID=object2.getId() elif object2Type: o2Type=object2Type *************** *** 90,96 **** rItems = rItemsMan.ZApp_getItems(objectID=object1.getPrimaryKeyValue(), objectManager=object1.Manager, roleID=role1ID) ! self.removeObjectRelations( rItems = rItems, role1ID = role1ID, role2ID = role2ID, o2Type = o2Type, o2Manager = o2Manager) ! def removeObjectRelations(self, rItemIDs=None, rItems=None, role1ID='', role2ID='', o2Type='', o2Manager=''): """ remove the relationships with the given relationship items, or relationship item ids.. --- 92,98 ---- rItems = rItemsMan.ZApp_getItems(objectID=object1.getPrimaryKeyValue(), objectManager=object1.Manager, roleID=role1ID) ! self.removeObjectRelations( rItems = rItems, role1ID = role1ID, role2ID = role2ID, o2Type = o2Type, o2Manager = o2Manager, o2ID=o2ID) ! def removeObjectRelations(self, rItemIDs=None, rItems=None, role1ID='', role2ID='', o2Type='', o2Manager='', o2ID=''): """ remove the relationships with the given relationship items, or relationship item ids.. *************** *** 107,111 **** for rItem1 in rItems: theRID=rItem1.relationshipID ! for rItem2 in rItemsMan.ZApp_getItems(relationshipID=theRID, objectManager=o2Manager, roleID=role2ID): if rItem2.id != rItem1.id: if o2Type: --- 109,114 ---- for rItem1 in rItems: theRID=rItem1.relationshipID ! foundPartner=0 ! for rItem2 in rItemsMan.ZApp_getItems(relationshipID=theRID, objectManager=o2Manager, roleID=role2ID, objectID=o2ID): if rItem2.id != rItem1.id: if o2Type: *************** *** 114,131 **** if theObject.objectType != o2Type: continue rItem2.manage_delete() ! rItem1.manage_delete() ! self.commit_subtransaction() ! ! rItemsLeft = rItemsMan.ZApp_getItems(relationshipID=theRID) ! if len(rItemsLeft) < 2: ! for ri in rItemsLeft: ! ri.manage_delete() ! ! relation = self.getItem(theRID) ! if relation: ! relation.manage_delete() def getObjectRelations(self, anObject, objectTypes=None, objectRoles=None, selfRoles=None, returnObjects=0): --- 117,141 ---- if theObject.objectType != o2Type: continue + elif o2ID: + theObject = rItem2.getObject() + if theObject: + if theObject.getId() != o2ID: + continue rItem2.manage_delete() + foundPartner=1 ! if foundPartner: ! rItem1.manage_delete() ! self.commit_subtransaction() ! ! rItemsLeft = rItemsMan.ZApp_getItems(relationshipID=theRID) ! if len(rItemsLeft) < 2: ! for ri in rItemsLeft: ! ri.manage_delete() ! ! relation = self.getItem(theRID) ! if relation: ! relation.manage_delete() def getObjectRelations(self, anObject, objectTypes=None, objectRoles=None, selfRoles=None, returnObjects=0): |
|
From: Steve S. <ssp...@us...> - 2006-01-01 23:01:14
|
Update of /cvsroot/zapp/ZApp/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11222/tests Modified Files: test_RelationsBase.py Log Message: fixed bug in removeObjects of relationship manager. Added test. Index: test_RelationsBase.py =================================================================== RCS file: /cvsroot/zapp/ZApp/tests/test_RelationsBase.py,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** test_RelationsBase.py 3 Jul 2003 18:05:07 -0000 1.10 --- test_RelationsBase.py 1 Jan 2006 23:01:02 -0000 1.11 *************** *** 116,119 **** --- 116,141 ---- assert len(relations) == 0 + + def test_deleteOneRelationship(self): + + object1 = self.myApp.Foos.ZApp_createNewItem() + object2 = self.myApp.Bars.ZApp_createNewItem() + object3 = self.myApp.Bars.ZApp_createNewItem() + + object1.addObject( object2 ) + object1.addObject( object3 ) + + self.rm.commit_subtransaction() + + assert oToken(object2) in map(oToken, object1.relatedObjects()) + assert oToken(object3) in map(oToken, object1.relatedObjects()) + + object1.removeObject(object2) + + self.rm.commit_subtransaction() + + assert oToken(object2) not in map(oToken, object1.relatedObjects()) + assert oToken(object3) in map(oToken, object1.relatedObjects()) + def test_relateTwoObjectsWithContextID(self): |
|
From: Aaron P. <at...@us...> - 2005-06-23 20:49:06
|
Update of /cvsroot/zapp/ZApp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19365 Modified Files: ZApp_Specialist.py Log Message: Added int to type lookup. Index: ZApp_Specialist.py =================================================================== RCS file: /cvsroot/zapp/ZApp/ZApp_Specialist.py,v retrieving revision 1.42 retrieving revision 1.43 diff -C2 -d -r1.42 -r1.43 *** ZApp_Specialist.py 28 Jun 2004 13:17:36 -0000 1.42 --- ZApp_Specialist.py 23 Jun 2005 20:48:57 -0000 1.43 *************** *** 503,506 **** --- 503,507 ---- 'text':'text', 'boolean':'int', + 'int':'int', 'timestamp':'date', } |
|
From: Steve S. <ssp...@us...> - 2005-06-22 12:25:40
|
Update of /cvsroot/zapp/ZApp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4869 Modified Files: ZApp_Application.py Log Message: give sessions concept of channel Index: ZApp_Application.py =================================================================== RCS file: /cvsroot/zapp/ZApp/ZApp_Application.py,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** ZApp_Application.py 8 Jun 2004 14:29:01 -0000 1.36 --- ZApp_Application.py 22 Jun 2005 12:25:26 -0000 1.37 *************** *** 333,339 **** return results ! SDT = 'SESSION_DATA_TYPE' ! ! def getUserSessions(self, browserID=None, create=0): """ return the current session info object(s) --- 333,337 ---- return results ! def getUserSessions(self, browserID=None, channel=None, create=0): """ return the current session info object(s) *************** *** 341,349 **** conditions = { - 'dataType':self.SDT, 'Manager':'SessionData', - 'objectID':self.REQUEST.AUTHENTICATED_USER.getUserName(), } if browserID is not None: conditions.update({'xml':xmlrpclib.dumps(({'browserID':browserID},))}) --- 339,348 ---- conditions = { 'Manager':'SessionData', } + if channel: + conditions.update({'objectID':channel}) + if browserID is not None: conditions.update({'xml':xmlrpclib.dumps(({'browserID':browserID},))}) |
|
From: Steve S. <ssp...@us...> - 2005-03-15 20:59:22
|
Update of /cvsroot/zapp/ZApp/www_ui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22388/www_ui Modified Files: quickDisplay_html.plain Log Message: don't assume keys are strings Index: quickDisplay_html.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/www_ui/quickDisplay_html.plain,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** quickDisplay_html.plain 24 May 2004 15:20:22 -0000 1.13 --- quickDisplay_html.plain 15 Mar 2005 20:59:11 -0000 1.14 *************** *** 119,123 **** <dtml-if sequence-start> <td><input type="checkbox" name="ids:list" value="<dtml-var itemID>"></td> ! <td align="center"><a href="<dtml-var "itemID.replace('/',',')" url_quote>/displayUpdateForm_html"><dtml-var itemID html_quote></a></td> <dtml-else> <td align="center"><dtml-var "'\n'.join(`_.getattr(currItem,currID,'')`.split(r'\n'))" html_quote></td> --- 119,127 ---- <dtml-if sequence-start> <td><input type="checkbox" name="ids:list" value="<dtml-var itemID>"></td> ! <dtml-if "_.hasattr(itemID,'replace')"> ! <td align="center"><a href="<dtml-var "itemID.replace('/',',')" url_quote>/displayUpdateForm_html"><dtml-var itemID html_quote></a></td> ! <dtml-else> ! <td align="center"><a href="<dtml-var "itemID" url_quote>/displayUpdateForm_html"><dtml-var itemID html_quote></a></td> ! </dtml-if> <dtml-else> <td align="center"><dtml-var "'\n'.join(`_.getattr(currItem,currID,'')`.split(r'\n'))" html_quote></td> |
|
From: Steve S. <ssp...@us...> - 2005-02-20 19:45:53
|
Update of /cvsroot/zapp/ZApp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15629 Modified Files: ZApp_Base.py Log Message: potentail security change as comment for now.. Index: ZApp_Base.py =================================================================== RCS file: /cvsroot/zapp/ZApp/ZApp_Base.py,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** ZApp_Base.py 15 Aug 2004 18:08:17 -0000 1.25 --- ZApp_Base.py 20 Feb 2005 19:45:44 -0000 1.26 *************** *** 24,27 **** --- 24,28 ---- from Products.ZPatterns.SheetProviders import SheetProvider from OFS import PropertySheets + from AccessControl import ClassSecurityInfo _marker = [] *************** *** 181,184 **** --- 182,187 ---- _primaryKeyGenerator = 'self.id' _insertQueryPrefix = '' + + security = ClassSecurityInfo() def propDisplay(self): *************** *** 242,245 **** --- 245,255 ---- crr(self.id) + # + # I think we probably need this, but I need to do some more testing before I check it in to the codebase. + # + # security.declareProtected("Modify ZApp DataSkin", 'change') + # security.declareProtected("Modify ZApp DataSkin", 'manage_changeProperties') + # + def change(self, props=None, REQUEST=None, **kw): """ |
|
From: Steve S. <ssp...@us...> - 2005-01-07 15:58:02
|
Update of /cvsroot/zapp/ZApp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3716 Modified Files: ZApp_CMFBase.py Log Message: fixed edit action for zapp_zodb_image. Index: ZApp_CMFBase.py =================================================================== RCS file: /cvsroot/zapp/ZApp/ZApp_CMFBase.py,v retrieving revision 1.57 retrieving revision 1.58 diff -C2 -d -r1.57 -r1.58 *** ZApp_CMFBase.py 21 Sep 2004 17:31:39 -0000 1.57 --- ZApp_CMFBase.py 7 Jan 2005 15:57:46 -0000 1.58 *************** *** 170,174 **** """we use _notifyOfCopy to save our miscData to a property so that the copy can retrieve it once created...""" - ZApp_LOG("_ZCMFnotifyOfCopyTo: " + container.getId() + ":" + `op` + ":" + `notify_depth`, dbug_level) --- 170,173 ---- *************** *** 951,955 **** {'id': 'edit', 'name': 'Edit', ! 'action': 'image_edit_form', 'permissions': (CMFCorePermissions.ModifyPortalContent,), }, --- 950,954 ---- {'id': 'edit', 'name': 'Edit', ! 'action': 'zapp_zodb_image_edit_form', 'permissions': (CMFCorePermissions.ModifyPortalContent,), }, |
|
From: Steve S. <ssp...@us...> - 2005-01-07 15:48:39
|
Update of /cvsroot/zapp/ZApp/skins/zapp_generic In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1578/skins/zapp_generic Added Files: zapp_zodb_image_edit.py zapp_zodb_image_edit_form.pt Log Message: finally got to fix these image files. --- NEW FILE: zapp_zodb_image_edit.py --- ## Script (Python) "zapp_zodb_image_edit" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title= ## # Example code: REQUEST = context.REQUEST file = REQUEST.form.get('file',None) id = REQUEST.form.get('id','') title = REQUEST.form.get('title','') description = REQUEST.form.get('description','') filename=getattr(file,'filename', '') if file and filename: if not id: id = filename[max( string.rfind(filename, '/') , string.rfind(filename, '\\') , string.rfind(filename, ':') )+1:] if file and hasattr(file, 'seek'): file.seek(0) oldID=context.getId() newID = id context.plone_utils.contentEdit(context, id= oldID, title=title, description=description) if file: context.edit(precondition='', file=file) REQUEST.RESPONSE.redirect( "%s/folder_rename?ids:list=%s&new_ids:list=%s&new_titles:list=%s" % (REQUEST.get('URL2'), oldID, newID, title)) --- NEW FILE: zapp_zodb_image_edit_form.pt --- <html xmlns:tal="http://xml.zope.org/namespaces/tal" xmlns:metal="http://xml.zope.org/namespaces/metal" metal:use-macro="here/main_template/macros/master"> <body> <div metal:fill-slot="main" i18n:domain="cmf_default"> <div class="Desktop"> <span tal:replace="request/message" tal:condition="request/message|nothing"><hr /></span> <div class="Image"> <h2 i18n:translate="">Edit <span tal:replace="here/getId" i18n:name="objectid">My ID</span></h2> <form action="." method="post" enctype="multipart/form-data" tal:attributes="action string:${here/absolute_url}/zapp_zodb_image_edit" > <table class="FormLayout"> <tr> <th i18n:translate="">Short Name (id: no spaces!)</th> <td> <input name="id" tal:attributes="value here/id" value=""/></td> </tr> <tr> <th i18n:translate="">Title</th> <td> <input name="title" tal:attributes="value here/Title" value=""/></td> </tr> <tr> <th i18n:translate="">Description</th> <td> <textarea name="description" rows="10" cols="40" tal:content="here/Description"></textarea></td> </tr> <tr> <th i18n:translate="">Upload image</th> <td> <input type="file" name="file" size="25" /> </td> </tr> <tr> <td> <br /> </td> <td> <input type="submit" name="change" value=" Change " i18n:attributes="value" /> </td> </tr> </table> </form> </div> </div> </div> </body> </html> |
|
From: Steve S. <ssp...@us...> - 2004-11-11 11:12:38
|
Update of /cvsroot/zapp/ZApp/skins/zapp_xml In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8415/skins/zapp_xml Modified Files: getInstantXMLConfig.py Log Message: use session/request for sender_id, and channel. Index: getInstantXMLConfig.py =================================================================== RCS file: /cvsroot/zapp/ZApp/skins/zapp_xml/getInstantXMLConfig.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** getInstantXMLConfig.py 25 Jun 2003 11:45:53 -0000 1.1 --- getInstantXMLConfig.py 11 Nov 2004 11:12:29 -0000 1.2 *************** *** 1,11 **** ! ## Script (Python) "getInstantXMLConfig.py" ##parameters= ! ##title=Get info to connect to Instant XML Server.. ## - request = context.REQUEST xmlhost = request.HTTP_HOST.split(':')[0] ! xmlport = getattr(context, 'IXML_PORT', 8518) ! sender_id = getattr(context, 'sender_id', 'c1:flash') ! return {'xmlhost':xmlhost, 'xmlport':xmlport, 'sender_id':sender_id} --- 1,16 ---- ! ## Script (Python) "getInstantXMLConfig" ! ##bind container=container ! ##bind context=context ! ##bind namespace= ! ##bind script=script ! ##bind subpath=traverse_subpath ##parameters= ! ##title=Get info to connect to Instant XML Server.. ## request = context.REQUEST xmlhost = request.HTTP_HOST.split(':')[0] ! xmlport = context.getSessionValue('IXML_PORT', 8518) ! channel = context.getSessionValue('channel', context.REQUEST.get('channel', 'c1')) ! sender_id = context.getSessionValue('sender_id',context.REQUEST.get('sender_id','flash')) ! return {'xmlhost':xmlhost, 'xmlport':xmlport, 'sender_id': channel + ':' + sender_id} |
|
From: Steve S. <ssp...@us...> - 2004-10-03 11:20:14
|
Update of /cvsroot/zapp/ZApp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23699 Modified Files: ZApp_MiscData.py Log Message: getObjectInfo cat take optional mdObj argument... Index: ZApp_MiscData.py =================================================================== RCS file: /cvsroot/zapp/ZApp/ZApp_MiscData.py,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** ZApp_MiscData.py 24 May 2004 15:20:20 -0000 1.29 --- ZApp_MiscData.py 3 Oct 2004 11:19:50 -0000 1.30 *************** *** 353,357 **** } ! def getMiscDataFor(self, miscNameAttr=DEFAULT_MISCNAMEATTR, dataType=''): """ check for the existence of an attribute of this object with the name given by miscNameAttr --- 353,357 ---- } ! def getMiscDataFor(self, miscNameAttr=DEFAULT_MISCNAMEATTR, dataType='', mdObj=None): """ check for the existence of an attribute of this object with the name given by miscNameAttr *************** *** 369,375 **** return {} ! mdobj = self.getMiscData(dataType=dataType) ! if not mdobj: ! return {} result = {} --- 369,376 ---- return {} ! if not mdObj: ! mdObj = self.getMiscData(dataType=dataType) ! if not mdObj: ! return {} result = {} *************** *** 386,390 **** args = map(lambda x,ca=checkArg: ca(x), typecodeList[1:]) ! value = mdobj.getXMLAttr(attr) if typecode: --- 387,391 ---- args = map(lambda x,ca=checkArg: ca(x), typecodeList[1:]) ! value = mdObj.getXMLAttr(attr) if typecode: *************** *** 396,400 **** return result ! def getObjectInfo(self, miscNameAttr=DEFAULT_MISCNAMEATTR): """ return known attributes/values for object.. --- 397,401 ---- return result ! def getObjectInfo(self, miscNameAttr=DEFAULT_MISCNAMEATTR, mdObj=None): """ return known attributes/values for object.. *************** *** 417,421 **** result[p['id']] = val ! result.update( self.getMiscDataFor( miscNameAttr )) return result --- 418,422 ---- result[p['id']] = val ! result.update( self.getMiscDataFor( miscNameAttr, mdObj=mdObj )) return result |
|
From: Steve S. <ssp...@us...> - 2004-09-21 17:32:18
|
Update of /cvsroot/zapp/ZApp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8127 Modified Files: ZApp_CMFBase.py Log Message: save new zodb skin templates Index: ZApp_CMFBase.py =================================================================== RCS file: /cvsroot/zapp/ZApp/ZApp_CMFBase.py,v retrieving revision 1.56 retrieving revision 1.57 diff -C2 -d -r1.56 -r1.57 *** ZApp_CMFBase.py 9 Sep 2004 19:22:09 -0000 1.56 --- ZApp_CMFBase.py 21 Sep 2004 17:31:39 -0000 1.57 *************** *** 809,812 **** --- 809,814 ---- Image.PUT(self, REQUEST, RESPONSE) self.manage_callPUTFilter() + self.setFormat(self.content_type) + self.reindexObject() def edit(self, precondition='', file=''): *************** *** 944,948 **** 'actions': ({'id': 'view', 'name': 'View', ! 'action': 'image_view', 'permissions': (CMFCorePermissions.View,), }, --- 946,950 ---- 'actions': ({'id': 'view', 'name': 'View', ! 'action': 'zapp_zodb_image_view', 'permissions': (CMFCorePermissions.View,), }, |
|
From: Steve S. <ssp...@us...> - 2004-09-21 17:31:57
|
Update of /cvsroot/zapp/ZApp/skins/zapp_generic In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8127/skins/zapp_generic Added Files: zapp_zodb_image_view.pt zapp_zodb_show_mov.pt zapp_zodb_show_swf.pt Log Message: save new zodb skin templates --- NEW FILE: zapp_zodb_show_swf.pt --- <div metal:define-macro="main"> <tal:block tal:omit-tag="" define="main_name here/getId; swf_url here/absolute_url"> <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" tal:attributes="id main_name" ALIGN=""> <PARAM NAME=movie tal:attributes="VALUE swf_url"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED tal:attributes="src swf_url;NAME main_name" quality=high bgcolor=#FFFFFF ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> </EMBED> </OBJECT> </tal:block> </div> --- NEW FILE: zapp_zodb_image_view.pt --- <html xmlns:tal="http://xml.zope.org/namespaces/tal" xmlns:metal="http://xml.zope.org/namespaces/metal" metal:use-macro="here/main_template/macros/master"> <metal:block fill-slot="base"> <base href="" tal:attributes="href python: here.absolute_url() + '/'"> </metal:block> <body> <div metal:fill-slot="header"> <h1 id="DesktopTitle" tal:content="here/Title">Document Title</h1> <div id="DesktopDescription" tal:content="here/Description"> Document Description goes here. </div> </div> <div metal:fill-slot="main"> <tal:block tal:omit-tag="" tal:define="mov_mime string:video/quicktime; swf_mime string:application/x-shockwave-flash"> <div tal:condition="python:here.Format() == swf_mime"> <div metal:use-macro="here/zapp_zodb_show_swf/macros/main"> Sorry! </div> </div> <div tal:condition="python:here.Format() == mov_mime"> <div metal:use-macro="here/zapp_zodb_show_mov/macros/main"> Sorry! </div> </div> <div tal:condition="python:here.Format() not in [mov_mime, swf_mime]"> <img tal:attributes="src python:here.absolute_url(); width zapp_image_width | string:400"/> </div> </tal:block> </div> </body> </html> --- NEW FILE: zapp_zodb_show_mov.pt --- <div metal:define-macro="main"> <tal:block tal:omit-tag="" define="main_name here/getId; mov_url here/absolute_url"> <OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="480" HEIGHT="300" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0"> <PARAM NAME="type" VALUE="video/quicktime"> <PARAM NAME="controller" VALUE="true"> <PARAM NAME="autoplay" VALUE="true"> <PARAM NAME="target" VALUE="myself"> <PARAM NAME="src" VALUE="" tal:attributes="value mov_url"> <PARAM NAME="HREF" VALUE="" tal:attributes="value mov_url"> <PARAM NAME="pluginspage" VALUE="http://www.apple.com/quicktime/download/indext.html"> <EMBED WIDTH="480" HEIGHT="300" CONTROLLER="TRUE" SRC="" HREF="" tal:attributes="src mov_url; href mov_url" type="video/quicktime" TARGET="myself" BGCOLOR="#000000" BORDER="0" PLUGINSPAGE="http://www.apple.com/quicktim e/download/indext.html"></EMBED></OBJECT></tal:block> </div> |
|
From: Steve S. <ssp...@us...> - 2004-09-16 13:47:14
|
Update of /cvsroot/zapp/ZApp/leverMethods/PG In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2274/leverMethods/PG Modified Files: createSchemaLever.plain Log Message: add tests pass again.. Index: createSchemaLever.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/leverMethods/PG/createSchemaLever.plain,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** createSchemaLever.plain 21 Mar 2004 13:08:19 -0000 1.11 --- createSchemaLever.plain 16 Sep 2004 13:46:34 -0000 1.12 *************** *** 29,32 **** --- 29,33 ---- 'timestamp':'timestamp DEFAULT now()', 'boolean':'boolean', + 'int':'integer', } |
|
From: Steve S. <ssp...@us...> - 2004-09-16 13:47:13
|
Update of /cvsroot/zapp/ZApp/leverMethods/Gadfly In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2274/leverMethods/Gadfly Modified Files: createSchemaLever.plain selectItemLever.plain Log Message: add tests pass again.. Index: selectItemLever.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/leverMethods/Gadfly/selectItemLever.plain,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** selectItemLever.plain 16 Sep 2004 11:27:06 -0000 1.5 --- selectItemLever.plain 16 Sep 2004 13:46:33 -0000 1.6 *************** *** 136,140 **** marker = [] ! results = context.selectItemSQL(REQUEST=kw, src__=src__) if src__: --- 136,147 ---- marker = [] ! ! try: ! results = context.selectItemSQL(REQUEST=kw, src__=src__) ! except ValueError: ! if kw.get('countMinMax',None): ! results = context.ZApp_createFauxResults(data_dictionaries=[{'countVal':0, 'minVal':0, 'maxVal':0}]) ! else: ! raise if src__: Index: createSchemaLever.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/leverMethods/Gadfly/createSchemaLever.plain,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** createSchemaLever.plain 16 Sep 2004 11:27:06 -0000 1.3 --- createSchemaLever.plain 16 Sep 2004 13:46:33 -0000 1.4 *************** *** 23,26 **** --- 23,27 ---- 'date':'float', 'timestamp':'float', + 'int':'integer', 'boolean':'integer', } |
|
From: Steve S. <ssp...@us...> - 2004-09-16 13:47:13
|
Update of /cvsroot/zapp/ZApp/leverMethods/MySQL In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2274/leverMethods/MySQL Modified Files: createSchemaLever.plain Log Message: add tests pass again.. Index: createSchemaLever.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/leverMethods/MySQL/createSchemaLever.plain,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** createSchemaLever.plain 16 Sep 2004 11:27:06 -0000 1.6 --- createSchemaLever.plain 16 Sep 2004 13:46:34 -0000 1.7 *************** *** 29,32 **** --- 29,33 ---- 'timestamp':'timestamp DEFAULT now()', 'boolean':'boolean', + 'int':'integer', } |
|
From: Steve S. <ssp...@us...> - 2004-09-16 13:46:46
|
Update of /cvsroot/zapp/ZApp/tests/import In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2274/tests/import Modified Files: ZApp_TestApps.zexp Log Message: add tests pass again.. Index: ZApp_TestApps.zexp =================================================================== RCS file: /cvsroot/zapp/ZApp/tests/import/ZApp_TestApps.zexp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 Binary files /tmp/cvsYpEUSR and /tmp/cvsiWFDbH differ |
|
From: Steve S. <ssp...@us...> - 2004-09-16 13:46:44
|
Update of /cvsroot/zapp/ZApp/tests/ZAppTestClasses In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2274/tests/ZAppTestClasses Modified Files: ZTC_RObject.py Log Message: add tests pass again.. Index: ZTC_RObject.py =================================================================== RCS file: /cvsroot/zapp/ZApp/tests/ZAppTestClasses/ZTC_RObject.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** ZTC_RObject.py 16 Sep 2004 11:27:07 -0000 1.5 --- ZTC_RObject.py 16 Sep 2004 13:46:34 -0000 1.6 *************** *** 11,15 **** props = lpcol([ lprop(id='name'), ! lprop(id='objsize',type='int'), ] ) --- 11,15 ---- props = lpcol([ lprop(id='name'), ! lprop(id='objsize',prop_type='int', prop_default=0), ] ) |
|
From: Steve S. <ssp...@us...> - 2004-09-16 11:27:17
|
Update of /cvsroot/zapp/ZApp/tests/import In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3151/tests/import Modified Files: ZApp_TestApps.zexp Log Message: catch MySQL/gadfly/ZODB levers back up to PG levers. Index: ZApp_TestApps.zexp =================================================================== RCS file: /cvsroot/zapp/ZApp/tests/import/ZApp_TestApps.zexp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 Binary files /tmp/cvsdWV1iH and /tmp/cvs20w0EJ differ |
|
From: Steve S. <ssp...@us...> - 2004-09-16 11:27:17
|
Update of /cvsroot/zapp/ZApp/leverMethods/Gadfly In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3151/leverMethods/Gadfly Modified Files: createSchemaLever.plain deleteItemLever.plain dropSchemaLever.plain insertItemLever.plain newKeyLever.plain selectItemLever.plain skinScriptLever.plain updateItemLever.plain Log Message: catch MySQL/gadfly/ZODB levers back up to PG levers. Index: skinScriptLever.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/leverMethods/Gadfly/skinScriptLever.plain,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** skinScriptLever.plain 28 Mar 2003 20:38:28 -0000 1.3 --- skinScriptLever.plain 16 Sep 2004 11:27:06 -0000 1.4 *************** *** 6,10 **** Id: skinScriptLever Meta-Type: Script (Python) ! Parameters: dbName='', rackName='defaultRack', catalogName='' Permissions: Proxy-Roles: --- 6,10 ---- Id: skinScriptLever Meta-Type: Script (Python) ! Parameters: dbName='', rackName='defaultRack', catalogName='', rackName='defaultRack' Permissions: Proxy-Roles: Index: createSchemaLever.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/leverMethods/Gadfly/createSchemaLever.plain,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** createSchemaLever.plain 28 Mar 2003 06:28:13 -0000 1.2 --- createSchemaLever.plain 16 Sep 2004 11:27:06 -0000 1.3 *************** *** 6,10 **** Id: createSchemaLever Meta-Type: Script (Python) ! Parameters: dbName='', sqlName='createSchema', catalogName='' Permissions: Proxy-Roles: --- 6,10 ---- Id: createSchemaLever Meta-Type: Script (Python) ! Parameters: dbName='', sqlName='createSchema', catalogName='', rackName='defaultRack' Permissions: Proxy-Roles: Index: updateItemLever.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/leverMethods/Gadfly/updateItemLever.plain,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** updateItemLever.plain 2 Jun 2003 14:46:08 -0000 1.4 --- updateItemLever.plain 16 Sep 2004 11:27:06 -0000 1.5 *************** *** 6,10 **** Id: updateItemLever Meta-Type: Script (Python) ! Parameters: sqlName='doUpdateItem', dbName='', catalogName='' Permissions: Proxy-Roles: --- 6,10 ---- Id: updateItemLever Meta-Type: Script (Python) ! Parameters: sqlName='doUpdateItem', dbName='', catalogName='', rackName='defaultRack' Permissions: Proxy-Roles: Index: insertItemLever.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/leverMethods/Gadfly/insertItemLever.plain,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** insertItemLever.plain 28 Mar 2003 20:38:27 -0000 1.3 --- insertItemLever.plain 16 Sep 2004 11:27:06 -0000 1.4 *************** *** 6,10 **** Id: insertItemLever Meta-Type: Script (Python) ! Parameters: sqlName='insertItem', dbName='', catalogName='' Permissions: Proxy-Roles: --- 6,10 ---- Id: insertItemLever Meta-Type: Script (Python) ! Parameters: sqlName='insertItem', dbName='', catalogName='', rackName='defaultRack' Permissions: Proxy-Roles: Index: selectItemLever.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/leverMethods/Gadfly/selectItemLever.plain,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** selectItemLever.plain 7 Apr 2003 01:36:15 -0000 1.4 --- selectItemLever.plain 16 Sep 2004 11:27:06 -0000 1.5 *************** *** 6,10 **** Id: selectItemLever Meta-Type: Script (Python) ! Parameters: sqlName='selectItem', dbName='', catalogName='' Permissions: Proxy-Roles: --- 6,10 ---- Id: selectItemLever Meta-Type: Script (Python) ! Parameters: sqlName='selectItem', dbName='', catalogName='', rackName='defaultRack' Permissions: Proxy-Roles: Index: dropSchemaLever.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/leverMethods/Gadfly/dropSchemaLever.plain,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** dropSchemaLever.plain 28 Mar 2003 20:38:26 -0000 1.2 --- dropSchemaLever.plain 16 Sep 2004 11:27:06 -0000 1.3 *************** *** 6,10 **** Id: dropSchemaLever Meta-Type: Script (Python) ! Parameters: primaryKey='', sqlName='dropSchema', dbName='', catalogName='' Permissions: Proxy-Roles: --- 6,10 ---- Id: dropSchemaLever Meta-Type: Script (Python) ! Parameters: primaryKey='', sqlName='dropSchema', dbName='', catalogName='', rackName='defaultRack' Permissions: Proxy-Roles: Index: newKeyLever.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/leverMethods/Gadfly/newKeyLever.plain,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** newKeyLever.plain 28 Mar 2003 06:28:13 -0000 1.2 --- newKeyLever.plain 16 Sep 2004 11:27:06 -0000 1.3 *************** *** 6,10 **** Id: newKeyLever Meta-Type: Script (Python) ! Parameters: sqlName='getNewKey', dbName='MySQL_database_connection', catalogName='' Permissions: Proxy-Roles: --- 6,10 ---- Id: newKeyLever Meta-Type: Script (Python) ! Parameters: sqlName='getNewKey', dbName='MySQL_database_connection', catalogName='', rackName='defaultRack' Permissions: Proxy-Roles: Index: deleteItemLever.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/leverMethods/Gadfly/deleteItemLever.plain,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** deleteItemLever.plain 28 Mar 2003 06:28:13 -0000 1.2 --- deleteItemLever.plain 16 Sep 2004 11:27:06 -0000 1.3 *************** *** 6,10 **** Id: deleteItemLever Meta-Type: Script (Python) ! Parameters: primaryKey='', sqlName='deleteItem', dbName='', catalogName='' Permissions: Proxy-Roles: --- 6,10 ---- Id: deleteItemLever Meta-Type: Script (Python) ! Parameters: primaryKey='', sqlName='deleteItem', dbName='', catalogName='', rackName='defaultRack' Permissions: Proxy-Roles: |
|
From: Steve S. <ssp...@us...> - 2004-09-16 11:27:17
|
Update of /cvsroot/zapp/ZApp/leverMethods/MySQL In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3151/leverMethods/MySQL Modified Files: createSchemaLever.plain deleteItemLever.plain dropSchemaLever.plain insertItemLever.plain newKeyLever.plain selectItemLever.plain skinScriptLever.plain updateItemLever.plain Log Message: catch MySQL/gadfly/ZODB levers back up to PG levers. Index: skinScriptLever.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/leverMethods/MySQL/skinScriptLever.plain,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** skinScriptLever.plain 4 May 2003 03:47:54 -0000 1.3 --- skinScriptLever.plain 16 Sep 2004 11:27:06 -0000 1.4 *************** *** 6,10 **** Id: skinScriptLever Meta-Type: Script (Python) ! Parameters: dbName='', rackName='defaultRack', catalogName='' Permissions: Proxy-Roles: --- 6,10 ---- Id: skinScriptLever Meta-Type: Script (Python) ! Parameters: dbName='', rackName='defaultRack', catalogName='', rackName='defaultRack' Permissions: Proxy-Roles: Index: createSchemaLever.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/leverMethods/MySQL/createSchemaLever.plain,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** createSchemaLever.plain 25 Jun 2003 11:45:53 -0000 1.5 --- createSchemaLever.plain 16 Sep 2004 11:27:06 -0000 1.6 *************** *** 6,10 **** Id: createSchemaLever Meta-Type: Script (Python) ! Parameters: dbName='', sqlName='createSchema', catalogName='' Permissions: Proxy-Roles: --- 6,10 ---- Id: createSchemaLever Meta-Type: Script (Python) ! Parameters: dbName='', sqlName='createSchema', catalogName='', rackName='defaultRack' Permissions: Proxy-Roles: Index: updateItemLever.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/leverMethods/MySQL/updateItemLever.plain,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** updateItemLever.plain 4 May 2003 03:47:54 -0000 1.3 --- updateItemLever.plain 16 Sep 2004 11:27:06 -0000 1.4 *************** *** 6,10 **** Id: updateItemLever Meta-Type: Script (Python) ! Parameters: sqlName='doUpdateItem', dbName='', catalogName='' Permissions: Proxy-Roles: --- 6,10 ---- Id: updateItemLever Meta-Type: Script (Python) ! Parameters: sqlName='doUpdateItem', dbName='', catalogName='', rackName='defaultRack' Permissions: Proxy-Roles: Index: insertItemLever.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/leverMethods/MySQL/insertItemLever.plain,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** insertItemLever.plain 4 May 2003 03:47:54 -0000 1.3 --- insertItemLever.plain 16 Sep 2004 11:27:06 -0000 1.4 *************** *** 6,10 **** Id: insertItemLever Meta-Type: Script (Python) ! Parameters: sqlName='insertItem', dbName='', catalogName='' Permissions: Proxy-Roles: --- 6,10 ---- Id: insertItemLever Meta-Type: Script (Python) ! Parameters: sqlName='insertItem', dbName='', catalogName='', rackName='defaultRack' Permissions: Proxy-Roles: Index: selectItemLever.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/leverMethods/MySQL/selectItemLever.plain,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** selectItemLever.plain 4 May 2003 03:47:54 -0000 1.3 --- selectItemLever.plain 16 Sep 2004 11:27:06 -0000 1.4 *************** *** 6,10 **** Id: selectItemLever Meta-Type: Script (Python) ! Parameters: sqlName='selectItem', dbName='', catalogName='' Permissions: Proxy-Roles: --- 6,10 ---- Id: selectItemLever Meta-Type: Script (Python) ! Parameters: sqlName='selectItem', dbName='', catalogName='', rackName='defaultRack' Permissions: Proxy-Roles: Index: dropSchemaLever.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/leverMethods/MySQL/dropSchemaLever.plain,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** dropSchemaLever.plain 4 May 2003 16:16:13 -0000 1.3 --- dropSchemaLever.plain 16 Sep 2004 11:27:06 -0000 1.4 *************** *** 6,10 **** Id: dropSchemaLever Meta-Type: Script (Python) ! Parameters: primaryKey='', sqlName='dropSchema', dbName='', catalogName='' Permissions: Proxy-Roles: --- 6,10 ---- Id: dropSchemaLever Meta-Type: Script (Python) ! Parameters: primaryKey='', sqlName='dropSchema', dbName='', catalogName='', rackName='defaultRack' Permissions: Proxy-Roles: Index: newKeyLever.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/leverMethods/MySQL/newKeyLever.plain,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** newKeyLever.plain 4 May 2003 03:47:54 -0000 1.3 --- newKeyLever.plain 16 Sep 2004 11:27:06 -0000 1.4 *************** *** 6,10 **** Id: newKeyLever Meta-Type: Script (Python) ! Parameters: sqlName='newKeyQuery', dbName='MySQL_database_connection', catalogName='' Permissions: Proxy-Roles: --- 6,10 ---- Id: newKeyLever Meta-Type: Script (Python) ! Parameters: sqlName='newKeyQuery', dbName='MySQL_database_connection', catalogName='', rackName='defaultRack' Permissions: Proxy-Roles: Index: deleteItemLever.plain =================================================================== RCS file: /cvsroot/zapp/ZApp/leverMethods/MySQL/deleteItemLever.plain,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** deleteItemLever.plain 4 May 2003 03:47:54 -0000 1.3 --- deleteItemLever.plain 16 Sep 2004 11:27:06 -0000 1.4 *************** *** 6,10 **** Id: deleteItemLever Meta-Type: Script (Python) ! Parameters: primaryKey='', sqlName='deleteItem', dbName='', catalogName='' Permissions: Proxy-Roles: --- 6,10 ---- Id: deleteItemLever Meta-Type: Script (Python) ! Parameters: primaryKey='', sqlName='deleteItem', dbName='', catalogName='', rackName='defaultRack' Permissions: Proxy-Roles: |