Re: [dabo-users] Leaving dabo/Python (was: Tab-Index of UI-Objects?)

2017-01-13 Thread Henning Hraban Ramm
> As far as NodeJS - well I like the fact that it is well supported by the 
> community - but so is Django.  I don't believe NodeJS's asynchronous I/O is 
> faster than Django when comes to serving data - at least not for small 
> websites.  So I wouldn't leave Django for NodeJS.

Django is good for many projects, and I guess I’ll continue using it for 
websites, since my workflow is comfortable enough.

But for "desktopy" web apps, where most of the coding is in JS on the Client UI 
anyway, Meteor/Angular/React seems to be the better framework. I’m still at the 
beginning of my node.js journey, but I hit too many blocks while trying to do 
my current project in Django. And using dabo, i.e. installing an app on every 
user’s computer, would be a promise for a support desaster.
I used dabo only ever as a convenient UI framework, never really needed the 
3-tier setup. I could stay on Python 2.7, but I found the availability of 
dabo’s documentation too unreliable.

Greetlings, Hraban
___
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/4181d4f8-1fc5-42d3-a800-5cc4dcddb...@fiee.net


Re: [dabo-users] Tab-Index of UI-Objects?

2017-01-13 Thread Henning Hraban Ramm
Am 2017-01-13 um 17:01 schrieb john :

> To be honest I believe I will soon will be moving on to Electron (uses 
> html,css,JavaScript, Chrome, NodeJS to create the ui for a desktop app).

I hear you – for web apps I’m leaving my beloved Python/Django behind for 
Meteor/Angular (i.e. also node.js).

Greetlings, Hraban
___
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/7745db9c-617a-43ba-b85c-7e46d832a...@fiee.net


Re: [dabo-users] AppWizard not working on Windows 7: special characters like ñ, ó, é, etc.

2016-12-27 Thread Henning Hraban Ramm
Am 2016-12-27 um 05:21 schrieb William López Miranda :

> The special characters of the Spanish language:
> 
> First of all I want to thank Ed Leaf and Paul McNett for Frame Dabo.
> I come from programming in Visual Foxpro and I have looked for an option to 
> program that can complement me, so I found Dabo.
> 
> I had the following problem:
> 
> - Names of columns in tables with special characters like ñ, ó, é, etc. 
> And could not define them in Pytho with Dabo.
> 
> But I found the solution and I hope that if there are others like me with the 
> same problem, either with Spanish or another set of characters, I can serve.
> 
> I found it in a PDF of Ángel Luis García García (angellui...@gmail.com): 
> 
> "Introduction to Python", this is:
> 
> Create a .py file, , and name it:
> "Sitecustomize.py"
> 
> Import sys
> Sys.setdefaultencoding ('iso-8859-1')
> 
> And put it in: C: \ Python27 \ Lib \ site-packages
> 
> That is all, I hope it is useful, because with this the problem is 
> solved, do not modify the tables, much less Dabo.

This is most probably unneccessary if not utter nonsense - with Latin-1 (ISO 
8859-1) you’ll get problems next time if you need Eastern European (Latin, 
Greek or Cyrillic) characters. It doesn’t even contain the € sign (you might 
use 8859-15).
Did you try 'utf-8'?

Or did you just forget that Python < 3 needs the unicode marker in front of 
strings?
like this: u'fiëé visuëlle'
And that you need to define the encoding of your Python files in a comment in 
the first few lines?
like this: # -*- coding: utf-8 -*-

(I’m currently not using dabo any more, so I didn’t try if that’s enough.)

Greetlings, Hraban
---
http://www.fiee.net
GPG Key ID 1C9B22FD




___
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/0e1d0aa5-589e-4085-81c9-78ca0183c...@fiee.net


[dabo-users] API docs

2015-01-27 Thread Henning Hraban Ramm
Hi Paul  Ed,

may I remind you of setting up the API docs again?
I’d really like to continue working with dabo.

Or can I access the docs somehow else?

Greetlings, Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)







___
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/96b37498-d43b-4bf0-a288-41484be38...@fiee.net


Re: [dabo-users] API docs

2015-01-27 Thread Henning Hraban Ramm
Am 2015-01-27 um 20:26 schrieb Ed Leafe e...@leafe.com:

 may I remind you of setting up the API docs again?
 I’d really like to continue working with dabo.
 
 Or can I access the docs somehow else?
 
 I';ve got them sort of working again, but haven't finished the part that
 uploads them to the website. You can view the work in progress at:
 
 http://daboserver.com/docs/


Thank you very much!


Greetlings, Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)







___
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/191838e8-5c52-438d-af91-3531b02a0...@fiee.net


Re: [dabo-users] syntax error in dbMsSQL?

2012-08-05 Thread Henning Hraban Ramm
Am 2012-08-03 um 14:57 schrieb Ed Leafe:

 On Aug 2, 2012, at 3:42 PM, Henning Hraban Ramm wrote:

 python2.6/site-packages/dabo-trunk/dabo/db/dbMsSQL.py, line 61
return tuple([{col: row[col] for col in row if type(col) != int}
   ^
 SyntaxError: invalid syntax

   Yes, that looks like the closing brace for the dict is incorrect.  
 Can you try changing the lines to:

 61 return tuple([{col: row[col]} for col in row  
 if type(col) != int
 62 for row in super(ConCursor,  
 self).fetchall()])

 ...and let me know if that works?

Thank you, that works. (I.e. I didn’t check if it works with MS SQL,  
but it’s valid Python again.)

Sorry that I didn’t bother to fix/research it myself, I was in a hurry.

Greetlings, Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)







___
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/53775550-96d7-4b64-a34a-ec16a0eb0...@fiee.net


Re: [dabo-users] syntax error in dbMsSQL?

2012-08-05 Thread Henning Hraban Ramm

Am 2012-08-05 um 17:03 schrieb Ed Leafe:

 On Aug 5, 2012, at 8:58 AM, Henning Hraban Ramm wrote:

 Thank you, that works. (I.e. I didn’t check if it works with MS SQL,
 but it’s valid Python again.)

 Sorry that I didn’t bother to fix/research it myself, I was in a  
 hurry.

   Understood. I'm going to commit it to fix the syntax error, but  
 please check the results to make sure that it works. (I don't have  
 access to MS SQL).

Me too. I don’t care about MS SQL at all, it’s just that py2app tried  
to compile everything in my dabo app.




Greetlings, Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)







___
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/7886ccf2-8003-4267-9dd8-95d950546...@fiee.net


[dabo-users] syntax error in dbMsSQL?

2012-08-02 Thread Henning Hraban Ramm
Using py2app with Python 2.6 and current dabo trunk I get a syntax  
error in dbMsSQL (that I don’t need at all):

   File /Library/Frameworks/Python.framework/Versions/2.6/lib/ 
python2.6/site-packages/modulegraph/modulegraph.py, line 709, in  
find_head_package
 q = self.import_module(head, qname, parent)
   File /Library/Frameworks/Python.framework/Versions/2.6/lib/ 
python2.6/site-packages/modulegraph/modulegraph.py, line 797, in  
import_module
 m = self.load_module(fqname, fp, pathname, stuff)
   File /Library/Frameworks/Python.framework/Versions/2.6/lib/ 
python2.6/site-packages/modulegraph/modulegraph.py, line 820, in  
load_module
 co = compile(contents, pathname, 'exec', 0, True)
   File /Library/Frameworks/Python.framework/Versions/2.6/lib/ 
