<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-17346</id>
	<title>Nabble - Dabo</title>
	<updated>2009-12-01T09:13:46Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Dabo-f17346.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Dabo-f17346.html" />
	<subtitle type="html">&lt;a href=&quot;http://dabodev.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dabo&lt;/a&gt;&amp;nbsp;is a 3-tier, cross-platform application development framework, written in Python atop the wxPython GUI toolkit.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26594504</id>
	<title>dabo Commit 5539</title>
	<published>2009-12-01T09:13:46Z</published>
	<updated>2009-12-01T09:13:46Z</updated>
	<author>
		<name>Paul McNett</name>
	</author>
	<content type="html">dabo Commit
&lt;br&gt;Revision 5539
&lt;br&gt;Date: 2009-12-01 09:13:45 -0800 (Tue, 01 Dec 2009)
&lt;br&gt;Author: Paul
&lt;br&gt;Trac: &lt;a href=&quot;http://trac.dabodev.com/changeset/5539&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.dabodev.com/changeset/5539&lt;/a&gt;&lt;br&gt;&lt;br&gt;Changed:
&lt;br&gt;U &amp;nbsp; trunk/dabo/lib/datanav/Form.py
&lt;br&gt;&lt;br&gt;Log:
&lt;br&gt;Fixed datanav Form to not keep the edit page active after a delete or cancel if 
&lt;br&gt;that action resulted in the RowCount going to 0.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Diff:
&lt;br&gt;Modified: trunk/dabo/lib/datanav/Form.py
&lt;br&gt;===================================================================
&lt;br&gt;--- trunk/dabo/lib/datanav/Form.py	2009-11-30 01:39:02 UTC (rev 5538)
&lt;br&gt;+++ trunk/dabo/lib/datanav/Form.py	2009-12-01 17:13:45 UTC (rev 5539)
&lt;br&gt;@@ -297,6 +297,21 @@
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	def onDelete(self, evt):
&lt;br&gt;&amp;nbsp;		super(Form, self).onDelete(evt)
&lt;br&gt;+		self._afterDeleteOrCancel()
&lt;br&gt;+
&lt;br&gt;+
&lt;br&gt;+	def onCancel(self, evt):
&lt;br&gt;+		super(Form, self).onCancel(evt)
&lt;br&gt;+		self._afterDeleteOrCancel()
&lt;br&gt;+
&lt;br&gt;+
&lt;br&gt;+	def _afterDeleteOrCancel(self):
&lt;br&gt;+		# If the delete or cancel resulted in 0 records, activate the Select page
&lt;br&gt;+		# so that the user can't interact with any controls on the edit page.
&lt;br&gt;+		biz = self.getBizobj()
&lt;br&gt;+		if biz.RowCount &amp;lt; 1:
&lt;br&gt;+			self.PageFrame.SelectedPageNumber = 0
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;		# Make sure that the grid is properly updated.
&lt;br&gt;&amp;nbsp;		try:
&lt;br&gt;&amp;nbsp;			self.PageFrame.Pages[1].BrowseGrid.refresh()
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Post Messages to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26594504&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dabo-dev@...&lt;/a&gt;
&lt;br&gt;Subscription Maintenance: &lt;a href=&quot;http://leafe.com/mailman/listinfo/dabo-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/mailman/listinfo/dabo-dev&lt;/a&gt;&lt;br&gt;Searchable Archives: &lt;a href=&quot;http://leafe.com/archives/search/dabo-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/search/dabo-dev&lt;/a&gt;&lt;br&gt;This message: &lt;a href=&quot;http://leafe.com/archives/byMID/20091201171346.2858C20413B@mail.paulmcnett.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/byMID/20091201171346.2858C20413B@...&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-dev-f17348.html&quot; embed=&quot;fixTarget[17348]&quot; target=&quot;_top&quot; &gt;dabo-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/dabo-Commit-5539-tp26594504p26594504.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26587014</id>
	<title>Re: select database from Select data Connection?</title>
	<published>2009-11-30T21:51:41Z</published>
	<updated>2009-11-30T21:51:41Z</updated>
	<author>
		<name>Ed Leafe</name>
	</author>
	<content type="html">On Nov 30, 2009, at 11:46 PM, jvandal wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Thought I was not going to post for a while but, I tried to use
&lt;br&gt;&amp;gt; ClassDesigner aand use the Select Data Connection. I see several &amp;nbsp;
&lt;br&gt;&amp;gt; names in
&lt;br&gt;&amp;gt; the dropdown list, I click on one name &amp;nbsp;and then click on the next &amp;nbsp;
&lt;br&gt;&amp;gt; button .
&lt;br&gt;&amp;gt; Nothing some times happens. &amp;nbsp;Other times I click on a db name and &amp;nbsp;
&lt;br&gt;&amp;gt; click next
&lt;br&gt;&amp;gt; button and go to the next page and then select the fields. Why don't &amp;nbsp;
&lt;br&gt;&amp;gt; I get a
&lt;br&gt;&amp;gt; definition every time????
&lt;/div&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; That's really hard to tell without any error traceback information. &amp;nbsp;
&lt;br&gt;Did you see any error messages in your terminal output?
&lt;br&gt;&lt;br&gt;&amp;gt; I have another question. If I have a folder of projects, are all db
&lt;br&gt;&amp;gt; definitions within the pprojects folder available to use or do I &amp;nbsp;
&lt;br&gt;&amp;gt; have to
&lt;br&gt;&amp;gt; recreate a definition for each database used in each project.?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; You could create a single file, and include some extra code to call &amp;nbsp;
&lt;br&gt;dApp.addConnectFile(), but it would probably be simpler to copy or &amp;nbsp;
&lt;br&gt;link the cnxml file. Dabo only automatically import connections in the &amp;nbsp;
&lt;br&gt;standard app paths, but you can always add connection files from any &amp;nbsp;
&lt;br&gt;location with addConnectFile() calls.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- Ed Leafe
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Post Messages to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26587014&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dabo-users@...&lt;/a&gt;
&lt;br&gt;Subscription Maintenance: &lt;a href=&quot;http://leafe.com/mailman/listinfo/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/mailman/listinfo/dabo-users&lt;/a&gt;&lt;br&gt;Searchable Archives: &lt;a href=&quot;http://leafe.com/archives/search/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/search/dabo-users&lt;/a&gt;&lt;br&gt;This message: &lt;a href=&quot;http://leafe.com/archives/byMID/A96AB819-9C0F-4112-AC91-65F0CC8A9F69@leafe.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/byMID/A96AB819-9C0F-4112-AC91-65F0CC8A9F69@...&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-users-f17347.html&quot; embed=&quot;fixTarget[17347]&quot; target=&quot;_top&quot; &gt;dabo-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/select-database-from-Select-data-Connection--tp26586970p26587014.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26586970</id>
	<title>select database from Select data Connection?</title>
	<published>2009-11-30T21:46:01Z</published>
	<updated>2009-11-30T21:46:01Z</updated>
	<author>
		<name>jvandal</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;Thought I was not going to post for a while but, I tried to use ClassDesigner aand use the Select Data Connection. I see several names in the dropdown list, I click on one name &amp;nbsp;and then click on the next button . Nothing some times happens. &amp;nbsp;Other times I click on a db name and click next button and go to the next page and then select the fields. Why don't I get a definition every time????
&lt;br&gt;&lt;br&gt;I have another question. If I have a folder of projects, are all db definitions within the pprojects folder available to use or do I have to recreate a definition for each database used in each project.?&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-users-f17347.html&quot; embed=&quot;fixTarget[17347]&quot; target=&quot;_top&quot; &gt;dabo-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/select-database-from-Select-data-Connection--tp26586970p26586970.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26585861</id>
	<title>Re: suggested change to new()</title>
	<published>2009-11-30T19:11:46Z</published>
	<updated>2009-11-30T19:11:46Z</updated>
	<author>
		<name>Ed Leafe</name>
	</author>
	<content type="html">On Nov 30, 2009, at 8:49 PM, &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26585861&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalong1@...&lt;/a&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26585861&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lalong1@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; My 2 cents. &amp;nbsp;What about a bizobj attribute that does something &amp;nbsp;
&lt;br&gt;&amp;gt; like...?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; bizobj.backendDefaultFieldsIfEmpty = (fieldlist) where fieldlist is &amp;nbsp;
&lt;br&gt;&amp;gt; a list
&lt;br&gt;&amp;gt; of fields that if empty (i.e. None or blank) then the fields are &amp;nbsp;
&lt;br&gt;&amp;gt; excluded
&lt;br&gt;&amp;gt; from the insert statement.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; That's sort of the inverse of the way I see it. Instead of defining a &amp;nbsp;
&lt;br&gt;negative (what you don't want included), I prefer that you define the &amp;nbsp;
&lt;br&gt;positive (what you do want included). Anything that is not user- 
&lt;br&gt;modified or set in DefaultValues is excluded.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- Ed Leafe
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Post Messages to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26585861&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dabo-dev@...&lt;/a&gt;
&lt;br&gt;Subscription Maintenance: &lt;a href=&quot;http://leafe.com/mailman/listinfo/dabo-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/mailman/listinfo/dabo-dev&lt;/a&gt;&lt;br&gt;Searchable Archives: &lt;a href=&quot;http://leafe.com/archives/search/dabo-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/search/dabo-dev&lt;/a&gt;&lt;br&gt;This message: &lt;a href=&quot;http://leafe.com/archives/byMID/50A8B38C-9171-4F2C-A4F4-E61696DA013E@leafe.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/byMID/50A8B38C-9171-4F2C-A4F4-E61696DA013E@...&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-dev-f17348.html&quot; embed=&quot;fixTarget[17348]&quot; target=&quot;_top&quot; &gt;dabo-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/suggested-change-to-new%28%29-tp26577996p26585861.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26585718</id>
	<title>Re: suggested change to new()</title>
	<published>2009-11-30T18:49:59Z</published>
	<updated>2009-11-30T18:49:59Z</updated>
	<author>
		<name>lalong1-2</name>
	</author>
	<content type="html">Ed,
&lt;br&gt;&lt;br&gt;My 2 cents. &amp;nbsp;What about a bizobj attribute that does something like...?
&lt;br&gt;&lt;br&gt;bizobj.backendDefaultFieldsIfEmpty = (fieldlist) where fieldlist is a list
&lt;br&gt;of fields that if empty (i.e. None or blank) then the fields are excluded
&lt;br&gt;from the insert statement.
&lt;br&gt;&lt;br&gt;for field in bizobj.backendDefaultFieldsIfEmpty:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if not bizobj.getFieldVal(field):
&lt;br&gt;&amp;nbsp; &amp;nbsp; 		excude from insert statement 
&lt;br&gt;&lt;br&gt;Larry 
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26585718&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dabo-dev-bounces@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26585718&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dabo-dev-bounces@...&lt;/a&gt;] On Behalf Of John
&lt;br&gt;&amp;gt; Sent: Monday, November 30, 2009 11:57 AM
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26585718&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dabo-dev@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: [dabo-dev] suggested change to new()
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; moved from dabo-user - from a request by Jacek Kalucki who 
&lt;br&gt;&amp;gt; would like a way to prevent Dabo of passing a field value 
&lt;br&gt;&amp;gt; when inserting or updating a row. &amp;nbsp;Not passing a field will 
&lt;br&gt;&amp;gt; allow the DB to apply the a default value.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;Ed Wrote:
&lt;br&gt;&amp;gt;         I think that the way it should work for new, unsaved 
&lt;br&gt;&amp;gt; records is as
&lt;br&gt;&amp;gt; follows:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; modified: used to determine isChanged(), and included in INSERT.
&lt;br&gt;&amp;gt; default: not used to determine isChanged(), but included in INSERT.
&lt;br&gt;&amp;gt; blanks: not used to determine isChanged(), and not included in INSERT
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Paul wrote:
&lt;br&gt;&amp;gt; +1, but we need a better way to flag blanks. I propose 
&lt;br&gt;&amp;gt; defining a string 
&lt;br&gt;&amp;gt; +or
&lt;br&gt;&amp;gt; class in dabo.db called DaboBlankField or 
&lt;br&gt;&amp;gt; &amp;quot;^^^DaboBlankField^^^&amp;quot;. The cursor fills in the blanks with 
&lt;br&gt;&amp;gt; this value. The UI controls display the proper rendition of 
&lt;br&gt;&amp;gt; blank in the context of how the control works (&amp;quot;&amp;quot; for 
&lt;br&gt;&amp;gt; textbox, 0 for spinner, etc.)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; John wrote:
&lt;br&gt;&amp;gt; What about list values - is it possible to have a  
&lt;br&gt;&amp;gt; &amp;quot;^^^DaboBlankField^^^&amp;quot; 
&lt;br&gt;&amp;gt; value for a list?  I use lists for DB values all the time.  I 
&lt;br&gt;&amp;gt; see this being very difficult to work with - the list has to 
&lt;br&gt;&amp;gt; have the value in the list that is in the DB.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Ed's reply to John
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; To be blunt, you don't need to worry about it at all, just the way 
&lt;br&gt;&amp;gt; &amp;gt;that I'm sure you don't worry about the new record flag 
&lt;br&gt;&amp;gt; value. This is 
&lt;br&gt;&amp;gt; &amp;gt;why I said that the conversation should be on dabo-dev, not 
&lt;br&gt;&amp;gt; dabo-users.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Ed please always be blunt - I may not be the brightest 
&lt;br&gt;&amp;gt; programmer but I'll work until the job is done. &amp;nbsp;BTW it's 
&lt;br&gt;&amp;gt; only others that have said to lighten up on me - not me. &amp;nbsp;
&lt;br&gt;&amp;gt; Also I believe I can speak for Larry (who is gun shy these 
&lt;br&gt;&amp;gt; days) who wants your honest opinion too.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Back to the question - but I do account for the new record. &amp;nbsp;
&lt;br&gt;&amp;gt; I always include , 0, and None in my list. &amp;nbsp;If I don't the 
&lt;br&gt;&amp;gt; list control complains. &amp;nbsp;
&lt;br&gt;&amp;gt; What would be the value of the new key in the list using your 
&lt;br&gt;&amp;gt; suggestion. &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Johnf
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;[excessive quoting removed by server]
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Post Messages to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26585718&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dabo-dev@...&lt;/a&gt;
&lt;br&gt;Subscription Maintenance: &lt;a href=&quot;http://leafe.com/mailman/listinfo/dabo-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/mailman/listinfo/dabo-dev&lt;/a&gt;&lt;br&gt;Searchable Archives: &lt;a href=&quot;http://leafe.com/archives/search/dabo-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/search/dabo-dev&lt;/a&gt;&lt;br&gt;This message: &lt;a href=&quot;http://leafe.com/archives/byMID/!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAafA2fnYuPUOMNFpIYnBEQcKAAAAQAAAAfUgPEMKSSU+e02BRHCmt3gEAAAAA@charter.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/byMID/!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAafA2fnYuPUOMNFpIYnBEQcKAAAAQAAAAfUgPEMKSSU+e02BRHCmt3gEAAAAA@...&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-dev-f17348.html&quot; embed=&quot;fixTarget[17348]&quot; target=&quot;_top&quot; &gt;dabo-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/suggested-change-to-new%28%29-tp26577996p26585718.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26579110</id>
	<title>Re: suggested change to new()</title>
	<published>2009-11-30T09:58:49Z</published>
	<updated>2009-11-30T09:58:49Z</updated>
	<author>
		<name>jfabiani</name>
	</author>
	<content type="html">On Monday 30 November 2009 09:05:27 am Ed Leafe wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Nov 30, 2009, at 10:56 AM, John wrote:
