El 05/10/16 a les 13:00, Khurram Shahzad ha escrit:
Dear All,
I am updating some modules as per requirement of our company.
How can I log from within modules to console/log file?
Yes, you can use the python logging module:
https://docs.python.org/2.7/library/logging.html
Is there any way that I can show information in dialogue boxes. This
information is basically some text messages along with values of some
variables.
And when do you want to show this information?
El 05/10/16 a les 14:39, Khurram Shahzad ha escrit:
I have made some changes in a button's action handler. And just want toThen you should create a wizard that presents the information to the user and decorate your button function with button_acction[1] with the xml id of the new wizard action to execute it when the button have been finished.
show an information dialogue box at the end of an action.
[1] http://doc.tryton.org/4.0/trytond/doc/ref/models/models.html?highlight=button_action#trytond.model.ModelView.button_action
On 2016-10-05 17:39, Khurram Shahzad wrote:
> >> Is there any way that I can show information in dialogue boxes. This
> >> information is basically some text messages along with values of some
> >> variables.
> >>
> >
> > And when do you want to show this information?
>
> I have made some changes in a button's action handler. And just want to
> show an information dialogue box at the end of an action.
You must use a wizard for that.
El 5 oct. 2016 2:10 p. m., "Cédric Krier" <cedric...@b2ck.com> escribió:
>
> On 2016-10-05 13:13, Sergi Almacellas Abellana wrote:
> > > Is there any way that I can show information in dialogue boxes. This
> > > information is basically some text messages along with values of some
> > > variables.
> >
> > And when do you want to show this information?
>
> I guess he means a way to notify the user.
> I think we already discussed about that (can not find it) and the idea
> was that the client could do a long polling connection and the server
> side we use listen/notify (only postgresql) and a API to send
> notification. The advantage is that it could be used also to notify with
> on_change.
> Someone should write a blueprint for that.
In the "System Messages" topic in Discuss (https://discuss.tryton.org/t/system-messages/109/4) we talked the possibility to use XMPP protocol for this "push notifications".
Guillem