python2.6/site-packages/dabo-trunk/dabo/db/dbMsSQL.py, line 61
 return tuple([{col: row[col] for col in row if type(col) != int}
^
SyntaxError: invalid syntax



Greetlings, Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)







___
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/c808c90f-3c9b-4de8-8476-ba941ecf9...@fiee.net


Re: [dabo-users] new user

2012-06-28 Thread Henning Hraban Ramm
2012/6/27 sharon abadom sharonnext4r...@yahoo.com:
 Hi, I am intending to create a desktop application as volunteer work for a 
 free clinic in Africa, and since there is no internet over there, I decided 
 to search for a tool I can use. I stumbled on this tool and I have some 
 questions to ask before I carry on with the project please.

Welcome!

 QUESTION: Can I create an application that has user authentication(user 
 registration just like any web app) and store patient data with dabo (because 
 we would be dealing with health records)?

Without network connection, user *registration* like any web app
makes no sense.
Of course you can build an app with user authentication, hooking into
dabo’s own mechanism or building your own.

2, can  I have access to tutorials that can enable me reach this goal (videos 
if possible but any would do)?

Did you browse dabo’s homepage at all? There’s a big fat link to
Documentation: http://dabodev.com/documentation


Greetlings, Hraban
(not one of the most active users here, but since noone else answered sofar...)
___
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/capm68zjyjwgkbkpgkqktjiiymuza+grgtgubmtxbxbh_cfv...@mail.gmail.com


Re: [dabo-users] Reenv: Problem in Dabo demo

2011-05-20 Thread Henning Hraban Ramm

Am 2011-05-20 um 09:06 schrieb melkarth0:

 Ok, thank you, Hraban. I've already checked that dTextBox works fine  
 outside the dabo demo; I'm worried about it no more. I'll try to  
 play with your solution, but my priority now is to keep learning Dabo.

But since you're learning Python as you go, it might be a good example  
to keep attention to Python's quirks like ASCII vs. Unicode strings.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/143638ed-fef9-4cfd-a5af-2331e95c7...@fiee.net


Re: [dabo-users] Problem in Dabo demo

2011-05-19 Thread Henning Hraban Ramm
Am 2011-05-19 um 00:21 schrieb melka...@terra.es:

 Hi!  I'm a total novice to Dabo and (almost) to Python.

Welcome!

 UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position  
 0: ordinal not in range(128)

As Ed said, maybe it’s already fixed, but it might be a problem of an  
ASCII-only wxPython.
You absolutely need an Unicode-enabled wxPython!

 I am trying to localize my apps in spanish, so it's not a lot of  
 change, but the range of chars is 256.
 In my Python novice code I always write this line: # -*- coding:  
 latin-1 -*- (I don't know if it helps).

I would never use 8-bit encodings any more. Better use UTF-8 (or plain  
7-bit ASCII).
But anyway, the encoding line must fit your real text encoding - you  
should be able to set that in your editor.

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/caba6149-3009-48ec-ad4d-7e9d5d88a...@fiee.net


Re: [dabo-users] Reenv: Problem in Dabo demo

2011-05-19 Thread Henning Hraban Ramm
Am 2011-05-19 um 15:48 schrieb melkarth0:

 As I said to Hraban, I have tested my programs with UTF-8 and they  
 also worked ok, I will use this coding in them from now on, instead  
 of latin-1.
 I'm using an unicode wxPython, and dEditBox runs fine. I think it  
 must be something inside dTextBox.
 When I enter this lowercase letter: http://en.wikipedia.org/wiki/%C3%81 
  , I get:

 File C:\Python25\DABO\demo\samples/dTextBox.py, line 56, in  
 onTextKeyChar
cd, ch = evt.keyCode, evt.keyChar
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position  
 0:
 ordinal not in range(128)

 By the way, I'm only using DaboDemo.py now, not mixing with other  
 python
 code.

Ok, sorry I didn’t test yesterday - I can confirm the error in my  
environment (latest SVN):
Platform: Mac
Python Version: 2.6.4 on darwin
Dabo Version: Version 0.9.3; Revision 6589M
UI Version: 2.8.11.0 on wxMac

Just making the strings in the handlers unicode (Melkart: enter a 'u'  
in front of the quotes) fixes the problem.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/92685bbb-d758-4582-bdbf-f0f9cdc62...@gmail.com


Re: [dabo-users] cascading dropdown controls selections

2011-04-07 Thread Henning Hraban Ramm

Am 2011-04-07 um 16:22 schrieb John Fabiani:

 Hi,
 I have always had issues with dropdowns selection determining the a  
 second
 control.  Now I have need to have fours dropdowns and each of the  
 dropdowns
 data (or Choices) will depend on the preceding dropdown selection.   
 Does
 anyone have a suggestion on how best to deal with my requirement?

I reload the other dropdowns’ choices after a Hit on one, it all  
happens in the onHit handler.
Perhaps I don’t undersa´tand your question?


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/21ea9dc7-07c6-4c4e-b1eb-63b7a34cf...@fiee.net


Re: [dabo-users] cascading dropdown controls selections

2011-04-07 Thread Henning Hraban Ramm
Am 2011-04-07 um 17:06 schrieb John Fabiani:
 No that's right - I will be using OnHit.  But the problem is not as  
 straight
 forward as you suggest.  If I set the first dropdown the second,  
 third, and
 forth must match.  If I set the second the third and forth data  
 choices must
 match what is in 1 and 2  - and so on.  If I set all of them and  
 then change
 the first then all the rest must change.  To make matters worse none  
 of the
 data items come from the same tables.  Each dropdown filters the data
 available for the next.  And remember I want this to work with Dabo's
 DataSource and DataFields when not entering data into a new record.

 I have considered creating a view and then actually filter the data as
 required since the records are related but then I could have several  
 thousands
 of records in memory.  So I have discounted that solution.

 I have considered creating a class that would provide a dynamic  
 property that
 could be set to retrieve the data (choices and keys).  Similar to  
 the ones Ed
 and Paul have created for other controls.  Not sure how much work  
 this would
 be?

 I have considered creating a single method that all dropdowns call  
 and control
 the data in the method.  I would be able to read the values (keys)  
 from each
 of the controls and do what is required to reset the choices for  
 each of the
 controls.  This might be the way to go.

 But I looking for suggestions - from the list.  I don't want to  
 start a lot
 coding only to later discover I'm traveling along the wrong path.

The other suggestion of disabling not-yet-set dropdowns is probably  
good.

You could use events/signals to update all DDs in need.

Most easy is probably to update DD2 from DD1.onHit, update DD3 from  
DD2.onHit etc.
(only the next one, not more, except if there’s a high probability  
that the user wants a default value)
and perhaps reset all following DDs (in case someone changes the  
selection of DD1 after setting DD3).

In my similar case, I try to keep the selection of following DDs,  
since some selection-cascades are very similar, and it’s annoying to  
choose the same over and over if you’re exploring possibilities.

But in my case I don’t use Dabo’s bizobjs, but have read all the data  
from an http/JSON call and keep it in memory for the runtime (it’s not  
so much, only lists of sections and subsections for several magazines).

Sorry for being of no big help.

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/ba53ae8c-5d6f-4044-a98f-28d0c8d3a...@fiee.net


Re: [dabo-users] Sphinx doc - gallery and control appearance

2011-03-30 Thread Henning Hraban Ramm

Am 2011-03-30 um 10:42 schrieb Werner F. Bruhin:

 I updated the web with the new images.

 Some samples:
 http://thewinecellarbook.com/daboDocTestAlt/dabo.ui.uiwx.dGrid.dGrid.html
 http://thewinecellarbook.com/daboDocTestAlt/dabo.ui.uiwx.dCalendar.dCalendar.html

 I haven't done anything about the Gallery page as I can't make up  
 my mind:
 Option 1: show platform specific images next to each other, which  
 makes
 this page pretty large
 Option 2: have a page per platform

 What would others prefer?

I don’t care.

 Currently the following images are missing:

 MAC
 

I'll try to provide the Mac pictures ASAP, but I guess it’ll become  
next week.

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/225574dd-e220-4e19-b40c-51822b0a2...@fiee.net


Re: [dabo-users] Dabo Docs - quirck

2011-02-28 Thread Henning Hraban Ramm
Am 2011-02-28 um 13:19 schrieb Werner F. Bruhin:

 I see that I need more and more css know how, which I don't have.

 So, can anyone suggest a good book on css?

I could send you a copy of CSS kurz  gut by O’Reilly (in German - I  
understand you understand that ;-)
Unfortunately I already gave away my unused copy of CSS Kochbuch.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/55d3d984-6211-4a6d-90d9-95b9d25a1...@fiee.net


Re: [dabo-users] Dabo Docs - quirck

2011-02-28 Thread Henning Hraban Ramm
Am 2011-02-28 um 19:15 schrieb Werner F. Bruhin:

 On 28/02/2011 17:32, Henning Hraban Ramm wrote:
 Am 2011-02-28 um 13:19 schrieb Werner F. Bruhin:

 I see that I need more and more css know how, which I don't have.

 So, can anyone suggest a good book on css?
 I could send you a copy of CSS kurz  gut by O’Reilly (in German  
 - I
 understand you understand that ;-)
 I do a little:-)
 Unfortunately I already gave away my unused copy of CSS Kochbuch.
 That is a very kind offer, but I do prefer this type of books in  
 English
 - only recently gave in to use a French version of Windows and I am
 still not sure it was the best decision.

 Anyhow, thanks for the offer.

 Which of the two did you find better?


I generally like O’Reilly books - they’re normally a good read, no  
fuss. But it’s a matter of taste.
The Kochbuch (cookbook) didn’t tell me new tricks, as far as I looked  
into it (got it for a colleague who wanted to do some web development,  
but never came to it).
Most books of O’Reilly’s kurz  gut series (I guess it’s pocket  
reference in English) are good short references, not for learning. I  
got a lot of them, but in fact I normally find online references more  
handy and faster to use.
And even for learning new stuff (my about 13th programming language is  
Lua...) I prefer online material with a hands on approach, except  
for more fundamental subjects like design patterns. Books on computer  
subjects are always outdated...

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/caac3ebc-34fb-4d98-9085-34cb45b78...@fiee.net


Re: [dabo-users] Dabo documentation not searchable - what about Sphinx

2011-02-18 Thread Henning Hraban Ramm

Am 2011-02-16 um 20:31 schrieb Paul McNett:

 On 2/16/11 7:42 AM, Henning Hraban Ramm wrote:
 I'd rather suggest to un-i18n all the docstrings!
 (Even if I translated most of them into German already.)

 Can you tell us the reasons why?

Why I translated them? Because they were on launchpad.

Why I don't think we need translations for docstrings? I prefer a good  
documentation in English over scattered versions in different  
languages. It's a major effort to keep everything in sync, and we  
should rather enhance the docs than translate them.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/26372e37-833c-4555-9e71-1df1f43ef...@fiee.net


Re: [dabo-users] Dabo documentation not searchable - what about Sphinx

2011-02-15 Thread Henning Hraban Ramm
Am 2011-02-14 um 23:43 schrieb Ed Leafe:

 Anyway, as it is, it's a wonderful work.

   +1!

+1

But: If I look at some widget, e.g. 
http://thewinecellarbook.com/daboDocTest/dabo.ui.dButton.dButton.html
for most properties there are just unlinked references to getters and  
setters.
I think that's rather unfortunate - since you can use the properties  
directly, you don't need to know about those getters and setters, and  
at least a link to them and the parent class where they come from  
would be nice - but as far as I looked, there's nowhere any docs about  
that methods.
Do you think you can fix that?




Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/566c4d6d-2eee-4c14-8f24-a8fc2632c...@fiee.net


Re: [dabo-users] Dabo documentation not searchable - what about Sphinx

2011-02-15 Thread Henning Hraban Ramm

Am 2011-02-15 um 18:56 schrieb Paul McNett:

 On 2/15/11 9:21 AM, Werner F. Bruhin wrote:
 Can I start proposing patches for doc strings to make them reST/ 
 Sphinx
 compliant?

 +1 from me. I'll give you commit access if you want to make the  
 changes yourself,
 which would have a higher likelihood of getting it done probably!

I wonder where this French docstring comes from:

BaseClass

La classe Dabo de base de l’objet. Lecture uniquement. (classe)

Inherited from: dObject module


(Of course, it comes from dObject, but why French?)


 Thanks for all your work on this.


+100


Sorry, I overlooked that the properties I bitched about came from wx,  
so I hope they'll just disappear ;-)


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/15903942-c7ba-492a-bac5-360bf6f2e...@fiee.net


Re: [dabo-users] Dabo Setup Questions

2011-02-01 Thread Henning Hraban Ramm
Am 2011-02-01 um 11:19 schrieb Uwe Grauer:

 On 02/01/2011 08:55 AM, Simon Cropper wrote:
 Paul,

 Generally not as painful as I thought..

 - created the /opt/dabo/ directory then used
   svn co http://svn.dabodev.com/dabo/trunk dabo
   This created a subdirectory called dabo that
   I moved to replace the existing directory I made.
 - I tried using the symbolic link but that did not
   work. In the end I read the INSTALL file and ran
   python setup.py install. Following some prompts
   to download a file the installation routine went
   into action and every thing was there.

 Look at what you got from svn!
 The Framework code is in dabo/dabo. Only the Framework directory
 has to be linked into the python site-packages tree.
 If you link the outer dabo directory, you didn't link to the  
 framework
 one.

 somethink like:
 /opt/dabo - http://svn.dabodev.com/dabo/trunk/
 /opt/dabo/dabo - trunk/dabo

BTW, instead of linking, the Python way would be a dabo.pth file in  
your site-packages directory, containing only the path to dabo's  
parent directory.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/513067d7-f129-4ac4-a67f-0b87b8924...@gmail.com


Re: [dabo-users] Mini-mac and my code

2011-01-22 Thread Henning Hraban Ramm
Am 2011-01-22 um 20:31 schrieb John Fabiani:

 The tabs are not tabs.  dPageFrame with appended pages looks like a  
 bar across
 the top with push buttons.

Completely normal Mac UI, like it or not.

 dButtons with with background colors do not
 display the background color and strangely the backcolor appears  
 when the form
 loses focus.  The background color creates a rectangular around the  
 rounded
 button (Mac buttons have rounded corners - oval) - strange!

I never tried background colors for buttons (IMHO it makes no sense to  
break the default look of any OS)...




Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/d1ee6ec9-ffee-4802-954f-403c8a096...@fiee.net


Re: [dabo-users] Springboard for linux ?

2010-11-02 Thread Henning Hraban Ramm

Am 2010-11-02 um 17:31 schrieb Ed Leafe:

 On Nov 2, 2010, at 12:26 PM, chaouche yacine wrote:

 Our application will target mainly Linuxes and few Macs. Any news  
 about a linux
 version of Springboard ?


   Sorry, but I haven't had the time to focus on Springboard lately.  
 It seemed that no one else but me was interested in the concept, so  
 I haven't spent much time on it.

Oh, I surely was interested and even planned to use it for a current  
project - but the customer preferred a plain web application.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/aa7813e2-b790-4f03-8850-176042bc6...@fiee.net


Re: [dabo-users] dLabel with multiline caption (was: Demo)

2010-10-17 Thread Henning Hraban Ramm
Am 2010-10-17 um 14:52 schrieb Ed Leafe:

 On Oct 16, 2010, at 7:55 AM, Henning Hraban Ramm wrote:

 In addition to the
 dBitmapButton demo not working correctly, the label explaining the
 behavior doesn't
 wordwrap on Windows or Mac, so there are multiple issues to address.

 I just found out that/how dLabel fails on OSX with multi line  
 captions:
 - no error/exception, but stopping afterInit
 - regardless how I construct the m.l. caption (with \n, \r or just
 m.l. docstring)
 - it works fine if I set its caption afterwards, e.g. in an event
 handler (it works even with the label's Paint event)


   I've tested out your theory (at least on OS X), and it seems to be  
 correct. I've committed a change that implements delayed caption  
 setting for objects with WordWrap=True; it's only been tested on OS  
 X. If others can test on Linux and Windows, that would be great.


I didn't use WordWrap=True but a multiline string (i.e. containing  
line feeds).


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/13b5869f-da0a-42a2-b141-658b19a0d...@fiee.net


Re: [dabo-users] dLabel with multiline caption (was: Demo)

2010-10-16 Thread Henning Hraban Ramm
Am 2010-10-14 um 16:18 schrieb Paul McNett:
 In addition to the
 dBitmapButton demo not working correctly, the label explaining the  
 behavior doesn't
 wordwrap on Windows or Mac, so there are multiple issues to address.

I just found out that/how dLabel fails on OSX with multi line captions:
- no error/exception, but stopping afterInit
- regardless how I construct the m.l. caption (with \n, \r or just  
m.l. docstring)
- it works fine if I set its caption afterwards, e.g. in an event  
handler (it works even with the label's Paint event)

Platform: Mac
Python Version: 2.6.4 on darwin
Dabo Version: Version 0.9.3; Revision 6104M
UI Version: 2.8.11.0 on wxMac


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/b04fc3ce-0e63-4b9e-a01b-af6088b3c...@fiee.net


Re: [dabo-users] incomplete API docs

2010-10-15 Thread Henning Hraban Ramm
Am 2010-10-14 um 19:53 schrieb Paul McNett:

 I tried a few systems before rolling my own, and the reason I rolled  
 my own was that
 I felt there was far too much noise in the output, mostly due to all  
 of the classes
 involved in a given Dabo object. I couldn't seem to get control over  
 issues like
 don't list all the wx-layer stuff.

 Also, it was tough to train the other systems how to find the UI  
 classes, because of
 the indirection we use. When I got it to work, it gave incorrect  
 information
 (dabo.ui.uiwx.dTextBox versus dabo.ui.dTextBox).

I understand. Of course, dabo is doing some magic here...

 I just tried Sphinx on dabo - it's easy and looks good, but requires
 you at least to list all modules, that you want documented, in ReST
 files.
 If I'll ever complete my current projects, I can provide a setup for
 that, if you like.

 It would be nice to see it, and I'm open to switching to something  
 else but don't
 really have much time these days to make such a pursuit myself.

I also don't have any time (150% work in 50% work time...), but if I  
use open source software and get help by its developers, I feeld  
obligated to give something back.

You might not believe it, but I really *like* writing docs. Since  
there's so much documentation in dabo's code, I guess you also don't  
really hate it  :-)
Unfortunately dabo's wiki is rather untended - and even in my home  
wiki (wiki.contextgarden.net, where I'm a mere garden hand), there's  
too much left to do, despite an active community...

And I wanted to open source my dabo-based tool-kit for a long time,  
but that needs some more work and even more documentation to be  
useful...

Enough moaning, back to work.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/716ce2f1-77be-4c6a-a349-06f46a629...@fiee.net


Re: [dabo-users] incomplete API docs

2010-10-15 Thread Henning Hraban Ramm
Am 2010-10-15 um 08:58 schrieb Henning Hraban Ramm:

 Am 2010-10-14 um 19:53 schrieb Paul McNett:

 I tried a few systems before rolling my own, and the reason I rolled
 my own was that
 I felt there was far too much noise in the output, mostly due to all
 of the classes
 involved in a given Dabo object. I couldn't seem to get control over
 issues like
 don't list all the wx-layer stuff.

 Also, it was tough to train the other systems how to find the UI
 classes, because of
 the indirection we use. When I got it to work, it gave incorrect
 information
 (dabo.ui.uiwx.dTextBox versus dabo.ui.dTextBox).

 I understand. Of course, dabo is doing some magic here...

Ok, now I understand a bit more:
(At least) Sphinx must be able to import all classes, and that can't  
work without some setup (e.g. loading an UI).
I always get TypeError: Error when calling the metaclass bases
Source RSt files and setup attached.

I tried pydoctor (made for Twisted), because that doesn't import your  
code.
It expects epytext formatting and thus gives a lot of warnings that  
one can ignore.
Of course it can't put uiwx classes into ui.
Otherwise it works rather well, as long as I only point it at  
subdirectories (biz, lib, db, ui).
On dabo root I get AttributeError: 'Module' object has no attribute  
'subclasses' - that seems to be some problem of the tree builder.

Doxygen looks promising, but the output just isn't as handy as that of  
the other solutions, perhaps it's too much C- and Java-oriented and  
has too much overhead.
I didn't much try to tweak it, maybe there's potential (see attached  
cfg). Out of the box it doesn't really understand dabo's i18n'ed  
docstrings (I question the importance of i18n for docstrings, though.)  
and expects its own formatting (like JavaDoc, I guess).

With Epydoc you can choose whether to import or just parse the classes.
I get a lot of warnings like Warning: Module dabo.dPref is shadowed  
by a variable with the same name., Warning: dabo.ui.uiwx.dPemMixin  
shadows its own value -- using dabo.ui.uiwx.dPemMixin'.dPemMixin  
instead, Warning: dabo.lib.datanav.Bizobj.Bizobj's base  
dabo.biz.dBizobj is not a class, Warning: No information available  
for dabo.lib.datanav.Form.Form's base dabo.ui.dForm
While allowing introspection it finally breaks with Writing HTML  
docs: dabo.ui.uitk.dPemMixin.dPemMixin-class.html / UNEXPECTED ERROR:  
object is its own container?.
Without introspection it breaks with: Writing HTML docs: int- 
class.html / UNEXPECTED ERROR: iteration over non-sequence - i.e.  
writing a class documentation on int? Strange. Maybe some class  
inherits from int?
Up to that the output looks useful. For the records, I tried:
$ epydoc --html -o epydoc --parse-only --name dabo --url dabodev.com -- 
docformat plaintext --graph all --inheritance included dabo

If you like I can package the whole stuff and send it to you:
sphinx:  2 MB HTML, but incomplete
pydoctor: 10 MB (just HTML!)
doxygen: 64 MB HTML incl. graphics + 7,5 MB LaTeX sources incl. graphics
epydoc: 56 MB incl. graphics




Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)





--- StripMime Report -- processed MIME parts ---
multipart/mixed
  text/plain (text body -- kept)
  application/zip
  application/octet-stream
---
___
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/28948cae-474c-4e4a-9e7d-b2663c7fa...@fiee.net


[dabo-users] properties of type list

2010-10-15 Thread Henning Hraban Ramm
Since I struggled too long while trying to append items to  
dDropdownList.Choices:

Would you care to add a hint to the docstrings of dControlItemMixin  
that list properties aren't usable like normal Python lists?


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/28bb05ad-5459-4e69-afe7-15ace26a7...@fiee.net


Re: [dabo-users] properties of type list

2010-10-15 Thread Henning Hraban Ramm
Am 2010-10-15 um 16:32 schrieb Paul McNett:

 On 10/15/10 7:16 AM, Henning Hraban Ramm wrote:
 Since I struggled too long while trying to append items to
 dDropdownList.Choices:

 Would you care to add a hint to the docstrings of dControlItemMixin
 that list properties aren't usable like normal Python lists?

 Do you mean that you can't do:

 lst.Choices = [a, b, c]
 lst.Choices.append(d)

Yes, that's what I meant.

 but that you instead have to:

 lst = lst.Choices = [a, b, c]
 lst.Choices.append(d)
 lst.Choices = lst.Choices

I guess you meant something like?:
l = lst.Choices = [a, b, c]
l.append(d)
lst.Choices = l

At least I don't understand why you'd overwrite your list control with  
the choices list etc.

 This has struck me as kind of awkward, too. I wonder if we could  
 make it better all
 around by accepting any sequence type to Choices, but converting  
 that sequence to a
 tuple, so that if someone tries to modify it in place, they'd get an  
 exception and
 understand immediately that they have to reassign the whole sequence.

I don't see the need to make the code more complicated, if the docs  
are clear.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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/a6485448-83e9-4b46-8e36-74f7f031e...@fiee.net


Re: [dabo-users] properties of type list

2010-10-15 Thread Henning Hraban Ramm
Am 2010-10-15 um 17:18 schrieb Ed Leafe:
   Funny that this point is raised now. I was working on a class that  
 will eliminate this problem, but so far only have append() working.  
 I should have time to finish it this weekend.

Nothing happens by chance ;-)

