self.ErrorMessages = _('Problem with data of Waybill') ' %s: %s \n' %
( the_waybill, str( errorObj.code ) )

there is an error in this statement. i do not know if this is a valid
python assignment statement
becoz what i want to assign to self.errormessages is Problem with data
of waybill (-value in- -variable  waybill--) : (errorobjcode) .
Problem with data of waybill is a translatable string.
On Jul 18, 9:14 pm, "Cal Leeming [Simplicity Media Ltd]"
<cal.leem...@simplicitymedialtd.co.uk> wrote:
> Something like this?
>
> _str = _('Problem with data of Waybill')
> _str2 = "%s: %s \n" % ( the_waybill, str( errorObj.code ) )
> self.ErrorMessages = "%s %s" % ( _str, _str2)
>
> (i split into two parts to make it easier on the eyes)
>
> Cal
>
> On Mon, Jul 18, 2011 at 5:59 PM, NISA BALAKRISHNAN <
>
>
>
>
>
>
>
> snisa.balakrish...@gmail.com> wrote:
> > what is the correct syntax for this:
> > self.ErrorMessages = _('Problem with data of Waybill') '%s: %s \n' %
> > ( the_waybill, str( errorObj.code ) )
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To post to this group, send email to django-users@googlegroups.com.
> > To unsubscribe from this group, send email to
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to