&lt;br&gt;&amp;gt; &amp;gt; Back to the question - but I do account for the new record. &amp;nbsp;I always
&lt;br&gt;&amp;gt; &amp;gt; include , 0, and None in my list. &amp;nbsp;If I don't the list control
&lt;br&gt;&amp;gt; &amp;gt; complains.
&lt;br&gt;&amp;gt; &amp;gt; What would be the value of the new key in the list using your
&lt;br&gt;&amp;gt; &amp;gt; suggestion.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 	It wouldn't be a value in the list; that's why I called it a
&lt;br&gt;&amp;gt; placeholder. Currently we *are* creating an actual value, and this
&lt;br&gt;&amp;gt; created value is not always ideal, as it is preventing database
&lt;br&gt;&amp;gt; default values from working correctly.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 	If you need a new record to have a particular value in a particular
&lt;br&gt;&amp;gt; column, you should be setting the DefaultValues property of your
&lt;br&gt;&amp;gt; bizobj already, right? You shouldn't be relying on undocumented
&lt;br&gt;&amp;gt; behaviors of the framework.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- Ed Leafe
&lt;/div&gt;&lt;br&gt;Thanks - I think the change is very worth while and if I need to change 
&lt;br&gt;something then I will get it done with the group's help.
&lt;br&gt;&lt;br&gt;Johnf
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Post Messages to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26579110&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dabo-dev@...&lt;/a&gt;
&lt;br&gt;Subscription Maintenance: &lt;a href=&quot;http://leafe.com/mailman/listinfo/dabo-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/mailman/listinfo/dabo-dev&lt;/a&gt;&lt;br&gt;Searchable Archives: &lt;a href=&quot;http://leafe.com/archives/search/dabo-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/search/dabo-dev&lt;/a&gt;&lt;br&gt;This message: &lt;a href=&quot;http://leafe.com/archives/byMID/200911300958.49877.jfabiani@yolo.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/byMID/200911300958.49877.jfabiani@...&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-dev-f17348.html&quot; embed=&quot;fixTarget[17348]&quot; target=&quot;_top&quot; &gt;dabo-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/suggested-change-to-new%28%29-tp26577996p26579110.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26578172</id>
	<title>Re: suggested change to new()</title>
	<published>2009-11-30T09:05:27Z</published>
	<updated>2009-11-30T09:05:27Z</updated>
	<author>
		<name>Ed Leafe</name>
	</author>
	<content type="html">On Nov 30, 2009, at 10:56 AM, John wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Back to the question - but I do account for the new record. &amp;nbsp;I always
&lt;br&gt;&amp;gt; include , 0, and None in my list. &amp;nbsp;If I don't the list control &amp;nbsp;
&lt;br&gt;&amp;gt; complains.
&lt;br&gt;&amp;gt; What would be the value of the new key in the list using your &amp;nbsp;
&lt;br&gt;&amp;gt; suggestion.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; It wouldn't be a value in the list; that's why I called it a &amp;nbsp;
&lt;br&gt;placeholder. Currently we *are* creating an actual value, and this &amp;nbsp;
&lt;br&gt;created value is not always ideal, as it is preventing database &amp;nbsp;
&lt;br&gt;default values from working correctly.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If you need a new record to have a particular value in a particular &amp;nbsp;
&lt;br&gt;column, you should be setting the DefaultValues property of your &amp;nbsp;
&lt;br&gt;bizobj already, right? You shouldn't be relying on undocumented &amp;nbsp;
&lt;br&gt;behaviors of the framework.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- Ed Leafe
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Post Messages to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26578172&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dabo-dev@...&lt;/a&gt;
&lt;br&gt;Subscription Maintenance: &lt;a href=&quot;http://leafe.com/mailman/listinfo/dabo-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/mailman/listinfo/dabo-dev&lt;/a&gt;&lt;br&gt;Searchable Archives: &lt;a href=&quot;http://leafe.com/archives/search/dabo-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/search/dabo-dev&lt;/a&gt;&lt;br&gt;This message: &lt;a href=&quot;http://leafe.com/archives/byMID/D8035661-4E79-4EE2-96AC-E91CED452AC8@leafe.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/byMID/D8035661-4E79-4EE2-96AC-E91CED452AC8@...&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-dev-f17348.html&quot; embed=&quot;fixTarget[17348]&quot; target=&quot;_top&quot; &gt;dabo-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/suggested-change-to-new%28%29-tp26577996p26578172.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26577996</id>
	<title>suggested change to new()</title>
	<published>2009-11-30T08:56:47Z</published>
	<updated>2009-11-30T08:56:47Z</updated>
	<author>
		<name>jfabiani</name>
	</author>
	<content type="html">moved from dabo-user - from a request by Jacek Kalucki who would like a way to 
&lt;br&gt;prevent Dabo of passing a field value when inserting or updating a row. &amp;nbsp;Not 
&lt;br&gt;passing a field will allow the DB to apply the a default value.
&lt;br&gt;&lt;br&gt;&amp;gt;Ed Wrote:
&lt;br&gt;        I think that the way it should work for new, unsaved records is as  
&lt;br&gt;follows:
&lt;br&gt;&lt;br&gt;modified: used to determine isChanged(), and included in INSERT.
&lt;br&gt;default: not used to determine isChanged(), but included in INSERT.
&lt;br&gt;blanks: not used to determine isChanged(), and not included in INSERT
&lt;br&gt;&lt;br&gt;Paul wrote:
&lt;br&gt;+1, but we need a better way to flag blanks. I propose defining a string or 
&lt;br&gt;class in dabo.db called DaboBlankField or &amp;quot;^^^DaboBlankField^^^&amp;quot;. The cursor 
&lt;br&gt;fills in the blanks with this value. The UI controls display the proper 
&lt;br&gt;rendition of blank in the context of how the control works (&amp;quot;&amp;quot; for textbox, 0 
&lt;br&gt;for spinner, etc.)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;John wrote:
&lt;br&gt;What about list values - is it possible to have a  &amp;quot;^^^DaboBlankField^^^&amp;quot; 
&lt;br&gt;value for a list?  I use lists for DB values all the time.  I see this being 
&lt;br&gt;very difficult to work with - the list has to have the value in the list that 
&lt;br&gt;is in the DB.
&lt;br&gt;&lt;br&gt;Ed's reply to John
&lt;br&gt;&lt;br&gt;&amp;gt; To be blunt, you don't need to worry about it at all, just the way  
&lt;br&gt;&amp;gt;that I'm sure you don't worry about the new record flag value. This is  
&lt;br&gt;&amp;gt;why I said that the conversation should be on dabo-dev, not dabo-users.
&lt;br&gt;&lt;br&gt;Ed please always be blunt - I may not be the brightest programmer but I'll 
&lt;br&gt;work until the job is done. &amp;nbsp;BTW it's only others that have said to lighten 
&lt;br&gt;up on me - not me. &amp;nbsp;Also I believe I can speak for Larry (who is gun shy 
&lt;br&gt;these days) who wants your honest opinion too.
&lt;br&gt;&lt;br&gt;Back to the question - but I do account for the new record. &amp;nbsp;I always 
&lt;br&gt;include , 0, and None in my list. &amp;nbsp;If I don't the list control complains. &amp;nbsp;
&lt;br&gt;What would be the value of the new key in the list using your suggestion. &amp;nbsp;
&lt;br&gt;&lt;br&gt;Johnf
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Post Messages to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26577996&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dabo-dev@...&lt;/a&gt;
&lt;br&gt;Subscription Maintenance: &lt;a href=&quot;http://leafe.com/mailman/listinfo/dabo-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/mailman/listinfo/dabo-dev&lt;/a&gt;&lt;br&gt;Searchable Archives: &lt;a href=&quot;http://leafe.com/archives/search/dabo-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/search/dabo-dev&lt;/a&gt;&lt;br&gt;This message: &lt;a href=&quot;http://leafe.com/archives/byMID/200911300856.47319.jfabiani@yolo.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/byMID/200911300856.47319.jfabiani@...&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-dev-f17348.html&quot; embed=&quot;fixTarget[17348]&quot; target=&quot;_top&quot; &gt;dabo-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/suggested-change-to-new%28%29-tp26577996p26577996.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26577333</id>
	<title>Re: Troublesome _getBlankRecord() method</title>
	<published>2009-11-30T08:17:39Z</published>
	<updated>2009-11-30T08:17:39Z</updated>
	<author>
		<name>Ed Leafe</name>
	</author>
	<content type="html">On Nov 30, 2009, at 10:12 AM, John wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Playing devils advocate how does a developer force a blank string &amp;nbsp;