Great if it works.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/b1abb5e1-fb14-48ab-97c9-438db9051...@fiee.net


[dabo-users] BasePrefKey

2010-10-14 Thread Henning Hraban Ramm
Consider this snippet:

 app = dabo.dApp()
 app.BasePrefKey = 'myapp'
 app.MainFormClass = mainTest
 app.start()

At start the app warns (four times!) that there wasn't a BasePrefKey  
set and constructs one from the file's path.
That would be fine if I hadn't set BasePrefKey explicitely.

I mostly use my own Application class in this way and don't want to  
inherit it for every small tool just to set BasePrefKey in its  
afterInit.


I found in dApp.py that I should be able to set BasePrefKey in my  
MainForm, but that doesn't seem to work, at least not like this:


class mainTest(dabo.ui.dForm):
 def afterInit(self):
 if not hasattr(self.Application, 'BasePrefKey'):
 self.BasePrefKey = 'myapp'
...

If I just set self.BasePrefKey (in mainTest.afterInit), I get the  
warning only three times, but the app's BasePrefKey isn't changed  
(i.e. ignored by PreferenceManager).
The same with self.Application.BasePrefKey


Would it be possible to change dabo's handling of BasePrefKey, so that  
it's possible to set it directly on the app object?



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/53179195-8fa7-4a71-9631-74fbb94c0...@fiee.net


[dabo-users] incomplete API docs

2010-10-14 Thread Henning Hraban Ramm
Is there a reason that some classes aren't in the API docs (e.g. dPref)?
Can you change it to include all dabo classes?

Or are there other API docs than http://paul.dabodev.com/doc/api/dabodoc/ 
  ?


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/02346aa1-96ea-44dc-b965-ce0f73559...@fiee.net


[dabo-users] i18n / launchpad

