[dabo-users] RegID problem

2008-08-25 Thread Sibylle Koczian
Hello,

in the afterInit method of my form I put a dGrid in with

 testLog = dabo.ui.dEditBox(self, RegID=testlogID, ReadOnly=True)
 testLog.Value = SQLite Feldtest
 panel.Sizer.append1x(testLog)

and in the afterRequery method I want to put additional text in:

 def afterRequery(self):
self.testlogID.Value += u\nRequery ausgeführt.

If I try to run the application I get:

Traceback (most recent call last):
  File sqlite_feldtest.py, line 49, in module
app.start()
  File /usr/lib/python2.5/site-packages/dabo/dApp.py, line 314, in start
self.setup()
  File /usr/lib/python2.5/site-packages/dabo/dApp.py, line 279, in setup
self.initUIApp()
  File /usr/lib/python2.5/site-packages/dabo/dApp.py, line 306, in initUIApp
self.uiApp.setup()
  File /usr/lib/python2.5/site-packages/dabo/ui/uiwx/uiApp.py, line 279, in 
setup
frm = self.dApp.MainForm = mfc()
  File /usr/lib/python2.5/site-packages/dabo/ui/uiwx/dForm.py, line 895, in 
__init__
BaseForm.__init__(self, preClass, parent, properties, attProperties, 
*args, **kwargs)
  File /usr/lib/python2.5/site-packages/dabo/ui/uiwx/dForm.py, line 44, in 
__init__
fm.dFormMixin.__init__(self, preClass, parent, properties, attProperties, 
*args, **kwargs)
  File /usr/lib/python2.5/site-packages/dabo/ui/uiwx/dFormMixin.py, line 72, 
in __init__
attProperties, *args, **kwargs)
  File /usr/lib/python2.5/site-packages/dabo/ui/uiwx/dPemMixin.py, line 185, 
in __init__
self._afterInit()
  File /usr/lib/python2.5/site-packages/dabo/ui/uiwx/dForm.py, line 70, in 
_afterInit
super(BaseForm, self)._afterInit()
  File /usr/lib/python2.5/site-packages/dabo/ui/uiwx/dFormMixin.py, line 
128, in _afterInit
self.createBizobjs()
  File sqlite_feldtest.py, line 41, in createBizobjs
self.requery()
  File /usr/lib/python2.5/site-packages/dabo/ui/uiwx/dForm.py, line 499, in 
requery
self.afterRequery()
  File sqlite_feldtest.py, line 44, in afterRequery
self.testlogID.Value += u\nRequery ausgeführt.
AttributeError: 'FrmTest' object has no attribute 'testlogID'

FrmTest is the name of the main form. Why this error? I thought this was the 
way to use the RegID property? What's wrong here?

Sibylle
-- 
Dr. Sibylle Koczian


___
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]


Re: [dabo-users] Probable revision mismatch (ClassDe signer and dabo module )

2008-08-25 Thread Sibylle Koczian
Am Montag, 25. August 2008 13:19:39 schrieb Uwe Grauer:
 Sibylle Koczian wrote:
  I suppose I need a development release for the visual tools, where can I
  find it? On the Website it's not mentioned.
 

 Note that i use the same directory naming as in my last post.

 You would have to checkout from http://svn.dabodev.com/dabo/trunk/
 instead of http://svn.dabodev.com/dabo/trunk/dabo and to
 change your link in python site-packages pointing to ~/src/dabo/dabo.
 ~/src/dabo/ide contains the ide tools.


Thank you. Now I can try again to get something to run.

BTW the Editor doesn't seem to indent anything automatically any more. Why? 

Sibylle

-- 
Dr. Sibylle Koczian
Fasanenstraße 12
82293 Mittelstetten


___
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]


Re: [dabo-users] Probable revision mismatch (ClassDesigner and dabo module )

2008-08-25 Thread Nate Lowrie
On Mon, Aug 25, 2008 at 8:03 AM, Sibylle Koczian
[EMAIL PROTECTED] wrote:
 BTW the Editor doesn't seem to indent anything automatically any more. Why?

Confirmed.  It's in dEditor.py.  I will look into it.

Nate L.


___
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]


Re: [dabo-users] RegID problem

2008-08-25 Thread Uwe Grauer
Sibylle Koczian wrote:
 
  def afterRequery(self):
   self.testlogID.Value += u\nRequery ausgeführt.

BTW, if you need this for logging only, use:
print Requery ausgeführt.

This will print to the command line window if you start your app from a
command line.

Uwe


___
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]


[dabo-users] Suppressing Requerying dataset message and more

2008-08-25 Thread Steve Rose
I am working on an application which has a module that repeatedly queries
and counts records in a scan of a table.  In the process there is lots of
flashing in a child grid as it is updated, in addition to the message
Please wait... Requerying dataset. The entire processing takes only 1.5
seconds but looks annoying on screen.  So, two questions.

1.  Is there anyway to tell Dabo not to update a grid or the whole ui until
all the processing is complete?

Something like:

self.update( False )

self.doAllProcessing()

self.update( True )

2.  Can the Requerying dataset message be suppressed?

Thanks

Steve Rose


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

___
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]


Re: [dabo-users] Suppressing Requerying dataset message and more

2008-08-25 Thread Nate Lowrie
On Mon, Aug 25, 2008 at 4:31 PM, Steve Rose [EMAIL PROTECTED] wrote:
 I am working on an application which has a module that repeatedly queries
 and counts records in a scan of a table.  In the process there is lots of
 flashing in a child grid as it is updated, in addition to the message
 Please wait... Requerying dataset. The entire processing takes only 1.5
 seconds but looks annoying on screen.  So, two questions.

 1.  Is there anyway to tell Dabo not to update a grid or the whole ui until
 all the processing is complete?

 Something like:

 self.update( False )

 self.doAllProcessing()

 self.update( True )

 2.  Can the Requerying dataset message be suppressed?

Try this (assume self is the Form reference):

self.Freeze()
self.doAllProcessing() #requery happens here
self.Thaw()
self.update()

Nate L.


___
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]


Re: [dabo-users] Suppressing Requerying dataset message and more

2008-08-25 Thread Ed Leafe
On Aug 25, 2008, at 5:31 PM, Steve Rose wrote:

 1.  Is there anyway to tell Dabo not to update a grid or the whole  
 ui until
 all the processing is complete?

 Something like:

 self.update( False )

 self.doAllProcessing()

 self.update( True )

There are two methods that can be used for any Dabo UI object:  
lockDisplay() and unlockDisplay(). Typically, you would have the form  
do this to prevent any interim redrawing, but you can call it on a  
single control if you wish. Be sure to always call unlockDisplay() or  
you will end up with a very frustrated user!

 2.  Can the Requerying dataset message be suppressed?


Currently, no. That's an oversight that would be simple enough to  
fix. I'll try to post something tonight.

-- Ed Leafe





___
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]