&lt;br&gt;&amp;gt; ('') or a
&lt;br&gt;&amp;gt; zero value for the spinner. &amp;nbsp;And in the case of a spinner what if I &amp;nbsp;
&lt;br&gt;&amp;gt; wanted -1
&lt;br&gt;&amp;gt; to be the no value indicator?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fill in the DefaultValues. That wouldn't change.
&lt;br&gt;&lt;br&gt;&amp;gt; Another question I have has to do with checkboxes. &amp;nbsp;What is
&lt;br&gt;&amp;gt; the &amp;nbsp;&amp;quot;^^^DaboBlankField^^^&amp;quot; field value of a checkbox? &amp;nbsp;Afterall it &amp;nbsp;
&lt;br&gt;&amp;gt; has three
&lt;br&gt;&amp;gt; values - checked, unchecked, no value?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; It's just a placeholder with zero probability of matching an actual &amp;nbsp;
&lt;br&gt;value. The UI controls would have to be modified to recognize this &amp;nbsp;
&lt;br&gt;placeholder and display an equivalent &amp;quot;blank&amp;quot; value.
&lt;br&gt;&lt;br&gt;&amp;gt; What about list values - is it possible to have a &amp;nbsp; 
&lt;br&gt;&amp;gt; &amp;quot;^^^DaboBlankField^^^&amp;quot;
&lt;br&gt;&amp;gt; value for a list? &amp;nbsp;I use lists for DB values all the time. &amp;nbsp;I see &amp;nbsp;
&lt;br&gt;&amp;gt; this being
&lt;br&gt;&amp;gt; very difficult to work with - the list has to have the value in the &amp;nbsp;
&lt;br&gt;&amp;gt; list that
&lt;br&gt;&amp;gt; is in the DB.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; To be blunt, you don't need to worry about it at all, just the way &amp;nbsp;
&lt;br&gt;that I'm sure you don't worry about the new record flag value. This is &amp;nbsp;
&lt;br&gt;why I said that the conversation should be on dabo-dev, not dabo-users.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- Ed Leafe
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Post Messages to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26577333&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dabo-users@...&lt;/a&gt;
&lt;br&gt;Subscription Maintenance: &lt;a href=&quot;http://leafe.com/mailman/listinfo/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/mailman/listinfo/dabo-users&lt;/a&gt;&lt;br&gt;Searchable Archives: &lt;a href=&quot;http://leafe.com/archives/search/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/search/dabo-users&lt;/a&gt;&lt;br&gt;This message: &lt;a href=&quot;http://leafe.com/archives/byMID/232205DA-CB63-4F86-9E2E-5E454E60456F@leafe.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/byMID/232205DA-CB63-4F86-9E2E-5E454E60456F@...&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-users-f17347.html&quot; embed=&quot;fixTarget[17347]&quot; target=&quot;_top&quot; &gt;dabo-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Troublesome-_getBlankRecord%28%29-method-tp26563155p26577333.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26577271</id>
	<title>Re: Troublesome _getBlankRecord() method</title>
	<published>2009-11-30T08:12:57Z</published>
	<updated>2009-11-30T08:12:57Z</updated>
	<author>
		<name>jfabiani</name>
	</author>
	<content type="html">On Sunday 29 November 2009 09:55:46 pm Paul McNett wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; [moved to dabo-dev]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Ed Leafe wrote:
&lt;br&gt;&amp;gt; &amp;gt; modified: used to determine isChanged(), and included in INSERT.
&lt;br&gt;&amp;gt; &amp;gt; default: not used to determine isChanged(), but included in INSERT.
&lt;br&gt;&amp;gt; &amp;gt; blanks: not used to determine isChanged(), and not included in INSERT.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; +1, but we need a better way to flag blanks. I propose defining a string or
&lt;br&gt;&amp;gt; class in dabo.db called DaboBlankField or &amp;quot;^^^DaboBlankField^^^&amp;quot;. The
&lt;br&gt;&amp;gt; cursor fills in the blanks with this value. The UI controls display the
&lt;br&gt;&amp;gt; proper rendition of blank in the context of how the control works (&amp;quot;&amp;quot; for
&lt;br&gt;&amp;gt; textbox, 0 for spinner, etc.)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Paul
&lt;/div&gt;&lt;br&gt;Playing devils advocate how does a developer force a blank string ('') or a 
&lt;br&gt;zero value for the spinner. &amp;nbsp;And in the case of a spinner what if I wanted -1 
&lt;br&gt;to be the no value indicator? &amp;nbsp;
&lt;br&gt;&lt;br&gt;Another question I have has to do with checkboxes. &amp;nbsp;What is 
&lt;br&gt;the &amp;nbsp;&amp;quot;^^^DaboBlankField^^^&amp;quot; field value of a checkbox? &amp;nbsp;Afterall it has three 
&lt;br&gt;values - checked, unchecked, no value?
&lt;br&gt;&lt;br&gt;What about list values - is it possible to have a &amp;nbsp;&amp;quot;^^^DaboBlankField^^^&amp;quot; 
&lt;br&gt;value for a list? &amp;nbsp;I use lists for DB values all the time. &amp;nbsp;I see this being 
&lt;br&gt;very difficult to work with - the list has to have the value in the list that 
&lt;br&gt;is in the DB.
&lt;br&gt;&lt;br&gt;Johnf
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Post Messages to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26577271&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dabo-users@...&lt;/a&gt;
&lt;br&gt;Subscription Maintenance: &lt;a href=&quot;http://leafe.com/mailman/listinfo/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/mailman/listinfo/dabo-users&lt;/a&gt;&lt;br&gt;Searchable Archives: &lt;a href=&quot;http://leafe.com/archives/search/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/search/dabo-users&lt;/a&gt;&lt;br&gt;This message: &lt;a href=&quot;http://leafe.com/archives/byMID/200911300812.57174.jfabiani@yolo.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/byMID/200911300812.57174.jfabiani@...&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-users-f17347.html&quot; embed=&quot;fixTarget[17347]&quot; target=&quot;_top&quot; &gt;dabo-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Troublesome-_getBlankRecord%28%29-method-tp26563155p26577271.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26569947</id>
	<title>Re: Troublesome _getBlankRecord() method</title>
	<published>2009-11-29T21:55:46Z</published>
	<updated>2009-11-29T21:55:46Z</updated>
	<author>
		<name>Paul McNett</name>
	</author>
	<content type="html">[moved to dabo-dev]
&lt;br&gt;&lt;br&gt;Ed Leafe wrote:
&lt;br&gt;&amp;gt; modified: used to determine isChanged(), and included in INSERT.
&lt;br&gt;&amp;gt; default: not used to determine isChanged(), but included in INSERT.
&lt;br&gt;&amp;gt; blanks: not used to determine isChanged(), and not included in INSERT.
&lt;br&gt;&lt;br&gt;+1, but we need a better way to flag blanks. I propose defining a string or class in 
&lt;br&gt;dabo.db called DaboBlankField or &amp;quot;^^^DaboBlankField^^^&amp;quot;. The cursor fills in the 
&lt;br&gt;blanks with this value. The UI controls display the proper rendition of blank in the 
&lt;br&gt;context of how the control works (&amp;quot;&amp;quot; for textbox, 0 for spinner, etc.)
&lt;br&gt;&lt;br&gt;Paul
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Post Messages to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26569947&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dabo-users@...&lt;/a&gt;
&lt;br&gt;Subscription Maintenance: &lt;a href=&quot;http://leafe.com/mailman/listinfo/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/mailman/listinfo/dabo-users&lt;/a&gt;&lt;br&gt;Searchable Archives: &lt;a href=&quot;http://leafe.com/archives/search/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/search/dabo-users&lt;/a&gt;&lt;br&gt;This message: &lt;a href=&quot;http://leafe.com/archives/byMID/4B135E62.3040702@ulmcnett.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/byMID/4B135E62.3040702@...&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-users-f17347.html&quot; embed=&quot;fixTarget[17347]&quot; target=&quot;_top&quot; &gt;dabo-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Troublesome-_getBlankRecord%28%29-method-tp26563155p26569947.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26568453</id>
	<title>dabo Commit 5537</title>
	<published>2009-11-29T17:38:19Z</published>
	<updated>2009-11-29T17:38:19Z</updated>
	<author>
		<name>Ed Leafe</name>
	</author>
	<content type="html">dabo Commit
&lt;br&gt;Revision 5537
&lt;br&gt;Date: 2009-11-29 17:38:18 -0800 (Sun, 29 Nov 2009)
&lt;br&gt;Author: Ed
&lt;br&gt;Trac: &lt;a href=&quot;http://trac.dabodev.com/changeset/5537&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.dabodev.com/changeset/5537&lt;/a&gt;&lt;br&gt;&lt;br&gt;Changed:
&lt;br&gt;U &amp;nbsp; trunk/dabo/ui/uiwx/dGridSizer.py
&lt;br&gt;&lt;br&gt;Log:
&lt;br&gt;Updated the code for determining position of an object in the grid sizer
&lt;br&gt;&lt;br&gt;Diff:
&lt;br&gt;Modified: trunk/dabo/ui/uiwx/dGridSizer.py
&lt;br&gt;===================================================================
&lt;br&gt;--- trunk/dabo/ui/uiwx/dGridSizer.py	2009-11-28 17:14:22 UTC (rev 5536)
&lt;br&gt;+++ trunk/dabo/ui/uiwx/dGridSizer.py	2009-11-30 01:38:18 UTC (rev 5537)
&lt;br&gt;@@ -296,15 +296,12 @@
&lt;br&gt;&amp;nbsp;		sizer, returns a (row,col) tuple for that item's location.
&lt;br&gt;&amp;nbsp;		&amp;quot;&amp;quot;&amp;quot;
&lt;br&gt;&amp;nbsp;		if isinstance(obj, self.SizerItem):
&lt;br&gt;-			szit = obj
&lt;br&gt;+			# Two of these will return None and one will return the actual object
&lt;br&gt;+			# The line below will return the one that is not None.
&lt;br&gt;+			itm = obj.GetWindow() or obj.GetSpacer() or obj.GetSizer()
&lt;br&gt;&amp;nbsp;		else:
&lt;br&gt;-			szit = obj.ControllingSizerItem
&lt;br&gt;-		try:
&lt;br&gt;-			row, col = szit.GetPos()
&lt;br&gt;-		except (wx.PyAssertionError, AttributeError):
&lt;br&gt;-			# Window isn't controlled by this sizer
&lt;br&gt;-			row, col = None, None
&lt;br&gt;-		return (row, col)
&lt;br&gt;+			itm = obj
&lt;br&gt;+		return self.GetItemPosition(itm).Get()
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	def getGridSpan(self, obj):
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Post Messages to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26568453&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dabo-dev@...&lt;/a&gt;
&lt;br&gt;Subscription Maintenance: &lt;a href=&quot;http://leafe.com/mailman/listinfo/dabo-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/mailman/listinfo/dabo-dev&lt;/a&gt;&lt;br&gt;Searchable Archives: &lt;a href=&quot;http://leafe.com/archives/search/dabo-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/search/dabo-dev&lt;/a&gt;&lt;br&gt;This message: &lt;a href=&quot;http://leafe.com/archives/byMID/20091130013819.2521F20413F@mail.paulmcnett.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/byMID/20091130013819.2521F20413F@...&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-dev-f17348.html&quot; embed=&quot;fixTarget[17348]&quot; target=&quot;_top&quot; &gt;dabo-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/dabo-Commit-5537-tp26568453p26568453.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26567733</id>
	<title>Yeah, what he said!</title>
	<published>2009-11-29T15:54:01Z</published>
	<updated>2009-11-29T15:54:01Z</updated>
	<author>
		<name>Ed Leafe</name>
	</author>
	<content type="html">&lt;a href=&quot;http://nedbatchelder.com/blog/200502/get_out_of_the_zeros.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://nedbatchelder.com/blog/200502/get_out_of_the_zeros.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;( -or- &lt;a href=&quot;http://j.mp/4VYdQK&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://j.mp/4VYdQK&lt;/a&gt;&amp;nbsp;)