2010-10-14 Thread Henning Hraban Ramm
Do you still use launchpad's translations 
(https://translations.launchpad.net/dabo/)?

I don't know what the problem is, but at least the German locale is  
incomplete (I'm running from SVN trunk), not only with longer  
docstrings that I didn't care to translate in launchpad yet, but also  
bits like Preferences (that string's in Launchpad since 2008-12). In  
this case the po file only has Preferences, so it doesn't apply to  
the menu entry or PreferenceDialog title.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/68072e84-3bf8-449a-a779-d57b42077...@fiee.net


Re: [dabo-users] incomplete API docs

2010-10-14 Thread Henning Hraban Ramm

Am 2010-10-14 um 16:24 schrieb Paul McNett:

 On 10/14/10 2:52 AM, Henning Hraban Ramm wrote:
 Is there a reason that some classes aren't in the API docs (e.g.  
 dPref)?
 Can you change it to include all dabo classes?

 They are quto-generated and include all dabo classes it can find.  
 Here's the reason
 why dPref isn't found:

 class dPref(object):
   ...

 If a class doesn't ultimately inherit from dObject, it won't have  
 properties, events,
 and methods in an expected convention from which to auto-generate  
 the docs.

 If I changed it to auto-generate every class found, I think there'd  
 be a lot of noise
 in the api docs.

 I'm open to suggestions...

I don't know how other documentation systems (pydoctor, pydoc, Sphinx,  
Doxygen, Apydia, ...) do it. (I also didn't look how you generate docs.)
Can't you just use one of those? (Perhaps additionally?)

I just tried Sphinx on dabo - it's easy and looks good, but requires  
you at least to list all modules, that you want documented, in ReST  
files.
If I'll ever complete my current projects, I can provide a setup for  
that, if you like.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/13e8fd9d-ce17-4ce8-bc6a-a0d4dfd42...@fiee.net


Re: [dabo-users] BasePrefKey

2010-10-14 Thread Henning Hraban Ramm
Am 2010-10-14 um 14:33 schrieb Ed Leafe:
   It would be easier to simply pass it when you instantiate the app,  
 then:

 app = dabo.dApp(BasePrefKey='myapp')

Ah, good idea! Didn't think of that.
Works great, so that's my way to go.
Thank you!


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/6cba5bb9-7ac6-437b-99e9-a994e9d88...@fiee.net


Re: [dabo-users] custom events

2010-10-13 Thread Henning Hraban Ramm
Here's a minimal example:
http://dabo.codepad.org/2uDYsOis

- a custom event
- two panels
- first Panel sends custom event
- second Panel can't receive it

What's wrong?



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/f7505d17-3fba-4a95-9841-9a13c0486...@fiee.net


Re: [dabo-users] custom events

2010-10-13 Thread Henning Hraban Ramm
Am 2010-10-13 um 15:30 schrieb Paul McNett:

 On 10/13/10 2:52 AM, Henning Hraban Ramm wrote:
 Here's a minimal example:
 http://dabo.codepad.org/2uDYsOis

 - a custom event
 - two panels
 - first Panel sends custom event
 - second Panel can't receive it

 What's wrong?

 The event gets raised but doesn't propagate up (by design), so the  
 textbox never
 hears it. Change the lines to self.Form.raiseEvent(...) and  
 self.Form.bindEvent(...).

 Here's your example with the changed lines:
 http://codepad.org/N0ELrBCs

Thank you very much!


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/3609d319-0f97-4412-8954-c8ea9c7bd...@fiee.net


Re: [dabo-users] custom events

2010-10-13 Thread Henning Hraban Ramm
Am 2010-10-13 um 16:40 schrieb John Fabiani:

 how about putting in on the wiki

Here you are: http://wiki.dabodev.com/Events

One could write a lot more, but I don't know too much ;-)
E.g.
- is there a connection between dabo and wx events?
- are dabo events usable for async programming?
- how can non-GUI objects work with events? (possibly without  
inheriting dObject)
- would it make sense for the framework or my own apps to use  
something like PyDispatcher?

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/f1a463a7-496a-4ffe-af69-db641dcd3...@fiee.net


Re: [dabo-users] custom events

2010-10-13 Thread Henning Hraban Ramm
Am 2010-10-13 um 18:41 schrieb Paul McNett:
 - how can non-GUI objects work with events? (possibly without
 inheriting dObject)

 You'd need to inherit dabo.lib.eventMixin.EventMixin. It is a pretty  
 simple
 implementation.

Yes, I thought so, and that was what I tried first - but EventMixin  
knows nothing about Application or Form, and thus it's apparently not  
possible to exchange events between GUI and other objects.
Maybe I made another mistake.

 - would it make sense for the framework or my own apps to use
 something like PyDispatcher?

 For general-use event-handling, I think I'd use one of the libraries  
 built for this,
 like PyDispatcher, pubsub, or Twisted, depending on my specific  
 needs. The Dabo event
 handling stuff was designed to be general-use, but was really built  
 specifically to
 wrap wx events. If that makes any sense...

That's what I wanted to hear, thank you!

When I used Twisted with wxPython around 2004, I needed PyDispatcher  
anyway for general events, since (at last, AFAIR, at that time) both's  
events weren't usable for the kind of messaging I wanted.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/5f1a1f3f-023f-4941-bb28-33f6b3f04...@fiee.net


[dabo-users] custom events

2010-10-12 Thread Henning Hraban Ramm
I thought I got this right...

I subclassed my events from dEvent like this:

   class OpenFile(dEvents.dEvent):
   pass

and then raise it from a button Hit handler like this:

   self.raiseEvent(events.OpenFile, filename=self.FileName.Value)

Some handler object that inherits from EventMixin and is bound in the  
Application's afterInit, binds to the event in its __init__ method  
like this:

   self.bindEvent(events.OpenFile, self.onOpenFile)

The method goes like this:

   def onOpenFile(self, evt):
   pprint.pprint(evt)

The button Hit handler gets called, and there's no error, so I guess  
the event gets sent. But it's never received.

What could be wrong? I found no documentation about dabo events, and  
from the sources and some mailing list posts this looks right to me.

Another of my own events does work, but it's bound in the App's  
afterInit, so I guess the problem ist with my non-GUI object.  
Shouldn't it be enough that it inherits from EventMixin?


BTW: The sample code in eventMixin.py is broken:

$ python eventMixin.py
EventBindings: []
EventBindings: [(class '__main__.TestEvent', function testFunc at  
0x121f6b0, False)]
Traceback (most recent call last):
   File eventMixin.py, line 360, in module
 o.raiseEvent(TestEvent)
   File eventMixin.py, line 81, in raiseEvent
 eventData=eventData, *args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'eventData'

I guess TestEvent should inherit from dEvent or at least allow  
eventData (plus *args and **kwargs).


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/dc7a7177-3280-47a6-96af-df9455075...@fiee.net


Re: [dabo-users] custom events

2010-10-12 Thread Henning Hraban Ramm
Am 2010-10-12 um 16:24 schrieb Ed Leafe:

  self.raiseEvent(events.OpenFile, filename=self.FileName.Value)

   You need to define the appliesToClass() classmethod for your event  
 class. From dEvent.py:
...
   Look at some of the classes in dEvent.py for examples of how this  
 method works.

Since
* not all Event classes in dEvent implement appliesToClass,
* I don't care, who is raising the event
I thought I could leave that out.

Now I implement it and just return True - but the event still isn't  
received.
I also tried the issubclass test on every possible base class (sender  
and receiver) without result.

My events work within the same object, but not from e.g. a Panel to  
the App or another Panel.

Did I understand you (and the source) right that appliesToClass checks  
if the sender is allowed to raise that event?

I guess I still don't get what my (not dabo.ui descendant) object has  
to do/implement/inherit other that inheriting EventMixin und binding  
the event.


BTW, test code in eventMixin.py again:

- TestEvent must have the same signature as dEvent
- TestEvent needs a Continue property
- it's unbindEvent, not unBindEvent


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/648b0304-891c-412d-abb4-12f3b8e22...@fiee.net


Re: [dabo-users] Cool new interactive Python interpreter

2010-09-21 Thread Henning Hraban Ramm

Am 2010-09-21 um 22:52 schrieb Paul McNett:

 On 9/21/10 11:59 AM, Ed Leafe wrote:
  Check out 'bpython': http://bpython-interpreter.org/

  Haven't used it, but it sure looks interesting. I use 'ipython'  
 all the time, so if anyone who tries this has also used ipython,  
 I'd be interested in a comparison.

 Looks great. BTW, I was able to apt-get install bpython on Ubuntu.  
 Used it for a
 few minutes and I don't see any reason to keep using the base Python  
 shell, except I
 need to figure out how to change the colors around because there  
 isn't enough
 contrast in places.

Looks nice, but I'm content with PyCrust or dShell ;-)


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/f622293a-0c30-487a-b7ae-000aa104b...@fiee.net


Re: [dabo-users] Packaging Dabo Apps

2010-08-27 Thread Henning Hraban Ramm
Am 2010-08-27 um 19:27 schrieb Paul McNett:
 It was trial and error, trial and error, and it consumed many many  
 hours just to get
 it working on Windows. Then it was many many hours getting it  
 working on Mac.

The same for me.
Here's a sample of a setup.py that works for me on the Mac and  
*should* work on Windows (never tested):

http://wiki.dabodev.com/Internationalization


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/feda17ee-94d2-44af-829e-4a903ec66...@fiee.net


Re: [dabo-users] PyCon Tutorial - Adding the Billing Grid

2010-08-26 Thread Henning Hraban Ramm
Am 2010-08-26 um 00:11 schrieb M. Milanuk:
 Are you by chance using sqlite as a db?  I am and I had to change
 billed=false to billed = 0 to get past that error message.
 Interesting... that did it in Mac OS X, at least.

 SQLite doesn't know a real Boolean type, but uses integers.
 The SQLite backend should take care of that - seems like it doesn't.

 Being fairly wet-behind-the-ears on this stuff... which backend are  
 you
 referring to?  sqlite to python, or dabo?


I don't know, could be in Python's sqlite3 module or in dabo's  
backend. I presume the latter, but didn't check.

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/9293a000-9e54-4b58-b10c-863a5a263...@fiee.net


Re: [dabo-users] PyCon Tutorial - Adding the Billing Grid

2010-08-26 Thread Henning Hraban Ramm
Am 2010-08-26 um 16:09 schrieb Adrian Klaver:
 For the record the below is the code in dbSQLite.py that handles  
 boolean values.

 def formatForQuery(self, val, fieldType=None):
if isinstance(val, bool):
  return ustr(int(val))
else:
  return super(SQLite, self).formatForQuery(val, fieldType)

Seems I stand corrected and the problem isn't really dabo's. Good.



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/c4c75367-43ef-4c06-9988-9918f584f...@fiee.net


Re: [dabo-users] PyCon Tutorial - Adding the Billing Grid

2010-08-23 Thread Henning Hraban Ramm
2010/8/23 Monte Milanuk memila...@gmail.com:
 Are you by chance using sqlite as a db?  I am and I had to change
 billed=false to billed = 0 to get past that error message.
 Interesting... that did it in Mac OS X, at least.

SQLite doesn't know a real Boolean type, but uses integers.
The SQLite backend should take care of that - seems like it doesn't.

(For a customer I'm developing an app in Delphi, cough, that syncs
lots of data between a PostgreSQL server and a local SQLite database.
Don't ask... The Zeos database access library has the same problem,
also with several other datatypes, e.g. it writes booleans and
datetimes as strings in the format of the locale instead of the only
useful format, i.e. ISO 8601. The Zeos guys couldn't accept their lib
would do something wrong...)

Greetlings, Hraban
___
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/aanlktim69kxu9e1ysr2-lnyj7hz1bbpqok+rs_vux...@mail.gmail.com


Re: [dabo-users] Mapping backend types to Dabo types (MsSQL)

2010-08-10 Thread Henning Hraban Ramm
Am 2010-08-10 um 15:49 schrieb Jacek Kałucki:
 Oh, maybe MySQL adapter does, don't know, I don't use MySQL.
 This is thread about _MsSQL_, and it doesn't remap types.

He used MySQL only as an example.

 This is a logfile excerpt:
 DBQueryException encountered in save(): SQL Server message 207,
 severity 16, state 1, line 1:
 Invalid column name 'True'.


That yould also mean that MSSQL wants true, TRUE or TRUE() or  
whatever.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/232b9575-6821-44f0-a224-89f1bea08...@fiee.net


Re: [dabo-users] Need direction for project

2010-08-09 Thread Henning Hraban Ramm
Am 2010-08-10 um 00:20 schrieb Paul McNett:
 Or you could review the section in the Pycon tutorial white paper  
 (Ed, what's the
 URL?) The paper covers way more than we had time to cover in the talk.


https://docs.google.com/View?id=dg79jzmg_85f737ww6x
linked clearly from
http://dabodev.com/documentation


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/8367f096-fb2f-401c-b431-11515e6ed...@fiee.net


Re: [dabo-users] Dabo on non-English (Japanese) systems

2010-08-05 Thread Henning Hraban Ramm
Am 2010-08-05 um 08:32 schrieb Laurence Anthony:

 Earlier, Ed wrote in reply to a comment

 I changed the Windows language setup to English and both Dabo and  
 Dabo  Runtime are working.
 Well, at least that identifies the problem, but it's not a very  
 good solution. Just because Paul and I only use American English  
 settings doesn't  mean everyone else should have to, too.

 I have the same problem that I cannot launch the  Dabo Runtime on my
 Japanese Windows 7 box (I haven't tried the full Dabo install yet).
 Can someone give me suggestions on how to get it working (hopefully
 without having to switch the OS into an English locale)?

Minimally copy Dabo's English locale to Japanese.
Better help preparing a real Japanese translation at 
https://translations.launchpad.net/dabo


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/1d1aa058-07df-4bb2-8c27-fd2c637a9...@fiee.net


Re: [dabo-users] Dabo on non-English (Japanese) systems

2010-08-05 Thread Henning Hraban Ramm
Am 2010-08-05 um 11:35 schrieb Laurence Anthony:

 Hraban,
 Minimally copy Dabo's English locale to Japanese.
 Better help preparing a real Japanese translation at 
 https://translations.launchpad.net/dabo

 And how do I go about copying Dabo's English locale to Japanese? I
 looked in the locale folder and found the en folder. Where should I
 copy this too?

Just copy the en folder as jp (or the right code, look it up),  
then you'll at least be able to use an English dabo on your Japanese  
system.
Can't promise that it'll work - never tried it, but there were reports  
on this list about other locales where this worked.

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/7d24b5e0-3135-4a32-b2e0-bcb6bce8b...@fiee.net


Re: [dabo-users] New to Dabo

2010-07-07 Thread Henning Hraban Ramm
Am 2010-07-07 um 14:19 schrieb Monte Milanuk:
 Last login: Tue Jul  6 22:10:58 on ttys000
 macbook:~ monte$ python
 Python 2.6.5 (r265:79359, Mar 24 2010, 01:32:55)
 [GCC 4.0.1 (Apple Inc. build 5493)] on darwin
 Type help, copyright, credits or license for more information.
 import MySQLdb
 Traceback (most recent call last):
   File stdin, line 1, in module
 ImportError: No module named MySQLdb


 A nudge in the right direction would be most appreciated.

Even if you've installed Python via MacPorts, it's probably not the  
active Python installation.
You can influence that via your path (in ~/.bashrc or ~/.profile), and  
AFAIR MacPorts says something about activation in the installation  
messages of Python.

What says which python?



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/beddf52b-3b7d-40e8-a7e6-00cf037f2...@fiee.net


Re: [dabo-users] New to Dabo

2010-07-05 Thread Henning Hraban Ramm
Am 2010-07-05 um 01:55 schrieb Monte Milanuk:

 New guy here!

Welcome!

 Speaking of questions... as I prepare to download the various bits  
 and pieces
 necessary for dabo on my computers (PC running Windows Vista,   
 older Macbook
 upgraded to Snow Leopard 10.6.3) ... I see the runtime binary  
 packages for
 Windows use python 2.5.2, but very little mention otherwise of what
 version/flavors of python are recommended or supported.  Will the  
 2.6.x version
 of python work acceptably with dabo?  What about python 3.1.x?


Python 2.6 works, Python 3.x won't probably for a long time (wxPython  
isn't ported yet, so are several other important libraries).

I wouldn't suggest trying the runtimes for any serious development work.

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/2f309d01-b6b9-440d-a95c-23f7e2fa9...@fiee.net


Re: [dabo-users] New to Dabo

2010-07-05 Thread Henning Hraban Ramm
Am 2010-07-05 um 17:25 schrieb Monte Milanuk:
 Getting all the pre-requisites installed and working on Mac OS X  
 seems to be a
 bit of a chore... dabo requires(recommends?) ReportLab, ReportLab  
 recommends
 PIL, PIL requires several other image libraries...  the status of  
 PIL binaries
 for Mac OS X 10.6 seems a little shaky, from reading their mailing  
 list, and
 compiling them requires I download Xcode from Apple and install oh,  
 about 6
 gigabytes of stuff.  Yee gads.  I guess it keeps me out of the bars  
 and all
 that...

Yes, PIL on the Mac is really tedious. I can only convince it to  
compile if I patch its setup.py to omit /opt (MacPorts) and to include  
my X11 installation, otherwise I get in library hell.
(I'm still on OSX 10.5)

 Is it a hard requirement that dabo needs ReportLab installed and  
 working to
 function for starting out?  How much of a pain in the neck is it  
 going to be if
 I go back and get the other stuff working later, when I'm at the  
 point that I
 *need* pdf reports, etc.?

Dabo should work without reportlab, and that *should* partially work  
without PIL. But since my other big framework Django has a stupid  
dependency on PIL, it was better to fix that problem.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/f4332509-aeaf-4339-979b-2e800ffa4...@fiee.net


Re: [dabo-users] Change PYcon PagEditRecipes.py to not run test

2010-04-13 Thread Henning Hraban Ramm
Am 2010-04-11 um 14:41 schrieb Andrew Stirling:

 https://www.cacert.org (I'm an assurer)
 gave me
 The site's security certificate is not trusted!

That's exactly what I meant with:

 It's a shame that our root certificate isn't more wide spread

Your browser doesn't trust cacert.org or any other site using CAcert's  
certificates because CAcert's root certificate is neither included nor  
installed in your browser or your OS.
(Only most Linux distributions include CAcert's root certificate.)

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/110b2594-fd3e-4983-b2b8-168e6153c...@gmail.com


Re: [dabo-users] Change PYcon PagEditRecipes.py to not run test

2010-04-11 Thread Henning Hraban Ramm
Am 2010-04-11 um 00:18 schrieb Paul McNett:

 No, it is a self-signed certificate[1] is all. You trust me, right? :)

 Paul

 [1] Actually, it's a smidgen better: a CACert-signed certificate.


Only a smidgen? For a commercial certificate you can fax anyone's  
passport or just pay. For a CAcert certificate you need to meet  
several people in person. Tell me what's more secure!
It's a shame that our root certificate isn't more wide spread (and  
we should work at our user docs, sigh). But we're coming ;-)

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/11a44d6b-bd77-459a-86fe-e7af32747...@fiee.net


Re: [dabo-users] zwiki (was: i18n py2app writeup)

2010-02-24 Thread Henning Hraban Ramm
Am 2010-02-24 um 14:20 schrieb Ed Leafe:

 On Feb 24, 2010, at 8:05 AM, Henning Hraban Ramm wrote:

 (BTW: I found zwiki's markup abilities really annoying, I guess
 yours is an old version, since it doesn't understand ReST...)

   Really? http://zwiki.org/RestructuredText


I'm used to write ReST, your wiki doesn't understand it (at least as  
far as I tried).
That's why I guess you're running an old version.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/889cb879-530f-4bf1-a825-c7e031042...@fiee.net


Re: [dabo-users] cdxml vs. coding

2010-01-21 Thread Henning Hraban Ramm
I code everything Python by hand and just don't like GUI tools for
development work – at the moment I'm working on a Delphi application
for a customer, and I hate it ;-)  I get accustomed to Delphi's GUI
tools, though, but often switch to the code view of forms, e.g. I can
use search  replace there. Unfortunately I'm not allowed to port it
to Python, I'd need half of the time and could make it much better.

For my next dabo App I might try the Designer, but since I most often
just need a simple GUI for some admin script, my hand-coded standard
interface (one tab each for Action, Settings and Log) does the job
without me learning another tool.

(BTW I *can* use vi, but only do if I must, e.g. via ssh; I prefer a
good IDE, so I'm not the evil GUI guy ;-)

Greetlings, Hraban
___
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/954f6001210040rd183854ucd7ecef35c171...@mail.gmail.com


Re: [dabo-users] Warning Python noob needs help

2010-01-05 Thread Henning Hraban Ramm
You finally figured out Python's string formatting, but not completely:

Record successfully saved.\nYour new DC number is DC10-%03d % stringID

See also http://docs.python.org/library/stdtypes.html#string-formatting

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/3a777c5e-1010-40c3-b362-d3c33f0a3...@fiee.net


Re: [dabo-users] Are many projects (commercial ) created using dabo?

2010-01-05 Thread Henning Hraban Ramm
Am 2010-01-04 um 20:31 schrieb Nate Lowrie:

 I have found that using dabo for the administration of a website built
 in whatever you want is much faster than building the admin  
 interface on
 the web.

Seems like you never tried django? Its batteries included admin app  
is just great and a big timesaver!

But I also use a dabo app as a client app to a website, because I need  
to pull data via http request and write it to several local files.

My other dabo projects are in-house tools like our CD cover maker that  
reads the tree of a CD/DVD and creates a nice cover PDF via TeX.
At the moment I don't use any dabo apps with a database connection -  
for my needs django's admin is mostly easier.

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)

___
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/0bb4b819-dfae-4ca1-8a0c-38839b725...@fiee.net


Re: [dabo-users] Choice of Database (was: Design Question)

2009-09-15 Thread Henning Hraban Ramm
Am 2009-09-15 um 01:41 schrieb Adrian Klaver:
 For version 8.4 it is not a requirement that it run under C locale.  
 See section
 22.2.2. Setting the Character Set for some examples. The LC_CTYPE and
 LC_COLLATE can be set for each database. You are correct that for  
 8.3- the
 LC_CTYPE is frozen and restricts your flexibility when creating  
 additional
 databases in the cluster. Though in 8.3 you can initdb with UTF8 and  
 use a
 German locale by using the --locale option to initdb see:
 http://www.postgresql.org/docs/8.3/interactive/locale.html

 I am running 8.0,8.2,8.3 and 8.4 on Hardy, all compiled from source,  
 so it is
 possible :)


Thank you; I'll try PostgreSQL again on my next server.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)






___
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/421bc733-6c8d-480f-b212-923abf9d6...@fiee.net


Re: [dabo-users] Choice of Database (was: Design Question)

2009-09-14 Thread Henning Hraban Ramm
Am 2009-09-13 um 22:07 schrieb John:

 I've a lot of experience with MySQL and a bit with SQLite.

 After all the praise for PostgreSQL on this list I tried to use it
 when I recently set up a new webserver.

 After searching the docs and the Internets for a while I had to
 conclude that PostgreSQL doesn't allow to use different text  
 encodings
 (collations) for different tables - even worse, the encoding is  
 hard-
 compiled, and UTF-8 is only possible with C locale.
 That's totally out of the question and a horribly outdated approach!
 So I went back to MySQL.

 Maybe I did or understood something wrong - but I can't say it would
 be easy to set up a working PostSQL server. (Only one 8-bit  
 encoding
 *is* not working.)

 Greetlings from Lake Constance!
 Hraban
 ---

 You are right about different encodings for different tables. As of  
 8.3 you
 can have different encodings for databases within a cluster but  
 that is far
 as it extends at the moment. Your comments about UTF-8 are wrong  
 though.
 See the link for a better explanation:
 http://www.postgresql.org/docs/8.4/interactive/multibyte.html

 I missed that he was talking about tables and not databases.

It would be enough if I could just use UTF-8 for everything.
But I didn't manage to set that up - didn't try to compile PostgreSQL  
on my own, though.
(My webserver is a vServer running Ubuntu Hardy. And I use a German  
locale.)

What about this quote from the linked page (PostgreSQL version 8.4):

An important restriction, however, is that each database's character  
set must be compatible with the database's LC_CTYPE and LC_COLLATE  
locale settings. For C or POSIX locale, any character set is allowed,  
but for other locales there is only one character set that will work  
correctly. (On Windows, however, UTF-8 encoding can be used with any  
locale.)


And on the same page for version 8.3 (that's the version on Hardy) it  
reads:

An important restriction, however, is that each database character set  
must be compatible with the server's LC_CTYPE setting. When LC_CTYPE  
is C or POSIX, any character set is allowed, but for other settings of  
LC_CTYPE there is only one character set that will work correctly.  
Since the LC_CTYPE setting is frozen by initdb, the apparent  
flexibility to use different encodings in different databases of a  
cluster is more theoretical than real, except when you select C or  
POSIX locale (thus disabling any real locale awareness). It is likely  
that these mechanisms will be revisited in future versions of  
PostgreSQL.


I understand that as your server must run under C locale. Wrongly?


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)






--- StripMime Report -- processed MIME parts ---
multipart/signed
  text/plain (text body -- kept)
  application/pgp-signature
---

___
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/f9b15048-4647-4ab9-8391-3bb5e82a8...@fiee.net


Re: [dabo-users] Choice of Database (was: Design Question)

2009-09-13 Thread Henning Hraban Ramm
Am 2009-09-12 um 21:08 schrieb Jeff Johnson:

 I would like to express an opinion regarding MSSql vs. PostgreSQL just
 in case someone might be interested.  I created two databases based on
 an actual MSSql database that I will be pulling from in production.   
 One
 in MSSql and one in PostgreSQL.  Other than VFP I have done quite a  
 bit
 of experience accessing MSSql but I had no experience with PostgreSQL.
 After a couple of days I feel I know PostgreSQL much better than the
 other.  It is almost intuitive and very easy to work with (maybe  
 from my
 VFP experience).  Because it is open source it seems to be a *lot*
 easier to get questions answered.  My analogy would be a Cadillac  
 vs. a
 Miata.  One has all of the bells and whistles and the other just plain
 works and is a lot more fun to drive.


I've a lot of experience with MySQL and a bit with SQLite.

After all the praise for PostgreSQL on this list I tried to use it  
when I recently set up a new webserver.

After searching the docs and the Internets for a while I had to  
conclude that PostgreSQL doesn't allow to use different text encodings  
(collations) for different tables - even worse, the encoding is hard- 
compiled, and UTF-8 is only possible with C locale.
That's totally out of the question and a horribly outdated approach!  
So I went back to MySQL.

Maybe I did or understood something wrong - but I can't say it would  
be easy to set up a working PostSQL server. (Only one 8-bit encoding  
*is* not working.)

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)






___
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/1de2976a-8278-45de-8931-f0dd60f10...@fiee.net


Re: [dabo-users] will this work for a Mac?

2009-08-10 Thread Henning Hraban Ramm
Am 2009-08-09 um 16:00 schrieb John:
 I created a pth file to point to the uno.py folder and it works for  
 me.  That
 will be my suggestion to the reader instead of helping them find the  
 file.


I suggest to pop up a dialog asking Where is OpenOffice.app? if you  
can't find it in /Applications.
Perhaps look for NeoOffice.app also.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)






___
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/9a08a613-cebc-4f96-8d13-7173249dd...@fiee.net


Re: [dabo-users] Complete Applications

2009-06-28 Thread Henning Hraban Ramm
Am 2009-06-28 um 15:18 schrieb Nate Lowrie:

 I know that almost all of my completed applications are proprietary
 stuff I did for my former employer.  I think that Paul's and John's
 stuff is mostly they same.  I will try to get some open source stuff
 up soon.  I know that Ed wrote an open source Twitter client in Dabo
 available at http://dabodev.com/wiki/Tweezer


Even if I'm allowed to release my stuff, it's only written to solve a  
specific problem at my job or relays on some strange environment like  
a ConTeXt installation or the AJAX interface of some website.

I'll try to publish a simple FTP client soon, but it's not really code  
that I could be proud of.

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)






