[tryton-dev] tryton: set_value of M2O must simulate a focus-out in case it did not yet occur (issue408001)

2012-06-21 Thread cedric . krier

Reviewers: ,



Please review this at http://codereview.tryton.org/408001/

Affected files:
  M tryton/gui/window/view_form/view/form_gtk/many2one.py


Index: tryton/gui/window/view_form/view/form_gtk/many2one.py
===

--- a/tryton/gui/window/view_form/view/form_gtk/many2one.py
+++ b/tryton/gui/window/view_form/view/form_gtk/many2one.py
@@ -106,7 +106,7 @@
 def id_from_value(value):
 return value

-def sig_activate(self, widget, event=None, key_press=False):
+def sig_activate(self, widget=None, event=None, key_press=False):
 if not common.MODELACCESS[self.get_model()]['read']:
 return
 if not self.focus_out or not self.field:
@@ -117,7 +117,7 @@

 self.focus_out = False
 if model and not self.has_target(value):
-if not key_press and not event:
+if not key_press and not event and widget:
 widget.emit_stop_by_name('activate')
 if (not self._readonly
 and (self.wid_text.get_text()
@@ -282,7 +282,8 @@
 return False

 def set_value(self, record, field):
-pass  # No update of the model, the model is updated in real time !
+# Simulate a focus-out
+self.sig_activate()

 def set_text(self, value):
 if not value:



--
tryton-dev@googlegroups.com mailing list


[tryton-dev] tryton: Fix text replacement on Many2One (issue409001)

2012-06-21 Thread cedric . krier

Reviewers: ,



Please review this at http://codereview.tryton.org/409001/

Affected files:
  M tryton/gui/window/view_form/view/form_gtk/many2one.py


Index: tryton/gui/window/view_form/view/form_gtk/many2one.py
===

--- a/tryton/gui/window/view_form/view/form_gtk/many2one.py
+++ b/tryton/gui/window/view_form/view/form_gtk/many2one.py
@@ -27,7 +27,7 @@
 self.wid_text.set_property('width-chars', 13)
 self.wid_text.set_property('activates_default', True)
 self.wid_text.connect('key-press-event', self.send_modified)
-self.wid_text.connect_after('key_press_event', self.sig_key_press)
+self.wid_text.connect('key_press_event', self.sig_key_press)
 self.wid_text.connect('populate-popup', self._populate_popup)
 self.wid_text.connect('focus-in-event', lambda x, y:  
self._focus_in())

 self.wid_text.connect('focus-out-event',
@@ -267,6 +267,10 @@
 elif (event.keyval in (gtk.keysyms.Tab, gtk.keysyms.Return)
 and editable):
 self.sig_activate(widget, event, key_press=True)
+elif (self.has_target(self.field.get(self.record))
+and event.keyval in (gtk.keysyms.Delete,
+gtk.keysyms.BackSpace)):
+self.wid_text.set_text('')
 return False

 def sig_changed(self, *args):
@@ -275,9 +279,14 @@
 value = self.field.get(self.record)
 if self.has_target(value):
 def clean():
+text = self.wid_text.get_text()
+position = self.wid_text.get_position()
 self.field.set_client(self.record,
 self.value_from_id(None, ''))
 self.display(self.record, self.field)
+# Restore text and position after display
+self.wid_text.set_text(text)
+self.wid_text.set_position(position)
 gobject.idle_add(clean)
 return False




--
tryton-dev@googlegroups.com mailing list


[tryton-dev] tryton: Make Import/Export Data no-modal (issue410001)

2012-06-21 Thread cedric . krier

Reviewers: ,



Please review this at http://codereview.tryton.org/410001/

Affected files:
  M CHANGELOG
  M tryton/gui/window/form.py
  M tryton/gui/window/win_export.py
  M tryton/gui/window/win_import.py


--
tryton-dev@googlegroups.com mailing list


[tryton] Asking for password, re-authentitcation

2012-06-21 Thread Tristian Paul Lopez Azuara
Hi all, is there a way to ask for a password in a wizard or on the write 
method of a model, or maybe a password widget to show 
in the wizard, I've looked into the form.rnc file and there's no password 
widget, I need this because I have a particular wizard that has 
to authenticate two users in order to be completed. What alternatives do I 
have for this?.

regards, Tristian.

-- 
-- 
tryton@googlegroups.com mailing list





[tryton] proble with attachment tryton

2012-06-21 Thread pjalrimba rimbabara
Dear all
I have a problem with the attachment using tryton. When I save my document 
at attachment this error appear: 

OSError: [Errno 13] Permission denied: '/var/lib/trytond/

How to resolve this problem... 

-- 
-- 
tryton@googlegroups.com mailing list





Re: [tryton] Asking for password, re-authentitcation

2012-06-21 Thread Cédric Krier
On 20/06/12 17:31 -0700, Tristian Paul Lopez Azuara wrote:
 Hi all, is there a way to ask for a password in a wizard or on the write 
 method of a model, or maybe a password widget to show 
 in the wizard, I've looked into the form.rnc file and there's no password 
 widget, I need this because I have a particular wizard that has 
 to authenticate two users in order to be completed. What alternatives do I 
 have for this?.

You can use widget=sha

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: cedric.kr...@b2ck.com
Website: http://www.b2ck.com/


pgpzvbt4M7XW1.pgp
Description: PGP signature


Re: [tryton] Tryton start error after activate xml-rpc protocol

2012-06-21 Thread Raimon Esteve
2012/6/21 TPH truckparts-hamb...@gmx.de:
 after I set in Tryton 2.4 /etc/trytond.conf xmlrpc = True and xmlport =
 8069 I can no longer start Tryton. I get this message:
 #AttributeError: 'bool' object has no attribute 'split'

XML-RPC options are:

# Activate the xml-rpc protocol
xmlrpc = *:8069 # = change port connection
#ssl_xmlrpc = False

Review default tryton.conf in /etc directory trytond. See differences
to old versions.

-- 
Si us plau, NO adjunti arxius a les seves respostes. Li preguem que
integri el text al cos del missatge. Pot respondre usant NetEtiquete
que li ajudarà a seguir la conversa.
http://es.wikipedia.org/wiki/Netiquette

Por favor, NO adjunte archivos a sus respuestas. Le rogamos que
integre el texto en el cuerpo del mensaje. Puede responder usando
NetEtiquete que le ayudará a seguir la
conversación.http://es.wikipedia.org/wiki/Netiquette

Please, DO NOT send attachment files with your answers, just copy and
paste only the text you need to send into the body of your mails.
Repply using NetEtiquete. http://en.wikipedia.org/wiki/Netiquette

-- 
-- 
tryton@googlegroups.com mailing list





[tryton] Directly editing product in finished sales is no longer possible

2012-06-21 Thread TPH
Very often I have edited product names when I see them in a sale who is 
finished. Now It is no longer possible to open and edit sale direktly from 
a comlished sale. They are now grey. Also editing Customer is no longer 
possible. I use tryton in produktiv way and for me this very often a fast 
option to correct entrys for products or customers.

-- 
-- 
tryton@googlegroups.com mailing list





Re: [tryton] Tryton Tutorial or ebook

2012-06-21 Thread Raimon Esteve
2012/6/15 avfc services avfcservi...@gmail.com:
 Is there any tutorial or ebook (pdf ) is available for tryton installation,
 Modules , Trouble shooting, Version control etc ?

http://code.google.com/p/tryton/wiki/TableOfContents?tm=6
https://docs.google.com/document/d/1wPjdd965wy0_WlQCu8nCw1zl9GJ9xa2jQHQflpiBx98/edit?authkey=CLK6q9gKhttp://example.compli=1

-- 
Si us plau, NO adjunti arxius a les seves respostes. Li preguem que
integri el text al cos del missatge. Pot respondre usant NetEtiquete
que li ajudarà a seguir la conversa.
http://es.wikipedia.org/wiki/Netiquette

Por favor, NO adjunte archivos a sus respuestas. Le rogamos que
integre el texto en el cuerpo del mensaje. Puede responder usando
NetEtiquete que le ayudará a seguir la
conversación.http://es.wikipedia.org/wiki/Netiquette

Please, DO NOT send attachment files with your answers, just copy and
paste only the text you need to send into the body of your mails.
Repply using NetEtiquete. http://en.wikipedia.org/wiki/Netiquette

-- 
-- 
tryton@googlegroups.com mailing list





Re: [tryton] Tryton start error after activate xml-rpc protocol

2012-06-21 Thread Truckparts Hamburg COM
I read already config in 2.4 /etc/

Thats why I used

xmlport =  *:8069
ssl_xmlrpc = False

instead of

xmlrpc = True
xmlport = 8069

But Tryton still only listening on 8000.

In conf of 2.4 I also read ssl_xmlrpc = ...

But no mather if True or False is raise an error so what do you mean
with look at 2.4 /etc/conf?







Am Donnerstag, den 21.06.2012, 19:20 +0200 schrieb Raimon Esteve:
 2012/6/21 TPH truckparts-hamb...@gmx.de:
  after I set in Tryton 2.4 /etc/trytond.conf xmlrpc = True and xmlport =
  8069 I can no longer start Tryton. I get this message:
  #AttributeError: 'bool' object has no attribute 'split'
 
 XML-RPC options are:
 
 # Activate the xml-rpc protocol
 xmlrpc = *:8069 # = change port connection
 #ssl_xmlrpc = False
 
 Review default tryton.conf in /etc directory trytond. See differences
 to old versions.
 
 -- 
 Si us plau, NO adjunti arxius a les seves respostes. Li preguem que
 integri el text al cos del missatge. Pot respondre usant NetEtiquete
 que li ajudarà a seguir la conversa.
 http://es.wikipedia.org/wiki/Netiquette
 
 Por favor, NO adjunte archivos a sus respuestas. Le rogamos que
 integre el texto en el cuerpo del mensaje. Puede responder usando
 NetEtiquete que le ayudará a seguir la
 conversación.http://es.wikipedia.org/wiki/Netiquette
 
 Please, DO NOT send attachment files with your answers, just copy and
 paste only the text you need to send into the body of your mails.
 Repply using NetEtiquete. http://en.wikipedia.org/wiki/Netiquette
 
 -- 

-- 
-- 
tryton@googlegroups.com mailing list