main logo
Subject: Re: [dabo-users] SecurityManager and py2app
Author: Henning Hraban Ramm
Posted: 2007/09/29 16:09:12
 
View Entire Thread
New Search


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)





 
©2007 Henning Hraban Ramm
<-- Prior Message New Search Next Message -->