--- StripMime Report -- processed MIME parts ---
multipart/signed
  text/plain (text body -- kept)
  application/pgp-signature
---
___
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/3f3fb16e-7c79-4ec0-a765-1046aab8e...@fiee.net


Re: [dabo-users] Drag'n'drop on a dGrid

2008-12-03 Thread Henning Hraban Ramm
Am 2008-12-03 um 04:35 schrieb Ed Leafe:
   OK, I've just committed a change to the code that handles
 DroppedFileHandler and DroppedTextHandler for grids. Grab the latest
 SVN trunk and let me know how it works for you.


That works now, thank you very much!

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)






___
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] Drag'n'drop on a dGrid

2008-12-02 Thread Henning Hraban Ramm
Am 2008-12-01 um 23:35 schrieb Ed Leafe:

 Another DnD problem:

 I'd like my dGrid to receive dropped files, but neither implementing
 processDroppedFiles nor setting DroppedFileHandler does anything.

 Any idea, what I could try?

   I'm betting that this is because the grid is not a single control,
 but a bunch of renderers and editors. IOW, you're not dropping it on
 the grid, but on a rendered cell within the grid.

I thought such; but dGrid provides processDroppedFiles, therefore it  
should work...
And I wouldn't know how to add a drop handler to every cell.
That would also contradict my idea - for me, it would be enough if the  
whole main window would accept dropped files, it doesn't matter  
*where* they are dropped.

