Hi, Dmitry
You've got a unicode string. So you need to convert it to a str type
with utf-8 sequence in it. Use encode() method of unicode type:
>>> s = u'\u041f\u0435\u0440\u0435\u043d\u043e\u0441 \u0441\u0440\u0435
\u0434\u0441\u0442\u0432 \u0441\u043e \u0441\u0447\u0435\u0442\u0430
\u0432 \u043
Massimo, my decision can fix this issue:
http://code.google.com/p/web2py/issues/detail?id=1677
Can you apply my patch ?
With the best regards,
Vladyslav Kozlovskyy
Chernivtsi, Ukraine
У ср, 2013-09-25 у 21:42 -0700, Massimo Di Pierro пише:
> Yes the produce the same output but while T.
T.M() uses MARKMIN (see docs in attachment). Using MARKMIN you can
create message with link, img, tables, bold, italic, colors and so on.
Vlad
У ср, 2013-09-25 у 07:20 -0700, Anthony пише:
> var ajax_error_500 = '{{=T.M('An error occurred, please
> [[reload %s]] the page') % U
500 = '{{=T.M('An error occurred, please [[reload %s]] the
page') % URL(args=request.args, vars=request.get_vars) }}'
//-->
{{
response.files.insert(0,URL('static','js/jquery.js'))
response.files.insert(1,URL('static','css/calendar.css
Thank you for your fix. I'll create the patch.
With the best regards
Vlad Kozlovskyy
Chernivtsi, Ukraine
У пн, 2013-09-23 у 13:29 -0700, mcamel пише:
> El domingo, 22 de septiembre de 2013 12:59:23 UTC+2, dbdeveloper
> escribió:
>
> > # This rule isn't perfect but covers many cases. Comp
Hi
У сб, 2013-09-21 у 09:18 -0700, mcamel пише:
> Ok. I did so and worked fine.
>
> I supposed words needed to be included in translation file once, but
> in fact, expressions including words has to be included also in the
> dictionary as if they were words itself.
web2py localisation subsystem
files manually as a Python source file.
У сб, 2013-09-21 у 02:23 +0300, Vladyslav Kozlovskyy пише:
> It is not an issue. It's only a small misunderstanding. :)
>
> There are correct steps how to create application with working
> pluralization system:
>
> 1. Create a simple
side "Plural-Forms:
plural-es.py" and add plural form for "objeto" word: "objetos" then
click "Update" and leave this screen by clicking [Edit] menu item on the
top of the screen.
9. Access app/default/index
Hope this explanation can help you to understa
uel Cameselle.
>
>
> El jueves, 19 de septiembre de 2013 12:10:08 UTC+2, dbdeveloper
> escribió:
>
> this problem happens because pluralisation templates %
> %{word} works with real python placeholders %s only
>
> see explanation in attach
4. Create languages/plural-es.py, with: {'object': ['objectos'],}
Please try to replace 'object' with 'objecto'. In plural-*.py must be
native language only.
Vladyslav Kozlovskyy
У ср, 2013-09-18 у 16:00 -0700, Massimo Di Pierro пише:
> Can you please
Done
У пн, 2012-10-15 у 13:34 -0700, Massimo Di Pierro пише:
> OK. send me a patch. :-)
>
> On Monday, 15 October 2012 12:44:48 UTC-5, Fran wrote:
>
> On 15 October 2012 18:36, Vladyslav Kozlovskyy
> wrote:
> > We have [is_gae] variable in
sure, it's a right decision :)
У пн, 2012-10-15 у 18:44 +0100, Fran Boon пише:
> On 15 October 2012 18:36, Vladyslav Kozlovskyy wrote:
> > We have [is_gae] variable in [gluon/languages.py] to avoid writting dicts in
> > Google AppEngine.
> > All we need is to make
setings.global_settings.languages_readonly # or use better varname :)
With the best regards,
Vladyslav Kozlovskyy (Ukraine)
У пн, 2012-10-15 у 13:51 -0300, Vinicius Assef пише:
> I'd like to have a global (app wide) option to not override my language files.
>
>
>
> On Mo
utolinks)
disable autolinks:
render(., autolinks=None)
use other autolinks:
from gluon.contrib.autolinks import expand_one
render(, autolinks=lambda url: expand_one(url, {}) )
Your decision?
Vladyslav Kozlovskyy
28.07.12 17:36, Massimo Di Pierro на
l)
render(., autolinks=default_autolinks)
disable autolinks:
render(., autolinks=None)
use other autolinks:
from gluon.contrib.autolinks import expand_one
render(, autolinks=lambda url: expand_one(url, {}) )
Your decision?
Vladyslav Kozlovskyy
28.07.12 17:36, Massimo Di Pierro напи
ckward compatibility?
Vladyslav Kozlovskyy
28.07.12 01:57, Massimo Di Pierro написав(ла):
I think embed:http://url should be deprecated in MARKMIN.
It think if a url is found and not marked-up whether or not prefixed with
"embed:" the url should be precessed by the function
well, give me an example of correct iframe and embed output and I'll change
markmin. ok?
Vladyslav Kozlovskyy (Ukraine)
26.07.12 16:40, Jose ???(??):
El jueves, 26 de julio de 2012 02:04:21 UTC-3, dbdeveloper escribió:
Hi, Jose!
try 'iframe' in
():
import datetime
d=datetime.datetime.strptime('2012-07-18 10:00:00', '%Y-%m-%d %H:%M:%S')
T.force('ro')
return locals()
2. copy test.html (see attachment) into
applications/welcome/views/default/test.html
3. open page http://127.0.0.1:8000/welcome/default/
t;>http://www.youtube.com/embed/x1w8hKTJ2Co'
*>>> markmin2html('iframe:http://www.youtube.com/embed/x1w8hKTJ2Co')*
'http://www.youtube.com/embed/x1w8hKTJ2Co"; frameborder="0"
allowfullscreen>'
Vladyslav Kozlovskyy (Ukraine)
26.07.12 05:07, Jos
ctrlSoft, is issue still present ?
Vladyslav Kozlovskyy (Ukraine)
23.07.12 13:32, ctrlSoft ???(??):
datetime format is: 2012-07-18 10:00:00
hi in view i have following code:
{{=prettydate(row.deadline,T)}}
but result is :
%d days ago
%d days ago
%d days ago
%d days ago
...
1 week ago
1
you are welcome! :)
20.07.12 17:02, Alec Taylor написав(ла):
Thanks, seems Massimo just fixed it also
So thanks to both of you :)
On Fri, Jul 20, 2012 at 9:39 PM, Vladyslav Kozlovskyy wrote:
in gluon/validators.py replace line 2582:
OLD: key = self.crypt.key.split(':')[1]
in gluon/validators.py replace line 2582:
OLD: key = self.crypt.key.split(':')[1] if ':' in self.crypt.key else ''
NEW: key = self.crypt.key.split(':')[1] if self.crypt.key and ':' in
self.crypt.key else ''
and restart web2py
With t
Sorry, but I didn't find a mistake in markmin module. Probably it's a
wiki-plugin issue. But I'm not familiar with this module yet.
With the best regards,
Vladyslav Kozlovskyy (Ukraine)
16.07.12 10:06, Vladyslav Kozlovskyy написав(ла):
I known where is a problem. I'
I known where is a problem. I'll fix it
Vladyslav
16.07.12 06:15, villas написав(ла):
Regarding widgets, the trunk version seems to have introduced a problem.
In the past I could do this as per the book:
``
name:mywidget
``:widget
But now this fails because of the first empty line. I can w
24 matches
Mail list logo