&lt;br&gt;&lt;br&gt;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
&lt;br&gt;I love open source software. I use a lot of open source software. But &amp;nbsp;
&lt;br&gt;there's something that really bugs me about it: zeros. You know the &amp;nbsp;
&lt;br&gt;ones I mean: the major version number. What is the problem people have &amp;nbsp;
&lt;br&gt;with declaring a piece of software to be 1.0?
&lt;br&gt;&lt;br&gt;Look, your software isn't done, we all know that. Software is never &amp;nbsp;
&lt;br&gt;done. That's one of the great things about it. If you write a book, at &amp;nbsp;
&lt;br&gt;some point you have to walk away from it and hand it to the printer. &amp;nbsp;
&lt;br&gt;You generally don't get to tweak it some more, fix problems in it, add &amp;nbsp;
&lt;br&gt;new content. Sure, some books will go through multiple editions or &amp;nbsp;
&lt;br&gt;revisions, but for the most part, writing text is a finite process.
&lt;br&gt;&lt;br&gt;But software is never done. You'll always find bugs to fix, features &amp;nbsp;
&lt;br&gt;you want to add, improvements to make, and so on. That's what version &amp;nbsp;
&lt;br&gt;2 is for!
&lt;br&gt;&lt;br&gt;- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- Ed Leafe
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Post Messages to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26567733&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dabo-dev@...&lt;/a&gt;
&lt;br&gt;Subscription Maintenance: &lt;a href=&quot;http://leafe.com/mailman/listinfo/dabo-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/mailman/listinfo/dabo-dev&lt;/a&gt;&lt;br&gt;Searchable Archives: &lt;a href=&quot;http://leafe.com/archives/search/dabo-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/search/dabo-dev&lt;/a&gt;&lt;br&gt;This message: &lt;a href=&quot;http://leafe.com/archives/byMID/57BC9462-619E-428A-B29C-F74C555112D5@leafe.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/byMID/57BC9462-619E-428A-B29C-F74C555112D5@...&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-dev-f17348.html&quot; embed=&quot;fixTarget[17348]&quot; target=&quot;_top&quot; &gt;dabo-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Yeah%2C-what-he-said%21-tp26567733p26567733.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26567558</id>
	<title>Re: Troublesome _getBlankRecord() method</title>
	<published>2009-11-29T15:29:03Z</published>
	<updated>2009-11-29T15:29:03Z</updated>
	<author>
		<name>Ed Leafe</name>
	</author>
	<content type="html">On Nov 29, 2009, at 3:52 PM, Jacek Kałucki wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; It can't be done, because every field, even with None/Null value is
&lt;br&gt;&amp;gt; passed to INSERT command.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; It's not supposed to work that way. Only values that were changed &amp;nbsp;
&lt;br&gt;after the new record was created are supposed to be passed; the &amp;nbsp;
&lt;br&gt;&amp;quot;blank&amp;quot; values are supposed to be ignored.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The reason for the blanks is that a record in Python is a dict, with &amp;nbsp;
&lt;br&gt;column names as the keys. There is no way to have a key without a &amp;nbsp;
&lt;br&gt;value, and in order to be able to be edited with UI controls, we need &amp;nbsp;
&lt;br&gt;to supply a value of the same type as the column.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I think that the way it should work for new, unsaved records is as &amp;nbsp;
&lt;br&gt;follows:
&lt;br&gt;&lt;br&gt;modified: used to determine isChanged(), and included in INSERT.
&lt;br&gt;default: not used to determine isChanged(), but included in INSERT.
&lt;br&gt;blanks: not used to determine isChanged(), and not included in INSERT.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; This will take some additional work, so I thought I'd run this &amp;nbsp;
&lt;br&gt;delineation by everyone first. If this sounds good, we can take the &amp;nbsp;
&lt;br&gt;discussion over to dabo-dev.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- Ed Leafe
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Post Messages to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26567558&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dabo-users@...&lt;/a&gt;
&lt;br&gt;Subscription Maintenance: &lt;a href=&quot;http://leafe.com/mailman/listinfo/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/mailman/listinfo/dabo-users&lt;/a&gt;&lt;br&gt;Searchable Archives: &lt;a href=&quot;http://leafe.com/archives/search/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/search/dabo-users&lt;/a&gt;&lt;br&gt;This message: &lt;a href=&quot;http://leafe.com/archives/byMID/5CAF9AB0-4A70-48D1-A811-56556BF5F779@leafe.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/byMID/5CAF9AB0-4A70-48D1-A811-56556BF5F779@...&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-users-f17347.html&quot; embed=&quot;fixTarget[17347]&quot; target=&quot;_top&quot; &gt;dabo-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Troublesome-_getBlankRecord%28%29-method-tp26563155p26567558.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26567306</id>
	<title>Re: Summary page 26 select form?  afterInitAll???</title>
	<published>2009-11-29T15:00:15Z</published>
	<updated>2009-11-29T15:00:15Z</updated>
	<author>
		<name>Ed Leafe-2</name>
	</author>
	<content type="html">On Nov 29, 2009, at 3:58 PM, jvandal wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; I am almost through the tutorial Step by step. Page 26 it states &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;quot;lets go to
&lt;br&gt;&amp;gt; the form's afterInitAll(), I have only the hoursform and the afer &amp;nbsp;
&lt;br&gt;&amp;gt; InitAll
&lt;br&gt;&amp;gt; has code. What do I do??
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; It might just be redundant - the guide was written across several &amp;nbsp;
&lt;br&gt;months. I think the only thing that should be there is a call to &amp;nbsp;
&lt;br&gt;self.requery(), so just add the call to self.new().
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- Ed Leafe
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Post Messages to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26567306&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dabo-users@...&lt;/a&gt;
&lt;br&gt;Subscription Maintenance: &lt;a href=&quot;http://leafe.com/mailman/listinfo/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/mailman/listinfo/dabo-users&lt;/a&gt;&lt;br&gt;Searchable Archives: &lt;a href=&quot;http://leafe.com/archives/search/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/search/dabo-users&lt;/a&gt;&lt;br&gt;This message: &lt;a href=&quot;http://leafe.com/archives/byMID/7B595FEA-ADE0-46FA-B14E-7551829A165E@leafe.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/byMID/7B595FEA-ADE0-46FA-B14E-7551829A165E@...&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-users-f17347.html&quot; embed=&quot;fixTarget[17347]&quot; target=&quot;_top&quot; &gt;dabo-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Summary-page-26-select-form---afterInitAll----tp26566651p26567306.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26566854</id>
	<title>Re: Troublesome _getBlankRecord() method</title>
	<published>2009-11-29T14:14:20Z</published>
	<updated>2009-11-29T14:14:20Z</updated>
	<author>
		<name>Adrian Klaver</name>
	</author>
	<content type="html">On Sunday 29 November 2009 2:06:17 pm Jacek Kałucki wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Użytkownik Adrian Klaver napisał:
&lt;br&gt;&amp;gt; &amp;gt; On Sunday 29 November 2009 11:48:38 am Jacek Kałucki wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Sorry guys, I just found DefaultValues dBizobj property, which is what I
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; missing.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; But unfortunately, it still doesn't resolve backend default values
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; issue, which is completely unusable :(
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Actually it does. If you set DefaultValues = None then the backend
&lt;br&gt;&amp;gt; &amp;gt; defaults are used.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; For what backend?
&lt;br&gt;&amp;gt; For PostgreSQL 8.3 it doesn't work.
&lt;/div&gt;&lt;br&gt;I have used it with Postgres 8.1+. You might need to show your bizobj 
&lt;br&gt;definition.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Adrian Klaver
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26566854&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aklaver@...&lt;/a&gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;Post Messages to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26566854&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dabo-users@...&lt;/a&gt;
&lt;br&gt;Subscription Maintenance: &lt;a href=&quot;http://leafe.com/mailman/listinfo/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/mailman/listinfo/dabo-users&lt;/a&gt;&lt;br&gt;Searchable Archives: &lt;a href=&quot;http://leafe.com/archives/search/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/search/dabo-users&lt;/a&gt;&lt;br&gt;This message: &lt;a href=&quot;http://leafe.com/archives/byMID/200911291414.20670.aklaver@comcast.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/byMID/200911291414.20670.aklaver@...&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-users-f17347.html&quot; embed=&quot;fixTarget[17347]&quot; target=&quot;_top&quot; &gt;dabo-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Troublesome-_getBlankRecord%28%29-method-tp26563155p26566854.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26566758</id>
	<title>Re: Troublesome _getBlankRecord() method</title>
	<published>2009-11-29T14:06:17Z</published>
	<updated>2009-11-29T14:06:17Z</updated>
	<author>
		<name>Jacek Kałucki</name>
	</author>
	<content type="html">Użytkownik Adrian Klaver napisał:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Sunday 29 November 2009 11:48:38 am Jacek Kałucki wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; Sorry guys, I just found DefaultValues dBizobj property, which is what I
&lt;br&gt;&amp;gt;&amp;gt; missing.
&lt;br&gt;&amp;gt;&amp;gt; But unfortunately, it still doesn't resolve backend default values issue,
&lt;br&gt;&amp;gt;&amp;gt; which is completely unusable :(
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; Actually it does. If you set DefaultValues = None then the backend defaults are
&lt;br&gt;&amp;gt; used.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;/div&gt;&lt;br&gt;For what backend?
&lt;br&gt;For PostgreSQL 8.3 it doesn't work.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Regards
&lt;br&gt;Jacek Kałucki
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Post Messages to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26566758&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dabo-users@...&lt;/a&gt;
&lt;br&gt;Subscription Maintenance: &lt;a href=&quot;http://leafe.com/mailman/listinfo/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/mailman/listinfo/dabo-users&lt;/a&gt;&lt;br&gt;Searchable Archives: &lt;a href=&quot;http://leafe.com/archives/search/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/search/dabo-users&lt;/a&gt;&lt;br&gt;This message: &lt;a href=&quot;http://leafe.com/archives/byMID/4B12F059.2090705@rz.onet.pl&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/byMID/4B12F059.2090705@...&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-users-f17347.html&quot; embed=&quot;fixTarget[17347]&quot; target=&quot;_top&quot; &gt;dabo-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Troublesome-_getBlankRecord%28%29-method-tp26563155p26566758.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26566651</id>
	<title>Summary page 26 select form?  afterInitAll???</title>
	<published>2009-11-29T13:58:01Z</published>
	<updated>2009-11-29T13:58:01Z</updated>
	<author>
		<name>jvandal</name>
	</author>
	<content type="html">I am almost through the tutorial Step by step. Page 26 it states &amp;quot;lets go to the form's afterInitAll(), I have only the hoursform and the afer InitAll has code. What do I do??&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-users-f17347.html&quot; embed=&quot;fixTarget[17347]&quot; target=&quot;_top&quot; &gt;dabo-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Summary-page-26-select-form---afterInitAll----tp26566651p26566651.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26566587</id>
	<title>Re: Troublesome _getBlankRecord() method</title>
	<published>2009-11-29T13:52:44Z</published>
	<updated>2009-11-29T13:52:44Z</updated>
	<author>
		<name>Jacek Kałucki</name>
	</author>
	<content type="html">Użytkownik John napisał:
&lt;br&gt;&amp;gt; If I understand you correctly. &amp;nbsp;If the value is None (or Null) you want Dabo not to pass the field value to the DB otherwise pass the value. &amp;nbsp;You want this because you want the DB to set the default value in the case the field is not passed. &amp;nbsp;And can you can not use NonUpdateFields() because you want Dabo to pass a value if one is supplied.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My first question is how can you get this done via the dBizObj.onNew(). &amp;nbsp;I can see where this might be valuable in the future. &amp;nbsp;But I don't see how to do it in onNew().
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Normally when I setup a DB and need special handling I use triggers. &amp;nbsp;Maybe that could be a work around in your case.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&lt;br&gt;It can't be done, because every field, even with None/Null value is 
&lt;br&gt;passed to INSERT command.
&lt;br&gt;To achieve this from Dabo, it would have to omit fields with Null values 
&lt;br&gt;from INSERT.
&lt;br&gt;But, now it's the only way to use triggers.
&lt;br&gt;Of course I can do that, but:
&lt;br&gt;1) DEFAULT clause size is about ten characters, while trigger is ten 
&lt;br&gt;times more
&lt;br&gt;2) triggers are handled differently in almost each database, e.g. 
&lt;br&gt;Firebird vs. PostgreSQL,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;while DEFAULT is 99% the same, so I have much more work to do,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;to provide support for multiple backends.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Regards
&lt;br&gt;Jacek Kałucki
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Post Messages to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26566587&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dabo-users@...&lt;/a&gt;
&lt;br&gt;Subscription Maintenance: &lt;a href=&quot;http://leafe.com/mailman/listinfo/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/mailman/listinfo/dabo-users&lt;/a&gt;&lt;br&gt;Searchable Archives: &lt;a href=&quot;http://leafe.com/archives/search/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/search/dabo-users&lt;/a&gt;&lt;br&gt;This message: &lt;a href=&quot;http://leafe.com/archives/byMID/4B12ED2C.3070609@rz.onet.pl&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/byMID/4B12ED2C.3070609@...&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-users-f17347.html&quot; embed=&quot;fixTarget[17347]&quot; target=&quot;_top&quot; &gt;dabo-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Troublesome-_getBlankRecord%28%29-method-tp26563155p26566587.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26566467</id>
	<title>Re: Troublesome _getBlankRecord() method</title>
	<published>2009-11-29T13:40:01Z</published>
	<updated>2009-11-29T13:40:01Z</updated>
	<author>
		<name>Adrian Klaver</name>
	</author>
	<content type="html">On Sunday 29 November 2009 11:48:38 am Jacek Kałucki wrote:
&lt;br&gt;&amp;gt; Sorry guys, I just found DefaultValues dBizobj property, which is what I
&lt;br&gt;&amp;gt; missing.
&lt;br&gt;&amp;gt; But unfortunately, it still doesn't resolve backend default values issue,
&lt;br&gt;&amp;gt; which is completely unusable :(
&lt;br&gt;&lt;br&gt;Actually it does. If you set DefaultValues = None then the backend defaults are 
&lt;br&gt;used.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Adrian Klaver
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26566467&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aklaver@...&lt;/a&gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;Post Messages to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26566467&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dabo-users@...&lt;/a&gt;
&lt;br&gt;Subscription Maintenance: &lt;a href=&quot;http://leafe.com/mailman/listinfo/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/mailman/listinfo/dabo-users&lt;/a&gt;&lt;br&gt;Searchable Archives: &lt;a href=&quot;http://leafe.com/archives/search/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/search/dabo-users&lt;/a&gt;&lt;br&gt;This message: &lt;a href=&quot;http://leafe.com/archives/byMID/200911291340.02163.aklaver@comcast.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/byMID/200911291340.02163.aklaver@...&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-users-f17347.html&quot; embed=&quot;fixTarget[17347]&quot; target=&quot;_top&quot; &gt;dabo-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Troublesome-_getBlankRecord%28%29-method-tp26563155p26566467.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26566058</id>
	<title>Re: Troublesome _getBlankRecord() method</title>
	<published>2009-11-29T11:48:38Z</published>
	<updated>2009-11-29T11:48:38Z</updated>
	<author>
		<name>Jacek Kałucki</name>
	</author>
	<content type="html">Sorry guys, I just found DefaultValues dBizobj property, which is what I 
&lt;br&gt;missing.
&lt;br&gt;But unfortunately, it still doesn't resolve backend default values issue,
&lt;br&gt;which is completely unusable :(
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Regards
&lt;br&gt;Jacek Kałucki
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Post Messages to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26566058&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dabo-users@...&lt;/a&gt;
&lt;br&gt;Subscription Maintenance: &lt;a href=&quot;http://leafe.com/mailman/listinfo/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/mailman/listinfo/dabo-users&lt;/a&gt;&lt;br&gt;Searchable Archives: &lt;a href=&quot;http://leafe.com/archives/search/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/search/dabo-users&lt;/a&gt;&lt;br&gt;This message: &lt;a href=&quot;http://leafe.com/archives/byMID/4B12D016.9010403@rz.onet.pl&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/byMID/4B12D016.9010403@...&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-users-f17347.html&quot; embed=&quot;fixTarget[17347]&quot; target=&quot;_top&quot; &gt;dabo-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Troublesome-_getBlankRecord%28%29-method-tp26563155p26566058.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26566056</id>
	<title>Re: Troublesome _getBlankRecord() method</title>
	<published>2009-11-29T10:42:37Z</published>
	<updated>2009-11-29T10:42:37Z</updated>
	<author>
		<name>jfabiani</name>
	</author>
	<content type="html">On Sunday 29 November 2009 07:52:42 am Jacek Kałucki wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I found dCursorMixin._getBlankRecord() makes me angry.
&lt;br&gt;&amp;gt; The idea of setting a default field value is generally a good idea,
&lt;br&gt;&amp;gt; with one exception. There could be a fields I don't want default
&lt;br&gt;&amp;gt; value to be set.
&lt;br&gt;&amp;gt; When for e.g. field value is set by backend, in SQL 'DEFAULT' clause,
&lt;br&gt;&amp;gt; or when I want the filed has explicit NULL value set (see, my post
&lt;br&gt;&amp;gt; about BLOB field default value).
&lt;br&gt;&amp;gt; Of course, I can hook dBizObj.onNew() method, but I think it would be
&lt;br&gt;&amp;gt; more elegant to exclude some fields from setting their default values,
&lt;br&gt;&amp;gt; than setting values twice.
&lt;br&gt;&amp;gt; For e.g. the NoDefaultValueFileds tuple property could be added to dBizobj
&lt;br&gt;&amp;gt; class to achieve this.
&lt;br&gt;&amp;gt; It would be a perfect solution to extend dBizobj.DataStructure property
&lt;br&gt;&amp;gt; for field default value.
&lt;/div&gt;&lt;br&gt;If I understand you correctly. &amp;nbsp;If the value is None (or Null) you want Dabo not to pass the field value to the DB otherwise pass the value. &amp;nbsp;You want this because you want the DB to set the default value in the case the field is not passed. &amp;nbsp;And can you can not use NonUpdateFields() because you want Dabo to pass a value if one is supplied.
&lt;br&gt;&lt;br&gt;My first question is how can you get this done via the dBizObj.onNew(). &amp;nbsp;I can see where this might be valuable in the future. &amp;nbsp;But I don't see how to do it in onNew().
&lt;br&gt;&lt;br&gt;Normally when I setup a DB and need special handling I use triggers. &amp;nbsp;Maybe that could be a work around in your case.
&lt;br&gt;&lt;br&gt;Johnf
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;--- StripMime Report -- processed MIME parts ---
&lt;br&gt;multipart/alternative
&lt;br&gt;&amp;nbsp; text/plain (text body -- kept)
&lt;br&gt;&amp;nbsp; text/html
&lt;br&gt;---
&lt;br&gt;_______________________________________________
&lt;br&gt;Post Messages to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26566056&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dabo-users@...&lt;/a&gt;
&lt;br&gt;Subscription Maintenance: &lt;a href=&quot;http://leafe.com/mailman/listinfo/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/mailman/listinfo/dabo-users&lt;/a&gt;&lt;br&gt;Searchable Archives: &lt;a href=&quot;http://leafe.com/archives/search/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/search/dabo-users&lt;/a&gt;&lt;br&gt;This message: &lt;a href=&quot;http://leafe.com/archives/byMID/200911291042.37572.jfabiani@yolo.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/byMID/200911291042.37572.jfabiani@...&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-users-f17347.html&quot; embed=&quot;fixTarget[17347]&quot; target=&quot;_top&quot; &gt;dabo-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Troublesome-_getBlankRecord%28%29-method-tp26563155p26566056.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26566054</id>
	<title>Re: Troublesome _getBlankRecord() method</title>
	<published>2009-11-29T08:36:12Z</published>
	<updated>2009-11-29T08:36:12Z</updated>
	<author>
		<name>Jacek Kałucki</name>
	</author>
	<content type="html">Unfortunately, now there is even no option in Dabo,
&lt;br&gt;to let backend set default field value with &amp;quot;DEFAULT&amp;quot; clause,
&lt;br&gt;because Dabo always send all fields with default values set
&lt;br&gt;with INSERT command.
&lt;br&gt;Only way to achieve this is to create insert trigger in database.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Regards
&lt;br&gt;Jacek Kałucki
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Post Messages to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26566054&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dabo-users@...&lt;/a&gt;
&lt;br&gt;Subscription Maintenance: &lt;a href=&quot;http://leafe.com/mailman/listinfo/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/mailman/listinfo/dabo-users&lt;/a&gt;&lt;br&gt;Searchable Archives: &lt;a href=&quot;http://leafe.com/archives/search/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/search/dabo-users&lt;/a&gt;&lt;br&gt;This message: &lt;a href=&quot;http://leafe.com/archives/byMID/4B12A2FC.2060509@rz.onet.pl&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/byMID/4B12A2FC.2060509@...&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-users-f17347.html&quot; embed=&quot;fixTarget[17347]&quot; target=&quot;_top&quot; &gt;dabo-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Troublesome-_getBlankRecord%28%29-method-tp26563155p26566054.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26563155</id>
	<title>Troublesome _getBlankRecord() method</title>
	<published>2009-11-29T07:52:42Z</published>
	<updated>2009-11-29T07:52:42Z</updated>
	<author>
		<name>Jacek Kałucki</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I found dCursorMixin._getBlankRecord() makes me angry.
&lt;br&gt;The idea of setting a default field value is generally a good idea,
&lt;br&gt;with one exception. There could be a fields I don't want default
&lt;br&gt;value to be set.
&lt;br&gt;When for e.g. field value is set by backend, in SQL 'DEFAULT' clause,
&lt;br&gt;or when I want the filed has explicit NULL value set (see, my post
&lt;br&gt;about BLOB field default value).
&lt;br&gt;Of course, I can hook dBizObj.onNew() method, but I think it would be
&lt;br&gt;more elegant to exclude some fields from setting their default values,
&lt;br&gt;than setting values twice.
&lt;br&gt;For e.g. the NoDefaultValueFileds tuple property could be added to dBizobj
&lt;br&gt;class to achieve this.
&lt;br&gt;It would be a perfect solution to extend dBizobj.DataStructure property
&lt;br&gt;for field default value.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Regards
&lt;br&gt;Jacek Kałucki
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Post Messages to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26563155&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dabo-users@...&lt;/a&gt;
&lt;br&gt;Subscription Maintenance: &lt;a href=&quot;http://leafe.com/mailman/listinfo/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/mailman/listinfo/dabo-users&lt;/a&gt;&lt;br&gt;Searchable Archives: &lt;a href=&quot;http://leafe.com/archives/search/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/search/dabo-users&lt;/a&gt;&lt;br&gt;This message: &lt;a href=&quot;http://leafe.com/archives/byMID/4B1298CA.2080801@rz.onet.pl&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/byMID/4B1298CA.2080801@...&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-users-f17347.html&quot; embed=&quot;fixTarget[17347]&quot; target=&quot;_top&quot; &gt;dabo-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Troublesome-_getBlankRecord%28%29-method-tp26563155p26563155.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26559626</id>
	<title>Re: NameError: global name 'datetime' is not defined</title>
	<published>2009-11-28T22:12:29Z</published>
	<updated>2009-11-28T22:12:29Z</updated>
	<author>
		<name>jfabiani</name>
	</author>
	<content type="html">On Saturday 28 November 2009 09:27:20 pm jvandal wrote:
&lt;br&gt;&amp;gt; &amp;quot;C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dPemMixi
&lt;br&gt;&amp;gt; n.py&amp;quot;, line 320, in _afterInit
&lt;br&gt;&amp;gt;     self.afterInit()
&lt;br&gt;&amp;gt;   File &amp;quot;c:\users\jim\appdata\local\temp\tmpeiu34a.py&amp;quot;, line 264, in
&lt;br&gt;&amp;gt; afterInit
&lt;br&gt;&amp;gt;     self.Defaultvalues = (&amp;quot;servicedate&amp;quot;, datetime.date.today())
&lt;br&gt;&amp;gt; NameError: global name 'datetime' is not defined
&lt;br&gt;&lt;br&gt;You need to import the 'datetime' module
&lt;br&gt;&lt;br&gt;as in 
&lt;br&gt;import datetime
&lt;br&gt;&lt;br&gt;If you are using ClassDesigner use the File-&amp;gt;Import Declarations to add the 
&lt;br&gt;above line.
&lt;br&gt;&lt;br&gt;Johnf
&lt;br&gt;_______________________________________________
&lt;br&gt;Post Messages to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26559626&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dabo-users@...&lt;/a&gt;
&lt;br&gt;Subscription Maintenance: &lt;a href=&quot;http://leafe.com/mailman/listinfo/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/mailman/listinfo/dabo-users&lt;/a&gt;&lt;br&gt;Searchable Archives: &lt;a href=&quot;http://leafe.com/archives/search/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/search/dabo-users&lt;/a&gt;&lt;br&gt;This message: &lt;a href=&quot;http://leafe.com/archives/byMID/200911282212.30015.jfabiani@yolo.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/byMID/200911282212.30015.jfabiani@...&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-users-f17347.html&quot; embed=&quot;fixTarget[17347]&quot; target=&quot;_top&quot; &gt;dabo-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NameError%3A-global-name-%27datetime%27-is-not-defined-tp26559484p26559626.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26559484</id>
	<title>NameError: global name 'datetime' is not defined</title>
	<published>2009-11-28T21:27:20Z</published>
	<updated>2009-11-28T21:27:20Z</updated>
	<author>
		<name>jvandal</name>
	</author>
	<content type="html">I am trying to create the hours form in Step by step. I get this error and I can't find what is wrong. I have included the HoursBizobj.pyI am ok till I get the page 19 Dropdown List Control.
&lt;br&gt;I am confused by the creation of the HoursBizobj.py &amp;nbsp;an placed in the biz folder. I use the Editor to CreateBizObj and wonder how they relate ???
&lt;br&gt;&lt;br&gt;==============================================================
&lt;br&gt;&lt;br&gt;C:\dabo-0.9.2-win\dabo\projects\hours&amp;gt;main.py
&lt;br&gt;C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\lib\SimpleCrypt.py:32: U
&lt;br&gt;serWarning:
&lt;br&gt;WARNING:
&lt;br&gt;Your application uses SimpleCrypt, which is fine for testing but should
&lt;br&gt;not be used in production, because:
&lt;br&gt;&lt;br&gt;1) Anyone with a copy of Dabo could decrypt your password.
&lt;br&gt;&lt;br&gt;2) It isn't portable between 32-bit and 64-bit python. See the trac
&lt;br&gt;&amp;nbsp; &amp;nbsp;ticket at &lt;a href=&quot;http://trac.dabodev.com/ticket/1179&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.dabodev.com/ticket/1179&lt;/a&gt;&amp;nbsp;for more information.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;quot;&amp;quot;&amp;quot;, UserWarning)
&lt;br&gt;Traceback (most recent call last):
&lt;br&gt;&amp;nbsp; File &amp;quot;C:\dabo-0.9.2-win\dabo\projects\hours\main.py&amp;quot;, line 12, in &amp;lt;module&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; app.start()
&lt;br&gt;&amp;nbsp; File &amp;quot;C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\dApp.py&amp;quot;, line 3
&lt;br&gt;76, in start
&lt;br&gt;&amp;nbsp; &amp;nbsp; self.setup()
&lt;br&gt;&amp;nbsp; File &amp;quot;C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\dApp.py&amp;quot;, line 3
&lt;br&gt;32, in setup
&lt;br&gt;&amp;nbsp; &amp;nbsp; self.initUIApp()
&lt;br&gt;&amp;nbsp; File &amp;quot;C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\dApp.py&amp;quot;, line 3
&lt;br&gt;68, in initUIApp
&lt;br&gt;&amp;nbsp; &amp;nbsp; self.uiApp.setup()
&lt;br&gt;&amp;nbsp; File &amp;quot;C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\uiApp.py
&lt;br&gt;&amp;quot;, line 406, in setup
&lt;br&gt;&amp;nbsp; &amp;nbsp; frm = self.dApp.MainForm = dabo.ui.createForm(mfc)
&lt;br&gt;&amp;nbsp; File &amp;quot;C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\__init__
&lt;br&gt;.py&amp;quot;, line 1168, in createForm
&lt;br&gt;&amp;nbsp; &amp;nbsp; frm = cls(*args, **kwargs)
&lt;br&gt;&amp;nbsp; File &amp;quot;c:\users\jim\appdata\local\temp\tmpeiu34a.py&amp;quot;, line 126, in __init__
&lt;br&gt;&amp;nbsp; &amp;nbsp; obj = self.getCustControlClass('dDropdownList_32020')(currParent)
&lt;br&gt;&amp;nbsp; File &amp;quot;c:\users\jim\appdata\local\temp\tmpeiu34a.py&amp;quot;, line 255, in __init__
&lt;br&gt;&amp;nbsp; &amp;nbsp; dabo.ui.dDropdownList.__init__(self, parent=parent, attProperties=attPropert
&lt;br&gt;ies, *args, **kwargs)
&lt;br&gt;&amp;nbsp; File &amp;quot;C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dDropdow
&lt;br&gt;nList.py&amp;quot;, line 23, in __init__
&lt;br&gt;&amp;nbsp; &amp;nbsp; dcm.dControlItemMixin.__init__(self, preClass, parent, properties, attProper
&lt;br&gt;ties, *args, **kwargs)
&lt;br&gt;&amp;nbsp; File &amp;quot;C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dControl
&lt;br&gt;ItemMixin.py&amp;quot;, line 20, in __init__
&lt;br&gt;&amp;nbsp; &amp;nbsp; super(dControlItemMixin, self).__init__(*args, **kwargs)
&lt;br&gt;&amp;nbsp; File &amp;quot;C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\dDataControlM
&lt;br&gt;ixinBase.py&amp;quot;, line 22, in __init__
&lt;br&gt;&amp;nbsp; &amp;nbsp; dabo.ui.dControlMixin.__init__(self, *args, **kwargs)
&lt;br&gt;&amp;nbsp; File &amp;quot;C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dPemMixi
&lt;br&gt;n.py&amp;quot;, line 186, in __init__
&lt;br&gt;&amp;nbsp; &amp;nbsp; self._afterInit()
&lt;br&gt;&amp;nbsp; File &amp;quot;C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dPemMixi
&lt;br&gt;n.py&amp;quot;, line 320, in _afterInit
&lt;br&gt;&amp;nbsp; &amp;nbsp; self.afterInit()
&lt;br&gt;&amp;nbsp; File &amp;quot;c:\users\jim\appdata\local\temp\tmpeiu34a.py&amp;quot;, line 264, in afterInit
&lt;br&gt;&amp;nbsp; &amp;nbsp; self.Defaultvalues = (&amp;quot;servicedate&amp;quot;, datetime.date.today())
&lt;br&gt;NameError: global name 'datetime' is not defined
&lt;br&gt;&lt;br&gt;C:\dabo-0.9.2-win\dabo\projects\hours&amp;gt;c:\dabo-0.9.2-win\dabo\ide\Classdesigner.p
&lt;br&gt;y
&lt;br&gt;&lt;br&gt;C:\dabo-0.9.2-win\dabo\projects\hours&amp;gt;c:\dabo-0.9.2-win\dabo\ide\Classdesigner.p
&lt;br&gt;y
&lt;br&gt;C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\lib\SimpleCrypt.py:32: U
&lt;br&gt;serWarning:
&lt;br&gt;WARNING:
&lt;br&gt;Your application uses SimpleCrypt, which is fine for testing but should
&lt;br&gt;not be used in production, because:
&lt;br&gt;&lt;br&gt;1) Anyone with a copy of Dabo could decrypt your password.
&lt;br&gt;&lt;br&gt;2) It isn't portable between 32-bit and 64-bit python. See the trac
&lt;br&gt;&amp;nbsp; &amp;nbsp;ticket at &lt;a href=&quot;http://trac.dabodev.com/ticket/1179&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.dabodev.com/ticket/1179&lt;/a&gt;&amp;nbsp;for more information.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;quot;&amp;quot;&amp;quot;, UserWarning)
&lt;br&gt;&lt;br&gt;This is my HoursBizobj.py file
&lt;br&gt;=========================================
&lt;br&gt;#!/usr/bin/env python
&lt;br&gt;# -*- coding: utf-8 -*-
&lt;br&gt;import dabo
&lt;br&gt;import datetime
&lt;br&gt;class HoursBizobj(dabo.biz.dBizobj): &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; def afterInit(self): &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.DataSource = &amp;quot;hours&amp;quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.KeyField = &amp;quot;pkid&amp;quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.addField(&amp;quot;hours.pkid&amp;quot;) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.addField(&amp;quot;hours.clientfk&amp;quot;) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.addField(&amp;quot;clients.clientname&amp;quot;) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.addField(&amp;quot;hours.servicedate&amp;quot;) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.addField(&amp;quot;hours.hours&amp;quot;) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.addField(&amp;quot;hours.notes&amp;quot;) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.addField(&amp;quot;hours.billed&amp;quot;) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.addFrom(&amp;quot;hours&amp;quot;) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.addJoin(&amp;quot;clients&amp;quot;, &amp;quot;hours.clientfk = clients.pkid&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; def getClients(self):
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;&amp;quot;&amp;quot;Return a 2-tuple of lists of the client names and their keys.&amp;quot;&amp;quot;&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; crs = self.getTempCursor()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; crs.execute(&amp;quot;select pkid, clientname from clients order by clientname&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ds = crs.getDataSet()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # Create the lists
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; names = [rec[&amp;quot;clientname&amp;quot;] for rec in ds]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; keys = [rec[&amp;quot;pkid&amp;quot;] for rec in ds]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # Add the entry for an undefined (new) client
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; names.insert(0, &amp;quot;-Please Select a Client-&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; keys.insert(0, 0)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (names, keys)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; def validateRecord(self):
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ret = &amp;quot;&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # Make sure that the user selected a valid client
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if self.Record.clientfk == 0:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ret = &amp;quot;You must select a valid client&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return ret
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; def beforeSave(self):
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bizobj = self.getBizobj(self.dataSourceParameter)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# If the bizobj hasn't changed, we want to notify the user
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# and abort the save process, so that the new record is
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# not added afterwards.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if not bizobj.isChanged():
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return &amp;quot;No changes have been made; cannot save.&amp;quot;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; def afterSave(self):
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # This will only get called if the save succeeds
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.new()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.serviceDate.setFocus()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; def save(self):
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; err = self.beforeSave()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if err:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # Display the error
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# do the typical save() stuff
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.afterSave()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-users-f17347.html&quot; embed=&quot;fixTarget[17347]&quot; target=&quot;_top&quot; &gt;dabo-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NameError%3A-global-name-%27datetime%27-is-not-defined-tp26559484p26559484.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26559364</id>
	<title>NameError: global name 'datetime' is not defined</title>
	<published>2009-11-28T20:56:06Z</published>
	<updated>2009-11-28T20:56:06Z</updated>
	<author>
		<name>jvandal</name>
	</author>
	<content type="html">I am trying to create the hours form in Step by step. I get this error and I can't find what is wrong. I have included the HoursBizobj.pyI am ok till I get the page 19 Dropdown List Control.
&lt;br&gt;I am confused by the creation of the HoursBizobj.py &amp;nbsp;an placed in the biz folder. I use the Editor to CreateBizObj and wonder how they relate ???
&lt;br&gt;&lt;br&gt;==============================================================
&lt;br&gt;&lt;br&gt;C:\dabo-0.9.2-win\dabo\projects\hours&amp;gt;main.py
&lt;br&gt;C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\lib\SimpleCrypt.py:32: U
&lt;br&gt;serWarning:
&lt;br&gt;WARNING:
&lt;br&gt;Your application uses SimpleCrypt, which is fine for testing but should
&lt;br&gt;not be used in production, because:
&lt;br&gt;&lt;br&gt;1) Anyone with a copy of Dabo could decrypt your password.
&lt;br&gt;&lt;br&gt;2) It isn't portable between 32-bit and 64-bit python. See the trac
&lt;br&gt;&amp;nbsp; &amp;nbsp;ticket at &lt;a href=&quot;http://trac.dabodev.com/ticket/1179&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.dabodev.com/ticket/1179&lt;/a&gt;&amp;nbsp;for more information.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;quot;&amp;quot;&amp;quot;, UserWarning)
&lt;br&gt;Traceback (most recent call last):
&lt;br&gt;&amp;nbsp; File &amp;quot;C:\dabo-0.9.2-win\dabo\projects\hours\main.py&amp;quot;, line 12, in &amp;lt;module&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; app.start()
&lt;br&gt;&amp;nbsp; File &amp;quot;C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\dApp.py&amp;quot;, line 3
&lt;br&gt;76, in start
&lt;br&gt;&amp;nbsp; &amp;nbsp; self.setup()
&lt;br&gt;&amp;nbsp; File &amp;quot;C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\dApp.py&amp;quot;, line 3
&lt;br&gt;32, in setup
&lt;br&gt;&amp;nbsp; &amp;nbsp; self.initUIApp()
&lt;br&gt;&amp;nbsp; File &amp;quot;C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\dApp.py&amp;quot;, line 3
&lt;br&gt;68, in initUIApp
&lt;br&gt;&amp;nbsp; &amp;nbsp; self.uiApp.setup()
&lt;br&gt;&amp;nbsp; File &amp;quot;C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\uiApp.py
&lt;br&gt;&amp;quot;, line 406, in setup
&lt;br&gt;&amp;nbsp; &amp;nbsp; frm = self.dApp.MainForm = dabo.ui.createForm(mfc)
&lt;br&gt;&amp;nbsp; File &amp;quot;C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\__init__
&lt;br&gt;.py&amp;quot;, line 1168, in createForm
&lt;br&gt;&amp;nbsp; &amp;nbsp; frm = cls(*args, **kwargs)
&lt;br&gt;&amp;nbsp; File &amp;quot;c:\users\jim\appdata\local\temp\tmpeiu34a.py&amp;quot;, line 126, in __init__
&lt;br&gt;&amp;nbsp; &amp;nbsp; obj = self.getCustControlClass('dDropdownList_32020')(currParent)
&lt;br&gt;&amp;nbsp; File &amp;quot;c:\users\jim\appdata\local\temp\tmpeiu34a.py&amp;quot;, line 255, in __init__
&lt;br&gt;&amp;nbsp; &amp;nbsp; dabo.ui.dDropdownList.__init__(self, parent=parent, attProperties=attPropert
&lt;br&gt;ies, *args, **kwargs)
&lt;br&gt;&amp;nbsp; File &amp;quot;C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dDropdow
&lt;br&gt;nList.py&amp;quot;, line 23, in __init__
&lt;br&gt;&amp;nbsp; &amp;nbsp; dcm.dControlItemMixin.__init__(self, preClass, parent, properties, attProper
&lt;br&gt;ties, *args, **kwargs)
&lt;br&gt;&amp;nbsp; File &amp;quot;C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dControl
&lt;br&gt;ItemMixin.py&amp;quot;, line 20, in __init__
&lt;br&gt;&amp;nbsp; &amp;nbsp; super(dControlItemMixin, self).__init__(*args, **kwargs)
&lt;br&gt;&amp;nbsp; File &amp;quot;C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\dDataControlM
&lt;br&gt;ixinBase.py&amp;quot;, line 22, in __init__
&lt;br&gt;&amp;nbsp; &amp;nbsp; dabo.ui.dControlMixin.__init__(self, *args, **kwargs)
&lt;br&gt;&amp;nbsp; File &amp;quot;C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dPemMixi
&lt;br&gt;n.py&amp;quot;, line 186, in __init__
&lt;br&gt;&amp;nbsp; &amp;nbsp; self._afterInit()
&lt;br&gt;&amp;nbsp; File &amp;quot;C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\ui\uiwx\dPemMixi
&lt;br&gt;n.py&amp;quot;, line 320, in _afterInit
&lt;br&gt;&amp;nbsp; &amp;nbsp; self.afterInit()
&lt;br&gt;&amp;nbsp; File &amp;quot;c:\users\jim\appdata\local\temp\tmpeiu34a.py&amp;quot;, line 264, in afterInit
&lt;br&gt;&amp;nbsp; &amp;nbsp; self.Defaultvalues = (&amp;quot;servicedate&amp;quot;, datetime.date.today())
&lt;br&gt;NameError: global name 'datetime' is not defined
&lt;br&gt;&lt;br&gt;C:\dabo-0.9.2-win\dabo\projects\hours&amp;gt;c:\dabo-0.9.2-win\dabo\ide\Classdesigner.p
&lt;br&gt;y
&lt;br&gt;&lt;br&gt;C:\dabo-0.9.2-win\dabo\projects\hours&amp;gt;c:\dabo-0.9.2-win\dabo\ide\Classdesigner.p
&lt;br&gt;y
&lt;br&gt;C:\Python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\lib\SimpleCrypt.py:32: U
&lt;br&gt;serWarning:
&lt;br&gt;WARNING:
&lt;br&gt;Your application uses SimpleCrypt, which is fine for testing but should
&lt;br&gt;not be used in production, because:
&lt;br&gt;&lt;br&gt;1) Anyone with a copy of Dabo could decrypt your password.
&lt;br&gt;&lt;br&gt;2) It isn't portable between 32-bit and 64-bit python. See the trac
&lt;br&gt;&amp;nbsp; &amp;nbsp;ticket at &lt;a href=&quot;http://trac.dabodev.com/ticket/1179&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.dabodev.com/ticket/1179&lt;/a&gt;&amp;nbsp;for more information.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;quot;&amp;quot;&amp;quot;, UserWarning)
&lt;br&gt;&lt;br&gt;This is my HoursBizobj.py file
&lt;br&gt;=========================================
&lt;br&gt;#!/usr/bin/env python
&lt;br&gt;# -*- coding: utf-8 -*-
&lt;br&gt;import dabo
&lt;br&gt;import datetime
&lt;br&gt;class HoursBizobj(dabo.biz.dBizobj): &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; def afterInit(self): &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.DataSource = &amp;quot;hours&amp;quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.KeyField = &amp;quot;pkid&amp;quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.addField(&amp;quot;hours.pkid&amp;quot;) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.addField(&amp;quot;hours.clientfk&amp;quot;) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.addField(&amp;quot;clients.clientname&amp;quot;) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.addField(&amp;quot;hours.servicedate&amp;quot;) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.addField(&amp;quot;hours.hours&amp;quot;) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.addField(&amp;quot;hours.notes&amp;quot;) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.addField(&amp;quot;hours.billed&amp;quot;) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.addFrom(&amp;quot;hours&amp;quot;) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;self.addJoin(&amp;quot;clients&amp;quot;, &amp;quot;hours.clientfk = clients.pkid&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; def getClients(self):
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;&amp;quot;&amp;quot;Return a 2-tuple of lists of the client names and their keys.&amp;quot;&amp;quot;&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; crs = self.getTempCursor()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; crs.execute(&amp;quot;select pkid, clientname from clients order by clientname&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ds = crs.getDataSet()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # Create the lists
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; names = [rec[&amp;quot;clientname&amp;quot;] for rec in ds]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; keys = [rec[&amp;quot;pkid&amp;quot;] for rec in ds]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # Add the entry for an undefined (new) client
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; names.insert(0, &amp;quot;-Please Select a Client-&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; keys.insert(0, 0)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (names, keys)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; def validateRecord(self):
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ret = &amp;quot;&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # Make sure that the user selected a valid client
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if self.Record.clientfk == 0:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ret = &amp;quot;You must select a valid client&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return ret
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; def beforeSave(self):
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bizobj = self.getBizobj(self.dataSourceParameter)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# If the bizobj hasn't changed, we want to notify the user
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# and abort the save process, so that the new record is
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# not added afterwards.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if not bizobj.isChanged():
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return &amp;quot;No changes have been made; cannot save.&amp;quot;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; def afterSave(self):
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # This will only get called if the save succeeds
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.new()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.serviceDate.setFocus()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; def save(self):
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; err = self.beforeSave()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if err:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # Display the error
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# do the typical save() stuff
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.afterSave()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-users-f17347.html&quot; embed=&quot;fixTarget[17347]&quot; target=&quot;_top&quot; &gt;dabo-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NameError%3A-global-name-%27datetime%27-is-not-defined-tp26559364p26559364.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26557990</id>
	<title>Re: Grid Column - DatType = 'list' - Valuemode = 'key'</title>
	<published>2009-11-28T15:27:16Z</published>
	<updated>2009-11-28T15:27:16Z</updated>
	<author>
		<name>jfabiani</name>
	</author>
	<content type="html">On Saturday 28 November 2009 02:31:19 pm Mike wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; In a word is it possible?
&lt;br&gt;&amp;gt; I have used the Datatype 'list' in a grid with success but would really
&lt;br&gt;&amp;gt; like a key value to be placed in the data field not the displayed string
&lt;br&gt;&amp;gt; ie a key look up process
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I notice that in dGrid.py dColumn I can specify custom Editor and Render
&lt;br&gt;&amp;gt; classes ( not sure how ) and that there already exists a class
&lt;br&gt;&amp;gt; GridListEditor with the value mode set to 'string' (this class is not
&lt;br&gt;&amp;gt; used at present)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1. How can I set up a new class based on GridListEditor where I set the
&lt;br&gt;&amp;gt; Valuemode = 'key', and also load up the key values.
&lt;br&gt;&amp;gt; I haven't set up derived classes before so I'm unsure of how to approach
&lt;br&gt;&amp;gt; this
&lt;br&gt;&amp;gt; 2. having set up a class is the CustmoEditorClass property a string or
&lt;br&gt;&amp;gt; an object instance
&lt;br&gt;&amp;gt; 3. Do I still set the DataType to list
&lt;br&gt;&amp;gt; 4. Am I right in assuming that the renderclass dose not require
&lt;br&gt;&amp;gt; modification ie it will be wx.grid.GridCellStringRenderer - the same as
&lt;br&gt;&amp;gt; the list DataType
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt; Mike Ayers
&lt;/div&gt;&lt;br&gt;The best example of creating a custom list editor would be dGrid. &amp;nbsp;Look at the 
&lt;br&gt;test code. &amp;nbsp; All the normal settings apply (to my knowledge) - so just set 
&lt;br&gt;the DataSource and DataField and allow Dabo to handle the data type. 
&lt;br&gt;&lt;br&gt;Johnf
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Post Messages to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26557990&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dabo-users@...&lt;/a&gt;
&lt;br&gt;Subscription Maintenance: &lt;a href=&quot;http://leafe.com/mailman/listinfo/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/mailman/listinfo/dabo-users&lt;/a&gt;&lt;br&gt;Searchable Archives: &lt;a href=&quot;http://leafe.com/archives/search/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/search/dabo-users&lt;/a&gt;&lt;br&gt;This message: &lt;a href=&quot;http://leafe.com/archives/byMID/200911281527.16372.jfabiani@yolo.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/byMID/200911281527.16372.jfabiani@...&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-users-f17347.html&quot; embed=&quot;fixTarget[17347]&quot; target=&quot;_top&quot; &gt;dabo-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Grid-Column---DatType-%3D-%27list%27---Valuemode-%3D-%27key%27-tp26557552p26557990.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26557552</id>
	<title>Grid Column - DatType = 'list' - Valuemode = 'key'</title>
	<published>2009-11-28T14:31:19Z</published>
	<updated>2009-11-28T14:31:19Z</updated>
	<author>
		<name>Mike-688</name>
	</author>
	<content type="html">In a word is it possible?
&lt;br&gt;I have used the Datatype 'list' in a grid with success but would really
&lt;br&gt;like a key value to be placed in the data field not the displayed string
&lt;br&gt;ie a key look up process
&lt;br&gt;&lt;br&gt;I notice that in dGrid.py dColumn I can specify custom Editor and Render
&lt;br&gt;classes ( not sure how ) and that there already exists a class
&lt;br&gt;GridListEditor with the value mode set to 'string' (this class is not
&lt;br&gt;used at present)
&lt;br&gt;&lt;br&gt;1. How can I set up a new class based on GridListEditor where I set the
&lt;br&gt;Valuemode = 'key', and also load up the key values. 
&lt;br&gt;I haven't set up derived classes before so I'm unsure of how to approach
&lt;br&gt;this
&lt;br&gt;2. having set up a class is the CustmoEditorClass property a string or
&lt;br&gt;an object instance
&lt;br&gt;3. Do I still set the DataType to list
&lt;br&gt;4. Am I right in assuming that the renderclass dose not require
&lt;br&gt;modification ie it will be wx.grid.GridCellStringRenderer - the same as
&lt;br&gt;the list DataType 
&lt;br&gt;&lt;br&gt;Thanks 
&lt;br&gt;Mike Ayers 
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Post Messages to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26557552&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dabo-users@...&lt;/a&gt;
&lt;br&gt;Subscription Maintenance: &lt;a href=&quot;http://leafe.com/mailman/listinfo/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/mailman/listinfo/dabo-users&lt;/a&gt;&lt;br&gt;Searchable Archives: &lt;a href=&quot;http://leafe.com/archives/search/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/search/dabo-users&lt;/a&gt;&lt;br&gt;This message: &lt;a href=&quot;http://leafe.com/archives/byMID/1259447479.15483.18.camel@linux&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/byMID/1259447479.15483.18.camel@linux&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-users-f17347.html&quot; embed=&quot;fixTarget[17347]&quot; target=&quot;_top&quot; &gt;dabo-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Grid-Column---DatType-%3D-%27list%27---Valuemode-%3D-%27key%27-tp26557552p26557552.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26554967</id>
	<title>dabo Commit 5535</title>
	<published>2009-11-28T09:13:56Z</published>
	<updated>2009-11-28T09:13:56Z</updated>
	<author>
		<name>Nate Lowrie</name>
	</author>
	<content type="html">dabo Commit
&lt;br&gt;Revision 5535
&lt;br&gt;Date: 2009-11-28 09:13:55 -0800 (Sat, 28 Nov 2009)
&lt;br&gt;Author: Nate
&lt;br&gt;Trac: &lt;a href=&quot;http://trac.dabodev.com/changeset/5535&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.dabodev.com/changeset/5535&lt;/a&gt;&lt;br&gt;&lt;br&gt;Changed:
&lt;br&gt;U &amp;nbsp; trunk/dabo/dApp.py
&lt;br&gt;&lt;br&gt;Log:
&lt;br&gt;Added a lib directory into the standard Dabo structure. &amp;nbsp;I found myself needing a lib directory for application specific modules I needed.
&lt;br&gt;&lt;br&gt;Diff:
&lt;br&gt;Modified: trunk/dabo/dApp.py
&lt;br&gt;===================================================================
&lt;br&gt;--- trunk/dabo/dApp.py	2009-11-26 02:36:42 UTC (rev 5534)
&lt;br&gt;+++ trunk/dabo/dApp.py	2009-11-28 17:13:55 UTC (rev 5535)
&lt;br&gt;@@ -940,7 +940,7 @@
&lt;br&gt;&amp;nbsp;		currsyspath = sys.path
&lt;br&gt;&amp;nbsp;		if not currdir in sys.path:
&lt;br&gt;&amp;nbsp;			sys.path.insert(0, currdir)
&lt;br&gt;-		for dd in (&amp;quot;biz&amp;quot;, &amp;quot;db&amp;quot;, &amp;quot;ui&amp;quot;, &amp;quot;resources&amp;quot;, &amp;quot;reports&amp;quot;):
&lt;br&gt;+		for dd in (&amp;quot;biz&amp;quot;, &amp;quot;db&amp;quot;, &amp;quot;ui&amp;quot;, &amp;quot;lib&amp;quot;, &amp;quot;resources&amp;quot;, &amp;quot;reports&amp;quot;):
&lt;br&gt;&amp;nbsp;			currmod = getattr(self, dd, None)
&lt;br&gt;&amp;nbsp;			if sys.version.split()[0].split(&amp;quot;.&amp;quot;) &amp;gt;= [&amp;quot;2&amp;quot;, &amp;quot;5&amp;quot;]:
&lt;br&gt;&amp;nbsp;				try:
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Post Messages to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26554967&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dabo-dev@...&lt;/a&gt;
&lt;br&gt;Subscription Maintenance: &lt;a href=&quot;http://leafe.com/mailman/listinfo/dabo-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/mailman/listinfo/dabo-dev&lt;/a&gt;&lt;br&gt;Searchable Archives: &lt;a href=&quot;http://leafe.com/archives/search/dabo-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/search/dabo-dev&lt;/a&gt;&lt;br&gt;This message: &lt;a href=&quot;http://leafe.com/archives/byMID/20091128171356.55E0D3188D5@mail.paulmcnett.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/byMID/20091128171356.55E0D3188D5@...&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-dev-f17348.html&quot; embed=&quot;fixTarget[17348]&quot; target=&quot;_top&quot; &gt;dabo-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/dabo-Commit-5535-tp26554967p26554967.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26545430</id>
	<title>How doyou Create Hours form step by step just open Designer????</title>
	<published>2009-11-27T20:50:00Z</published>
	<updated>2009-11-27T20:50:00Z</updated>
	<author>
		<name>jvandal</name>
	</author>
	<content type="html">I &amp;nbsp;am in create Hours Form, page 17, in step by step. It says &amp;quot;To Start open up Class designer&amp;quot;.Do you open the ClientForm or &amp;nbsp;start with a new form?
&lt;br&gt;How is the pageframe relate to the Clients form?. &lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-users-f17347.html&quot; embed=&quot;fixTarget[17347]&quot; target=&quot;_top&quot; &gt;dabo-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-doyou-Create-Hours-form-step-by-step-just-open-Designer-----tp26545430p26545430.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26545383</id>
	<title>using file\save  in classDesigner.py</title>
	<published>2009-11-27T12:57:05Z</published>
	<updated>2009-11-27T12:57:05Z</updated>
	<author>
		<name>jvandal</name>
	</author>
	<content type="html">&lt;br&gt;I have created hours in dabo-0.9.21-win\dabo\projects using quickstart. I then move to subfolder hours. I then run Classdesigner c:\dabo-0.9.2-win\dabo\ide. I have created forms using ClassDesigner.py following &amp;nbsp;in Step by step tutorial and I then clicked from the menu File\Save. Where does it save or ? &amp;nbsp;I thought that it would be forced to save the form in the folder hours that I set up in my path.
&lt;br&gt;I &amp;nbsp;have misplaced my forms several times. 
&lt;br&gt;when I get to the Hours pages where do they get saved? Iam thinking I am creating HoursForm.cdxml and it should be in ui folder along with ClientForm.cdxml (where I lost my ClientForm with out the buttons. Coulld I have not savedit but run the ClientForms and thought it was saved?
&lt;br&gt;&amp;nbsp;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-users-f17347.html&quot; embed=&quot;fixTarget[17347]&quot; target=&quot;_top&quot; &gt;dabo-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/using-file%5Csave--in-classDesigner.py-tp26545383p26545383.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26536913</id>
	<title>Re: New user: Step-by-step tutorial trouble...</title>
	<published>2009-11-26T17:31:29Z</published>
	<updated>2009-11-26T17:31:29Z</updated>
	<author>
		<name>Greg Skelhorn</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Could you send me your cdxml file? Apparently 'row' and/or 'col'
&lt;br&gt;&amp;gt; are not integers at this point; those values come straight from the
&lt;br&gt;&amp;gt; cdxml file.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- Ed Leafe
&lt;br&gt;&amp;gt;
&lt;br&gt;Hi Ed,
&lt;br&gt;&lt;br&gt;I sent the file to you. Then I started wondering if you meant to send it
&lt;br&gt;to the list or via an issue report in the bug trac? Did you receive the
&lt;br&gt;file?
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Greg
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Post Messages to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26536913&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dabo-users@...&lt;/a&gt;
&lt;br&gt;Subscription Maintenance: &lt;a href=&quot;http://leafe.com/mailman/listinfo/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/mailman/listinfo/dabo-users&lt;/a&gt;&lt;br&gt;Searchable Archives: &lt;a href=&quot;http://leafe.com/archives/search/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/search/dabo-users&lt;/a&gt;&lt;br&gt;This message: &lt;a href=&quot;http://leafe.com/archives/byMID/4B0F2BF1.5090504@eastlink.ca&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/byMID/4B0F2BF1.5090504@...&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-users-f17347.html&quot; embed=&quot;fixTarget[17347]&quot; target=&quot;_top&quot; &gt;dabo-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/New-user%3A-Step-by-step-tutorial-trouble...-tp26505715p26536913.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26524062</id>
	<title>Trac Ticket Change Notification</title>
	<published>2009-11-25T20:00:02Z</published>
	<updated>2009-11-25T20:00:02Z</updated>
	<author>
		<name>Dabo Trac</name>
	</author>
	<content type="html">The following ticket(s) have been added or changed recently. To comment on 
&lt;br&gt;any of them, DO NOT REPLY to this message but instead click on the link to 
&lt;br&gt;bring you to the trac ticket page.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;1295 : &lt;a href=&quot;http://trac.dabodev.com/ticket/1295&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://trac.dabodev.com/ticket/1295&lt;/a&gt;&amp;nbsp;: TallPaul : assigned
&lt;br&gt;ClassDesigner failing silently when following step-by-step instructions.
&lt;br&gt;&amp;nbsp;-&amp;gt; comment(s) added by gskelhorn.
&lt;br&gt;&lt;br&gt;As lots of time can go by between ticket submission and resolution, it is 
&lt;br&gt;important that we keep the trac system updated with any and all feedback.
&lt;br&gt;&lt;br&gt;Thanks!
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Post Messages to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524062&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dabo-dev@...&lt;/a&gt;
&lt;br&gt;Subscription Maintenance: &lt;a href=&quot;http://leafe.com/mailman/listinfo/dabo-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/mailman/listinfo/dabo-dev&lt;/a&gt;&lt;br&gt;Searchable Archives: &lt;a href=&quot;http://leafe.com/archives/search/dabo-dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/search/dabo-dev&lt;/a&gt;&lt;br&gt;This message: &lt;a href=&quot;http://leafe.com/archives/byMID/20091126040002.405D12056F3@mail.paulmcnett.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/byMID/20091126040002.405D12056F3@...&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-dev-f17348.html&quot; embed=&quot;fixTarget[17348]&quot; target=&quot;_top&quot; &gt;dabo-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Trac-Ticket-Change-Notification-tp26524062p26524062.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26523602</id>
	<title>Re: Cannot remove rows from grid sizer</title>
	<published>2009-11-25T18:38:42Z</published>
	<updated>2009-11-25T18:38:42Z</updated>
	<author>
		<name>Ed Leafe</name>
	</author>
	<content type="html">On Nov 25, 2009, at 6:15 PM, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26523602&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;altanis@...&lt;/a&gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I have a grid sizer, 2 columns by 25 rows, and I have merged some of &amp;nbsp;
&lt;br&gt;&amp;gt; the
&lt;br&gt;&amp;gt; rows, so I want to remove a couple of them. Thus, I delete some &amp;nbsp;
&lt;br&gt;&amp;gt; content,
&lt;br&gt;&amp;gt; and move the items accordungly, so that I am left with 3 emtpy rows &amp;nbsp;
&lt;br&gt;&amp;gt; in the
&lt;br&gt;&amp;gt; bottom of the sizer.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Then, I find the sizer in the document tree, and try to change its row
&lt;br&gt;&amp;gt; count from 25 to 22 (I even tried 24, with the same results). There &amp;nbsp;
&lt;br&gt;&amp;gt; is no
&lt;br&gt;&amp;gt; change in the sizer's rows, and after I save, I can't load my cdxml &amp;nbsp;
&lt;br&gt;&amp;gt; file
&lt;br&gt;&amp;gt; anymore. I have to revert to a previous version for it to work.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is there a way for me to delete sizer rows without this problem?
&lt;/div&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I looked into this issue, and found that there were some references &amp;nbsp;
&lt;br&gt;in the removeRow() method of dGridSizer that had never been updated &amp;nbsp;
&lt;br&gt;when the underlying properties had been changed.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I've just posted a fix; are you using Subversion or Web Update to &amp;nbsp;
&lt;br&gt;stay current?
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- Ed Leafe
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Post Messages to: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26523602&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Dabo-users@...&lt;/a&gt;
&lt;br&gt;Subscription Maintenance: &lt;a href=&quot;http://leafe.com/mailman/listinfo/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/mailman/listinfo/dabo-users&lt;/a&gt;&lt;br&gt;Searchable Archives: &lt;a href=&quot;http://leafe.com/archives/search/dabo-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/search/dabo-users&lt;/a&gt;&lt;br&gt;This message: &lt;a href=&quot;http://leafe.com/archives/byMID/1422840E-1E99-4487-BC78-A2367132AC6E@leafe.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://leafe.com/archives/byMID/1422840E-1E99-4487-BC78-A2367132AC6E@...&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/dabo-users-f17347.html&quot; embed=&quot;fixTarget[17347]&quot; target=&quot;_top&quot; &gt;dabo-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Cannot-remove-rows-from-grid-sizer-tp26522607p26523602.html" />
</entry>

</feed>