Perhaps you saw my thread on PythonMac-SIG: I'm writing a small tool  
to detect the type of a file, esp. for my colleagues who aren't able  
or willing to call file in a shell. One should just be able to drop  
a file (or several) anywhere on the app or its icon, it gets analyzed  
with different methods, and the results get displayed in a Grid. Next  
step is to correct wrong/missing extensions and types/creators.

I'm planning to release that as an example of using dabo for a simple  
GUI app without database - or perhaps I could hold the contents of the  
magic file in a SQLite db...


   I'll try to dig into this tonight.

Thank you!


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)






___
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] Drag'n'drop on a dApp

2008-12-01 Thread Henning Hraban Ramm

Am 2008-11-30 um 18:02 schrieb Ed Leafe:

 Sorry, can't try at the moment, I'm on the run... ;-)
 Will try it probably on monday.
   Cool; no rush. Just let me know if it works for you.

in uiApp

def MacReopenApp(self, filename=None, *args, **kwargs):
self.dApp.onUiReopenFile(filename, *args, **kwargs)

must be:

def MacReopenApp(self, filename=None, *args, **kwargs):
self.dApp.onUiReopenApp(filename, *args, **kwargs)


Couldn't test the functionality, because I can't build the app any  
more :-(
i.e. py2app runs through, but the app doesn't start, missing e.g.  
dTextBox (that's definitely in there!); previously it couldn't find  
AppKit or pkpg_resources...


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)






___
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] Drag'n'drop on a dGrid

2008-12-01 Thread Henning Hraban Ramm
Another DnD problem:

I'd like my dGrid to receive dropped files, but neither implementing  
processDroppedFiles nor setting DroppedFileHandler does anything.

Any idea, what I could try?


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)






___
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] Drag'n'drop on a dApp

2008-11-30 Thread Henning Hraban Ramm
Am 2008-11-30 um 01:13 schrieb Ed Leafe:

  OK, I did some reading on what MacOpenFile is, and it's a bound
 method of wx.App, so of course you can't simply assign it like that.
 What I'll have to do is write some code to pass the wx.App event to a
 dApp handler. This might take a few minutes, but I'll work on it now.
 In the meantime, what other wx.App event handlers are there like this
 that you know of? I might as well wrap them all.

   This is bizarre. I've found documentation that says that as of April,
 2004 (version 2.5.1.2), wxPython has 4 Mac-specific methods in its
 wx.App class:

 AppleEvents can be handled by overriding wx.App methods MacOpenFile,
 MacPrintFile, MacNewFile, and MacReopenApp.
   However, I'm running wxPython 2.8.4.0 on a Mac, and these methods
 don't exist. If I try to call them in a plain wx application (no
 Dabo), I get AttributeErrors.

   Can you point me to some definitive documetation on these methods?


Sorry, I don't know more than the wx docs told you.
I found also that it's rather complicated to handle other Apple Events  
besides that four (looks like the usual problem of interlocking  
different event loops).

But these methods aren't usually there, there's no interface/ 
implementation logic or the like in wx.
As far as I understand, they're used, if you provide them.


I'd suggest to implement those four methods in dabo's wx-uiApp and  
provide a hook in dApp - probably in a unified way, that works also  
with Windows and GTK. (If Windows or GTK provide something similar at  
all.)


Thank you for your efforts!


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)






___
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] Drag'n'drop on a dApp

2008-11-30 Thread Henning Hraban Ramm
Am 2008-11-30 um 16:55 schrieb Ed Leafe:

 I'd suggest to implement those four methods in dabo's wx-uiApp and
 provide a hook in dApp - probably in a unified way, that works also
 with Windows and GTK. (If Windows or GTK provide something similar at
 all.)

   Good suggestion - that's what I had done; I just wanted to be sure
 that I wasn't missing anything that you were aware of.

   Try out the latest and let me know if it works for you.


Thank you so much!

Sorry, can't try at the moment, I'm on the run... ;-)
Will try it probably on monday.

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)






___
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] Drag'n'drop on a dApp

2008-11-29 Thread Henning Hraban Ramm
Hi there,

I'd like to make my dabo application a drop target for files i.e.
1. DnD on the icon
2. DnD on the main window

For 1 I'd need to implement wx.App.MacOpenFile; but a dApp is no wx.App.
Where must I stuff that method, or is there a better dabo way?

For 2 I've no clue, any documentation hints?


Platform: MacOS X 10.5
Python Version: 2.5.2 on darwin
Dabo Version: Version 0.8.4; Revision 4729
UI Version: 2.8.9.1 on wxMac


BTW the Google search in the wiki searches the whole domain  
dabodev.com, i.e. finds mostly svn entries.
Additionally I got proxy errors from the wiki several times today.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)






___
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] Drag'n'drop on a dApp

2008-11-29 Thread Henning Hraban Ramm
Am 2008-11-29 um 19:06 schrieb Ed Leafe:

 I'd like to make my dabo application a drop target for files i.e.
 1. DnD on the icon
 2. DnD on the main window

   The main window is simple enough: set the window's DroppedFileHandler
 property to the object that will handle the dropped files, and write
 your code in that object's processDroppedFiles() method. That method
 will receive a list of the files that have been dropped. The dImage
 script in DaboDemo has a good example of handling dropped files.

Thank you! I'll try that.

   For the icon I'm not exactly sure what you'll need. If you create
 an .app file using py2app, files dropped on the icon will be passed as
 arguments to the main script of your app. I'm not sure what will
 happen with files dropped on an app's icon when the app is already
 running, as I've never tried it.

The argv_emulation could work ok (at the moment I get errors because  
the App object isn't initialized at start time, but I'll manage that).

For DnD on the icon I need to implement MacOpenFile within wx.App, as  
I wrote; wx's event loop (or whatever) cares for the OpenFile apple  
event.

I tried monkey patching wx.App via uiApp, but I run into the same  
problem as John: uiApp should be wx.App, but isn't, at least not while  
afterInit runs.



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)






___
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] Drag'n'drop on a dApp

2008-11-29 Thread Henning Hraban Ramm
Am 2008-11-29 um 19:39 schrieb Ed Leafe:

 For DnD on the icon I need to implement MacOpenFile within wx.App, as
 I wrote; wx's event loop (or whatever) cares for the OpenFile apple
 event.

 I tried monkey patching wx.App via uiApp, but I run into the same
 problem as John: uiApp should be wx.App, but isn't, at least not  
 while
 afterInit runs.

   You are referencing this as self.Application.uiApp, right?

   Perhaps if you posted the patch you are trying to use, we can see
 about incorporating it.


It doesn't work like I tried:

class fieeApp(dabo.dApp):

 def afterInit(self):
 self.Application.uiApp.MacOpenFile = self.MacOpenFile

 def MacOpenFile(self, filename):
 dabo.infoLog.write(u'MacOpenFile: %s' % f)



I always get an AttributeError: 'fieeApp' has no attribute 'uiApp'.

Maybe afterInit is the wrong place - but where else?


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)






___
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] Drag'n'drop on a dApp

2008-11-29 Thread Henning Hraban Ramm
Am 2008-11-29 um 22:26 schrieb Ed Leafe:
  There really is no hook for this point of the app creation code. I
 think it would be a good idea to add an afterSetup() hook method to
 dApp, which would be called after the UI has been initialized. Let me
 play with it a little bit, and I should have a commit soon.
   It seems to work as expected, so I've committed the change. Now if
 you grab the latest from Subversion and put your code in the app's
 afterSetup() method, it should be able to reference self.uiApp.


Thank you for your effort, but at least this method of my app doesn't  
work:

 def afterSetup(self):
 self.uiApp.MacOpenFile = self.MacOpenFile

The method itself is called, but the monkey patch doesn't seem to have  
any influence.

So Paul's suggestion of wx.GetApp() wouldn't help either.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)






___
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] Dabo: first questions

2008-10-27 Thread Henning Hraban Ramm
Am 2008-10-27 um 22:04 schrieb Emanuele Gesuato:
 Is it possible to use dabo without the ide you provided ?


Of course, it's just Python.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)






___
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] Progress Dialog for long running tasks

2008-10-20 Thread Henning Hraban Ramm
Am 2008-10-20 um 16:15 schrieb Nate Lowrie:
 I have done this several times. The most important thing that I can
 say is in your thread which is running the long task, never have any
 lines of code that set the properties of UI widgets.  You will get a
 strange error if you try to set them outside a WX event thread.  I was
 trying to find an email on the wxPython list from Cory Percord that
 gave a more technical description of what happens, but I can't seem to
 locate it.  Instead, update a variable in the long task thread.  In
 the main UI thread call an update function that reads the variable and
 updates the progress bar.  You can do this a couple of ways.  First,
 you can use dabo.ui.callAfterInterval and a stop flag.  You can also
 use the onIdle event.  Or you can fire your own Dabo event from the
 long task thread.  They are all about the same amount of work, though
 the last one is more eloquent than the rest.

In such cases I used pyDispatcher events for the inter-thread  
communication.
I guess dEvents can do the same.
That seemed to be the cleanest approach.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)






___
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] dApp.DatabaseActivityLog and non-ASCII database content

2008-10-02 Thread Henning Hraban Ramm
Am 2008-10-02 um 18:21 schrieb Sibylle Koczian:
 Without the line app.DatabaseActivityLog = sys.stdout the  
 application works
 as expected, field content with non-ASCII characters is saved  
 normally.

 On the one hand I should have thought of this,
 because sys.stdout.write(u'äöü') raises the same  
 UnicodeEncodeError. On the
 other hand the traceback for this case definitely doesn't help. And  
 why is
 saving the record impossible, just because the _logging_ raises an  
 exception?

 I've tried to wrap sys.stdout using codecs.EncodedFile, but without  
 success. I
 don't know which input and output encoding would be right. My system  
 charset
 is UTF-8.

 Would it be possible to have DatabaseActivityLog write something
 like repr(theUnicodeObject)? Not very pretty, but for diagnostic  
 purposes
 perhaps acceptable?

You can't simply print python unicode objects to stdout.

Just change your wrapper that it works like
sys.stdout.write(u'äöü'.encode('utf-8'))


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)






___
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] A new Dabo meaning

2008-10-01 Thread Henning Hraban Ramm
Am 2008-09-30 um 21:53 schrieb Henning Hraban Ramm:

 But a quick look gives some more Dabos.
  You should add any that are missing to:
 http://dabodev.com/wiki/DaboDefined
 I'd like to, but I found no way to edit or register/login.

Ed provided me with a login, so I enhanced the list a bit... :-)

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)






___
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] A new Dabo meaning

2008-09-30 Thread Henning Hraban Ramm
Am 2008-09-30 um 16:21 schrieb Ed Leafe:

   The word's more popular than ever! Here's one I've never seen before:
   http://www.ifish.net/board/showthread.php?t=217205


Yes, Dabo is good (even if you strive for greatness, it's still good).

But a quick look gives some more Dabos.
Most interesting:

Dabo was a roulette-style game of chance developed by the Ferengi.
(http://memory-alpha.org/en/wiki/Dabo)

Isn't that a bad omen? ;-)
And AFAIK we don't have any Dabo girls...

But (same source):
The word dabo means I will give in Latin, and Gold in Aramaic.

I knew Latin, but not Aramaic.
Another slogan: Already the Aramaeans knew that Dabo is Gold! :-D


Even more (from wikipedia):

Dabo (ダボ) is a Japanese rapper. (I knew Dabo rocks, but maybe it  
even raps?)

Dabo is a town and commune in the Moselle département, Lorraine  
région in northeastern France.

plus the already known French soccer player Ousmane Dabo and a pagoda  
names Dabotap in South Korea



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)






___
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] treeFromStructure()

2008-09-30 Thread Henning Hraban Ramm
Am 2008-10-01 um 00:45 schrieb Mike Mabey:

