on proteusing gnuhealth Hello World


This is on what I stumbled when I search around and asked why there is no obvious answer to a problem such as this:

13:09 wsirc_763 hi,
13:11 wsirc_763 Want to connect to a locally freshly installed gnuhealth with proteus.
13:11 wsirc_763 config = config.set_trytond(database_name=’gnuhealth’,database_type=’postgresql’, password=’344erf4nh4′, config_file = ‘/home/gnuhealth/gnuhealth/tryton/server/config/trytond.conf’)
13:11 wsirc_763 ImportError: cannot import name CONFIG
13:13 wsirc_763 can enter that server manually but still can not enter it with console. Any idea? Thank you.


 #The running hello world:
from proteus import config, Model
config = config.set_trytond(database_name=’aaa’,database_type=’postgresql’, password=’admin’)
# connect to running
#config.set_trytond(database_name=’gnuhealth’,database_type=’postgresql’, password=’444nh4′,config_file=/home/gnuhealth/gnuhealth/tryton/server/config/trytond.conf)
#feedback at data base, check
Module = Model.get(‘ir.module.module’)
sale_module, = Module.find([(‘name’, ‘=’, ‘sale’)])
sale_module.state #Out[33]: u’uninstalled’


Actually this is a way I had prepared to login on a sample server that comes with debian installation server – we got a server out of the source pocket.  So uptonow nobody is speaking with us about proteus. And then? You could have a closer look on the tool previously? And then if you find bugs and or feature gaps, repair the whole stuff in order to use it? Hopefully not.

We are concentrating now on the function:

proteus.config,config.set_trytond() this is the function to be expected the login-into-gnuhealthorwhatever function.

Who had problems with it?

https://www.google.de/search?q=config.set_trytond%28%29&biw=1000&bih=600&ei=lqtYVZPXPIagNsHmgYgL&start=10&sa=N#q=%22config.set_trytond%28%29%22+postgres – almost nobody.

How often applicated?

How is the packaging on proteus structured?




Ok, this could be the most prominent example of having our method been used for.  I do not know what speaks against proteus?

export PYTHONPATH=”/home/gnuhealth/gnuhealth/tryton/server/trytond-3.4.3/bin”
config.set_trytond(database_name=’gnuhealth’,database_type=’postgresql’, password=’444nh4′,config_file=/home/gnuhealth/gnuhealth/tryton/server/config/trytond.conf)

Exception: Module health_pediatrics not found

Ok, wei passed, we are still in this very function and it reclaims us to do what? I have not ordered him to search one I guess. Just to do the login? Where is the point of this message in this very situation?

gnuhealth@:~/gnuhealth/tryton/server/trytond-3.4.3/bin $ find /home/gnuhealth/gnuhealth/ -type d|wc
333 333 23730
gnuhealth@:~/gnuhealth/tryton/server/trytond-3.4.3/bin $ find /home/gnuhealth/gnuhealth/ -type d|grep demo

The demo is out: No it is not?

gnuhealth@:~/gnuhealth/tryton/server/trytond-3.4.3/bin $ find /home//gnuhealth-2.8.1 -name “serverpass*”
Where is the old one?


config = set_config(database, password)


def set_config(database, password):
return pconfig.set_trytond(database, password=password)

here he jumps to proteus sources. How was it invoked?

gnuhealth@:~/gnuhealth/tryton/server/trytond-3.4.3/bin $ ls
trytond wc
gnuhealth@:~/gnuhealth/tryton/server/trytond-3.4.3/bin $ python /home/gnuhealth/gnuhealth-2.8.1/scripts/demo/health_demo_server.py

I used that script and ok, it baked me the binary there.User name: adminPassword: admin hm

 Next order from head quarter: Login to https://en.wikibooks.org/wiki/GNU_Health/The_Demo_database#Online_Demo_Database !



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s