return _controls_.TreeCtrl_DeleteAllItems(*args, **kwargs)
 TypeError: in method 'TreeCtrl_DeleteAllItems', expected argument 1  
 of type
 'wxPyTreeCtrl *'


 I don't know if I'm just not using treeFromStructure correctly, or if
 there's something else I'm missing.  I'm calling this method in the  
 tree's
 initProperties() method.  I've tried several different combinations  
 of the
 parameters, including:

 self.treeFromStructure([Root Title])
 self.treeFromStructure([Root Title, [None]])
 self.treeFromStructure([Root Title, [First Child]])
 self.treeFromStructure([Root Title, [[First Child]]])

 You get the idea.  What am I doing wrong?

Is self a dTreeView? Or what else?

The data sctructure for tree views *is* tricky...


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)






___
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] Manually entered PK: records not saved

2008-09-24 Thread Henning Hraban Ramm
Am 2008-09-24 um 19:49 schrieb Paul McNett:
 No, the biz shouldn't be aware of the ui at all. If it were me, I'd  
 keep
 the PK invisible from the UI (and keep it meaningless), and just  
 define
 another field for the abbreviation field that may well be unique but
 isn't *the* pk.

Just to add another example where I use manual PKs all the time (and  
wouldn't like to change that):

Geographical lookup tables for countries or cities (PK: TLD, car/state/ 
postal code) -
I want to find D or de in my address entry, not some index that I  
would have to look up itself!

In some applications even product IDs (e.g. ISBN, EAN...) make sense  
as PKs.
E.g. in one of my web projects a publishing house uses short codes for  
its magazines; a lot of other tables relate to them; it's only that  
one lookup table that uses these codes as PK, but so we get  
understandable relations everywhere and reduce the need for joined  
queries, because the editors know their codes.

(For I use dabo only for GUIs and write database frontends with web  
frameworks, it doesn't matter for me what dabo does, but I consider it  
a drawback if you can't allow for your own PK entries.)


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)





___
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] Curious to use dabo with twisted

2008-09-19 Thread Henning Hraban Ramm
Am 2008-09-17 um 02:18 schrieb Stephen Waterbury:
 Henning Hraban Ramm wrote:
 Am 2008-09-15 um 06:05 schrieb Stephen Waterbury:
 I would counsel against using wxreactor as it is broken[1], and
 the twisted developers are disinclined to try to fix it.

 I can't find any answer to your bug report - what makes you think  
 they
 won't fix it - if it's a bug at all and not only a problem with your
 program or installation?

 I've been using both wxPython and twisted for a long time, and
 I'm quite sure it's not a problem with my installation.  Also,
 I discussed it with the twisted guys on #twisted before I sent
 the message to the list.
 ...
 Believe me, I would *love* for wxreactor to work, so if you can fix
 it, I will thank you heartily.  (That is beyond my skill -- I only  
 know
 how to show that it's broken.  ;)


I believe you, sorry for doubting - I just got it too often that  
someone says its' broken if there's only a problem on his machine.  
(And I tend to cry to the devs too early myself...)

Of course I didn't try your example - since then I never needed  
twisted again, and I completely forgot how to use it...

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)





___
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] Curious to use dabo with twisted

2008-09-16 Thread Henning Hraban Ramm
Am 2008-09-15 um 06:05 schrieb Stephen Waterbury:
 I would counsel against using wxreactor as it is broken[1], and
 the twisted developers are disinclined to try to fix it.

I can't find any answer to your bug report - what makes you think they  
won't fix it - if it's a bug at all and not only a problem with your  
program or installation?

 I suggest using Uwe Schroeder's recipe[2] in the Python Cookbook,
 which works fine.  (Pay no attention to the 2003 comment on the
 recipe saying that it is no longer necessary because there is a
 wxreactor -- wxreactor *is* broken.)


I used wxreactor last time back in 2006 on WinXP, at that time it  
worked without problems.

The file was last changed two months ago, that doesn't look  
unmaintained to me:
http://twistedmatrix.com/trac/browser/trunk/twisted/internet/wxreactor.py


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)





___
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-27 Thread Henning Hraban Ramm
Am 2008-08-27 um 18:26 schrieb Ed Leafe:

 On Aug 26, 2008, at 5:13 PM, Henning Hraban Ramm wrote:

 Hello, please, if you implement something in this direction, think
 about switching to standard logging - you can direct that to  
 anything.

   You will be pleased to find that the new debug output uses the
 standard Python logging module.


Great!
And sorry that I forgot again that I cannot send attachments.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)





___
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-26 Thread Henning Hraban Ramm

Am 2008-08-26 um 22:38 schrieb Ed Leafe:

 On Aug 26, 2008, at 2:41 PM, johnf wrote:

 Please may sure I can turn off the output to the GUI.  I like the
 fact that
 tracebacks and print statement are directed to standard out.

   There would be no output by the framework. It would be for debugging
 that you yourself insert. Think the the DEBUGOUT() command in VFP.


Hello, please, if you implement something in this direction, think  
about switching to standard logging - you can direct that to anything.

I could contribute a (not very clever) handler that logs to a dabo  
widget, see attachment; I also tried to redirect dabo's output to  
standard logging (and then to the same widget), but that's not  
completely working...


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




--- StripMime Report -- processed MIME parts ---
multipart/mixed
  text/plain (text body -- kept)
  text/x-python-script
---

___
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] Making an OS X App

2008-07-01 Thread Henning Hraban Ramm
Here's a sample setup.py from one of my projects. Never tested the windows part:

#!/usr/bin/env python
# -*- coding: utf-8 -*-

Setup settings for TerraTool

Usage (MacOS X):
python setup.py py2app

Usage (Windows):
python setup.py py2exe


import ez_setup
ez_setup.use_setuptools()

import os, sys
import dabo #, dabo.icons
from setuptools import setup

# locales:
daboDir = os.path.split(dabo.__file__)[0]
localeDir = os.path.join(daboDir, 'locale')
locales = [
('lib/python2.5/dabo.locale', ( os.path.join(localeDir,
'dabo.pot'), ) ),
('lib/python2.5/dabo.locale/de/LC_MESSAGES',
(os.path.join(localeDir, 'de', 'LC_MESSAGES', 'dabo.mo'),)),
('lib/python2.5/dabo.locale/en/LC_MESSAGES',
(os.path.join(localeDir, 'en', 'LC_MESSAGES', 'dabo.mo'),)),
('locale/de/LC_MESSAGES/terratool.mo'),
('locale/en/LC_MESSAGES/terratool.mo'),
]

mainscript = 'terratool.py'
NAME = 'TerraTool'
VERSION = '0.1.0'
APP = [mainscript]
DATA_FILES = locales
APP_OPTIONS = {
   'argv_emulation': True,
   'includes' : ['wx', 'wx.gizmos', 'wx.lib.calendar',
'dabo', 'Growl'], #, 'wx.lib.masked', 'dabo.icons',
   'excludes' : ['kinterbasdb', 'psycopg2', 'MySQLdb', 'numpy'],
   'iconfile' : 'appIcon.icns',
}
# includes must not reside in zipped eggs, i.e. install via
easy_install -Z foo

EXE_OPTIONS = {
}

plist = dict(
  CFBundleName= NAME,
  CFBundleShortVersionString= VERSION,
  CFBundleGetInfoString= '%s
%s' % (NAME, VERSION),
  CFBundleExecutable= NAME,
  CFBundleIdentifier= '
net.fiee.terratool',
  )


manifest = 
?xml version=1.0 encoding=UTF-8 standalone=yes?
assembly xmlns=urn:schemas-microsoft-com:asm.v1
manifestVersion=1.0
assemblyIdentity
version=0.64.1.0
processorArchitecture=x86
name=Controls
type=win32
/
descriptionTerraTool/description
dependency
dependentAssembly
assemblyIdentity
type=win32
name=Microsoft.Windows.Common-Controls
version=6.0.0.0
processorArchitecture=X86
publicKeyToken=6595b64144ccf1df
language=*
/
/dependentAssembly
/dependency
/assembly


if sys.platform == 'darwin':
APP_OPTIONS['plist'] = plist
extra_options = dict(
# Cross-platform applications generally expect sys.argv to
# be used for opening files.
setup_requires=['py2app'],
app=APP,
options={'py2app': APP_OPTIONS},
   )
elif sys.platform == 'win32':

windows = [
{
script: mainscript,
icon_resources: [(1, yourapplication.ico)],
other_resources: [(24,1,manifest)]
}
],
  data_files=[yourapplication.ico]


extra_options = dict(
 script = mainscript,
 setup_requires=['py2exe'],
 app=APP,
 )
else:
 extra_options = dict(
 # Normally unix-like platforms will use setup.py install
 # and install the main script as such
 scripts=APP,
 )


setup(
name=NAME,
data_files=DATA_FILES,
**extra_options
)


Greetlings, Hraban


___
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] Bug? ClassDesigner doesn't exit

2008-04-09 Thread Henning Hraban Ramm
Am 2008-04-09 um 19:53 schrieb Ed Leafe:

 Started class designer from CMD in W2k. Working on a panel class
 project.
 Saved it. Hit the X in the upper right on the 3 windows. The windows
 go away,
 but the prompt in the shell (CMD) never returns. Task manager shows
 python
 still running. Hitting Ctrl-C a couple of times seems to kill it.

 Bug?

   Is this consistent with all your designs? Were there any tracebacks
 involved that would have mucked up the works? I've seen that after an
 error, but that's all the way down in the wxPython levels.

I remember a similar problem with my wxPy apps some years ago  
(without dabo) - if you close the app with the close button (not via  
some proper Quit command), it tends to hang. Unfortunately I can't  
remember the solution.
Perhaps you could hook into the close event of the main window and  
bring down the app in some safe way...


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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] Pass through SQL

2008-02-12 Thread Henning Hraban Ramm
Am 2008-02-11 um 01:45 schrieb Adrian Klaver:

 Actually we are both correct. It does come in the binary  
 distributions but not
 when you compile from source (probably not an issue for most folks)  
 which is
 what tripped me up.

If you compile Python from source you have to provide several  
optional libraries yourself, at least GNU readline and SQLite.
(Just learned that myself yesterday, as I tried to make my Webserver  
run Django.)


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/dabo-users/[EMAIL PROTECTED]


[dabo-users] i18n suggestion

2008-01-21 Thread Henning Hraban Ramm
There was a discussion about i18n in dabo more than once...
I just came across a library that might help (and remove the need to  
cope with that strange gettext tools):
http://babel.edgewall.org

(I didn't try it yet. Its target are web apps, but it has no  
dependencies other than pytz.)

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/dabo-users/[EMAIL PROTECTED]


Re: [dabo-users] Standalone dabo games not running

2007-12-04 Thread Henning Hraban Ramm

 def _openDialog(self,evt):
 # need to receive the evt (in this case a click or Hit)
 evt.stop()
 theDialog=dabo.ui.dFileDialog(self)
 theDialog.show()
 if sys.platform == 'win32':
 myseperator = \\  # someone should post why I
 needed two slashes
 else:
 myseperator = /


You get the backslash simply this way:
   r'\' # this a raw Python string

In a normal Python string, the backslash starts a control character like
\n for newline or \t for tabulator - and \\ for backslash.

But just use os.sep instead of that myseparator distinction. Python does
that for you!
(I.e. os.sep is \ on Windows, / on Unices, : on MacOS Classic and maybe
something other on VMS...)




 Run our form or any Dabo form and type a control-d (might be something
 different for the Mac).


Every Control is a Command on the Mac, i.e. Cmd-D instead of Ctrl-D.
(Mac keyboards also have a Ctrl key, but that' seldom used at all and then
mostly for accessing additional characters.)

Greetlings,Hraban


--- 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/dabo-users/[EMAIL PROTECTED]


Re: [dabo-users] Standalone dabo games not running

2007-12-02 Thread Henning Hraban Ramm
Am 2007-12-01 um 20:40 schrieb johnf:

 Let's get started.
 ...
 A grid sizer is a spreadsheet where I set the column size and the  
 number of columns a control can span.

Will you put all that explanatory text in the Wiki? I like it.

You could compare the grid sizer to a HTML table rather than a  
spreadsheet, it's a more similar concept (auto-adapting to different  
sized input etc.)


 import dabo
 dabo.ui.loadUI('wx')

I suggest complete Python headers, including

#!/usr/bin/env python
# -*- coding: utf-8 -*-

Even if you don't need it, I consider it good style, and it avoids  
some newbie problems.


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/dabo-users/[EMAIL PROTECTED]


Re: [dabo-users] SecurityManager and py2app

2007-09-29 Thread Henning Hraban Ramm
Am 2007-09-28 um 17:45 schrieb Paul McNett:
 You should include dabo.icons as there are lots of icons in there that
 will likely get used on your toolbars, etc. While you don't need the
 dabo icon itself if you don't use it, it wouldn't add too much to your
 overhead to just include it if that's easiest.

My small* app doesn't need any toolbars or other icons.
Of course I tried to include the icons, but I didn't manage to find  
the right path for them - can't stuff them into the site- 
packages.zip. Just import dabo.icons wasn't enough.

* looks small, needs only one dialog, but has the usual ca. 50 MB...

 I couldn't find any hooks to change the login dialog. Are there any?
 I don't need no logo there, and I'd like to change the labels   
 title also!

 Override app.getLoginInfo, instantiating your own dialog and returning
 user/pass.
 http://paul.dabodev.com/doc/api/dabodoc/ 
 dabo.dApp.dApp.html#Methods_getLoginInfo

Thank you, I think that is what I was looking for.
Should I have known (without tracing the sourcecode) that that's a  
property of dApp and not dSecurityManager?


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/dabo-users/[EMAIL PROTECTED]


Re: [dabo-users] SecurityManager and py2app

2007-09-29 Thread Henning Hraban Ramm
Am 2007-09-29 um 22:09 schrieb Paul McNett:
 Henning Hraban Ramm wrote:
 My small* app doesn't need any toolbars or other icons.
 Of course I tried to include the icons, but I didn't manage to find
 the right path for them - can't stuff them into the site-
 packages.zip. Just import dabo.icons wasn't enough.

 * looks small, needs only one dialog, but has the usual ca. 50 MB...

 After compiling my largish app with py2exe, using the same setup.py  
 that
 the AppWizard uses, I get a 34 MB or so package. Then, I use InnoSetup
 to make a setup.exe and that's only about 10 MB.

It depends on dependencies ;-)

And maybe OSX apps are generally too big due to universal binary code.

In this case I don't need any Db connection (besides sqlite for the  
preferences), but urllib and some other, and somewhere are some  
oversized dependencies. Unfortunately wxPython doesn't work if you  
leave out unused stuff (like wx.lib.calendar and wx.gizmos).
I guess I can hunt down some more unnecessary includes, but while I  
work at new features I fear the size will probably increase.

Remember, I told you about this interface to a web application:  
desktop client for a content management system (web system, but  
content for print).
It'll grow an FTP browser and become a specialized up-/download  
client with image check (PIL, oh no, more megabytes!)...

I'm playing with another script, that uses appscript to remote  
control InDesign: create pages from templates, place articles  
(written by the above mentioned app) and soon also the related  
pictures - at the moment we create about 220 pages of a city magazine  
in about 100 hours (including image processing etc.), soon we'll need  
a bit less.
When I started, we needed as much time for less than 100 pages (only  
1 regional issue, now 3).
I resent only that I wrote the web system in PHP (just exploring  
Django).

Getting completely off topic...

 Override app.getLoginInfo, instantiating your own dialog and  
 returning
 user/pass.
 http://paul.dabodev.com/doc/api/dabodoc/
 dabo.dApp.dApp.html#Methods_getLoginInfo
 Thank you, I think that is what I was looking for.
 Should I have known (without tracing the sourcecode) that that's a
 property of dApp and not dSecurityManager?
 No, not really. Until we improve our documentation, that's what we are
 here for!

I very much appreciate your work!

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/dabo-users/[EMAIL PROTECTED]


Re: [dabo-users] SecurityManager and py2app (was: No translation file found)

2007-09-28 Thread Henning Hraban Ramm
 Traceback (most recent call last):
   File /Users/user/Documents/workspace/akzent.maus.info/non-web/dist/edNet
 Exporter.app/Contents/Resources/__boot__.py, line 137, in module
 _run('exporter.py')
   File /Users/user/Documents/workspace/akzent.maus.info/non-web/dist/edNet
 Exporter.app/Contents/Resources/__boot__.py, line 134, in _run
 execfile(path, globals(), globals())
   File /Users/user/Documents/workspace/akzent.maus.info/non-web/dist/edNet
 Exporter.app/Contents/Resources/exporter.py, line 252, in module
 main()
   File /Users/user/Documents/workspace/akzent.maus.info/non-web/dist/edNet
 Exporter.app/Contents/Resources/exporter.py, line 245, in main
 app.start()
   File dabo/dApp.pyc, line 286, in start
   File dabo/dSecurityManager.pyc, line 23, in login
   File dabo/dApp.pyc, line 318, in getLoginInfo
   File dabo/ui/uiwx/dDialog.pyc, line 207, in __init__
   File dabo/ui/uiwx/dDialog.pyc, line 37, in __init__
   File dabo/ui/uiwx/dDialog.pyc, line 227, in _addControls
   File dabo/ui/uiwx/dDialog.pyc, line 99, in _addControls
   File dabo/ui/dialogs/login.pyc, line 73, in addControls
   File dabo/ui/uiwx/dImage.pyc, line 42, in __init__
   File dabo/ui/uiwx/dImage.pyc, line 198, in _setPic
   File posixpath.pyc, line 171, in exists
 TypeError: coercing to Unicode: need string or buffer, NoneType found

I guess this is because the login dialog tries to find the dabo logo
and doesn't find it, because I didn't include it in my app (why should
I?).

I couldn't find any hooks to change the login dialog. Are there any?
I don't need no logo there, and I'd like to change the labels  title also!

Greetlings, Hraban


___
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/dabo-users/[EMAIL PROTECTED]


Re: [dabo-users] No translation file found

2007-09-28 Thread Henning Hraban Ramm
 My py2app data_files use the locales:

 localeDir = os.path.join(os.path.split(dabo.__file__)[0], 'locale')
 locales = [
 ('dabo.locale', ( os.path.join(localeDir, 'dabo.pot'), ) ),
 ('dabo.locale/de/LC_MESSAGES', (os.path.join(localeDir, 'de',
 'LC_MESSAGES', 'dabo.mo'),)),
 ('dabo.locale/en/LC_MESSAGES', (os.path.join(localeDir, 'en',
 'LC_MESSAGES', 'dabo.mo'),)),
 ]

It works with 'lib/python2.5/dabo.locale' instead of just 'dabo.locale'.
But is that how it is supposed to be?

Now I run into other errors, don't know if related:

Traceback (most recent call last):
  File /Users/user/Documents/workspace/akzent.maus.info/non-web/dist/edNet
Exporter.app/Contents/Resources/__boot__.py, line 137, in module
_run('exporter.py')
  File /Users/user/Documents/workspace/akzent.maus.info/non-web/dist/edNet
Exporter.app/Contents/Resources/__boot__.py, line 134, in _run
execfile(path, globals(), globals())
  File /Users/user/Documents/workspace/akzent.maus.info/non-web/dist/edNet
Exporter.app/Contents/Resources/exporter.py, line 252, in module
main()
  File /Users/user/Documents/workspace/akzent.maus.info/non-web/dist/edNet
Exporter.app/Contents/Resources/exporter.py, line 245, in main
app.start()
  File dabo/dApp.pyc, line 286, in start
  File dabo/dSecurityManager.pyc, line 23, in login
  File dabo/dApp.pyc, line 318, in getLoginInfo
  File dabo/ui/uiwx/dDialog.pyc, line 207, in __init__
  File dabo/ui/uiwx/dDialog.pyc, line 37, in __init__
  File dabo/ui/uiwx/dDialog.pyc, line 227, in _addControls
  File dabo/ui/uiwx/dDialog.pyc, line 99, in _addControls
  File dabo/ui/dialogs/login.pyc, line 73, in addControls
  File dabo/ui/uiwx/dImage.pyc, line 42, in __init__
  File dabo/ui/uiwx/dImage.pyc, line 198, in _setPic
  File posixpath.pyc, line 171, in exists
TypeError: coercing to Unicode: need string or buffer, NoneType found

Greetlings, Hraban


___
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/dabo-users/[EMAIL PROTECTED]


[dabo-users] No translation file found

2007-09-28 Thread Henning Hraban Ramm
Hi there,
following the advice Paul gave to Simen I tried to get my application
running again, but had no sucess yet.

  File dabo/__init__.pyc, line 128, in module
  File dabo/dLocalize.pyc, line 53, in install
  File dabo/dLocalize.pyc, line 73, in setLanguage
  File gettext.pyc, line 469, in translation
IOError: [Errno 2] No translation file found for domain: 'dabo'

My py2app data_files use the locales:

localeDir = os.path.join(os.path.split(dabo.__file__)[0], 'locale')
locales = [
('dabo.locale', ( os.path.join(localeDir, 'dabo.pot'), ) ),
('dabo.locale/de/LC_MESSAGES', (os.path.join(localeDir, 'de',
'LC_MESSAGES', 'dabo.mo'),)),
('dabo.locale/en/LC_MESSAGES', (os.path.join(localeDir, 'en',
'LC_MESSAGES', 'dabo.mo'),)),
]

The dabo.locale directory is created in my App's Resources.
What's wrong?


Greetligs, Hraban


___
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/dabo-users/[EMAIL PROTECTED]


Re: [dabo-users] Python Version Survey

2007-09-07 Thread Henning Hraban Ramm
2007/9/6, Henning Hraban Ramm [EMAIL PROTECTED]:
 I'm using still Python 2.4.4 because it works for me - pure laziness
 to upgrade all those modules.

I know why I hesitated: There's still no pre-built MySQLdb for Python
2.5 on OS X.
Just trying to build it myself, but since you need the MySQL sources,
it's surely not for everybody.

Greetlings, Hraban


___
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/dabo-users/[EMAIL PROTECTED]


Re: [dabo-users] Python Version Survey

2007-09-06 Thread Henning Hraban Ramm
Am 2007-09-06 um 19:04 schrieb Ed Leafe:

   Just an informal survey: how many people out there are using Python
 versions *earlier* than 2.5? And out of those, how many would not be
 able to upgrade, or would not want to upgrade? Please explain why
 upgrading would not be possible/desirable.

   If you are using Python 2.5, or are planning on upgrading real soon
 now, please don't respond. I'm just trying to get an idea of the
 issues that are preventing or discouraging people from moving from
 older versions.

I'm using still Python 2.4.4 because it works for me - pure laziness  
to upgrade all those modules.

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org (I'm an assurer)




___
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/dabo-users/[EMAIL PROTECTED]


Re: [dabo-users] dabo as fat-client for a web service?

2007-08-17 Thread Henning Hraban Ramm
ARGL, I should spellcheck my postings...

2007/8/17, Henning Hraban Ramm [EMAIL PROTECTED]:
 I'm using a dabo client successfully with a webclient:

 We've an editorial content management system as a web app. The client
 pulls the articles, formats them as InDesign tagged text (event
 calendar data also as XML) and saves them to a local dir tree (that's
 why we can't use the web app for export).
 The client fills the normal login form, grabs the session handle and
 then calls a backend page, that provides the data as JSON. Not
 only the articles, but also metadata like issues, topics etc.

 The layers:
 - GUI is handcoded; I use mostly adapted classes that know how to
 handle our special data. I guess there's already too much processing
 logic in it (path handling etc.)
 - BIZ (workflow, export what to where) is mostly in the main app.
 - BACKEND is a webclient class that knows how to handle our special
 connection, how to get data and how to convert JSON to pythonic dicts
 and lists.
 - EXPORTERS (called by the main app) format the pythonic data into the
 stuff we need (InDesign is very picky - claims to understand unicode
 data, but takes only UTF-16 without BOM and with Mac XOR Win
 lineendings. Lots of errors in the tags documentation. etc.)

 So I didn't subclass dBizobj because I didn't see how it would fit my needs.
 And I'm not really used to 3T programming ;-)


 Greetlings, Hraban



___
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/dabo-users/[EMAIL PROTECTED]


Re: [dabo-users] dabo as fat-client for a web service?

2007-08-17 Thread Henning Hraban Ramm
 So... Dabo is pure GUI. Do you use the dApp object? Do you subclass and
 instantiate Dabo's UI classes or just instantiate and use?

I use subclasses of dApp, dSecurityManager, and several UI classes,
and only a few original UI classes (I often sublass even for single
use, because I find it more concise).

Thanks for your great work!

BTW: I'm running daily SVN updates in a cronjob, otherwise I'd have to
keep track on too much projects.

Greetlings, Hraban


___
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/dabo-users/[EMAIL PROTECTED]


  1   2   >