Commit fdae526a authored by Ivan Tyagov's avatar Ivan Tyagov

When generating URL do quote.

parent 1e5c8c7e
......@@ -57,6 +57,7 @@
\n
from Products.ERP5Type.Message import Message\n
from Products.ERP5Type.Document import newTempBase\n
from Products.PythonScripts.standard import url_quote\n
from string import zfill\n
portal = context.getPortalObject()\n
request = context.REQUEST\n
......@@ -116,8 +117,8 @@ if depth == 0:\n
o.setProperty(\'title\', current_date.strftime(date_format))\n
tp = \'%s %s\' % (Message(domain=\'erp5_ui\', message=current_date.Day(), mapping=None), str(current_date))\n
o.setProperty(\'tooltip\', tp)\n
\n
link = \'%s&bound_start=%s&lane_path=base_week_domain\' % ( default_link_url, current_date)\n
context.log(current_date)\n
link = \'%s&bound_start=%s&lane_path=base_week_domain\' % ( default_link_url, url_quote(str(current_date)))\n
o.setProperty(\'link\', link) \n
\n
category_list.append(o) \n
......
......@@ -57,6 +57,7 @@
\n
from Products.ERP5Type.Message import translateString\n
from Products.ERP5Type.Document import newTempBase\n
from Products.PythonScripts.standard import url_quote\n
from string import zfill\n
\n
portal = context.getPortalObject()\n
......@@ -116,7 +117,7 @@ if depth == 0:\n
o.setProperty(\'tooltip\', tp)\n
\n
# Defining Link (Optional)\n
link = \'%s&bound_start=%s&lane_path=base_day_domain\' % ( default_link_url, current_date)\n
link = \'%s&bound_start=%s&lane_path=base_day_domain\' % ( default_link_url, url_quote(str(current_date)))\n
o.setProperty(\'link\', link)\n
\n
category_list.append(o)\n
......
......@@ -57,6 +57,7 @@
\n
from Products.ERP5Type.Message import translateString\n
from Products.ERP5Type.Document import newTempBase\n
from Products.PythonScripts.standard import url_quote\n
from string import zfill\n
\n
portal = context.getPortalObject()\n
......@@ -109,7 +110,7 @@ if depth == 0:\n
o.setProperty(\'title\', title)\n
\n
# Defining Link\n
link = \'%s&bound_start=%s&lane_path=base_month_domain\' % ( default_link_url, current_date)\n
link = \'%s&bound_start=%s&lane_path=base_month_domain\' % ( default_link_url, url_quote(str(current_date)))\n
o.setProperty(\'link\', link)\n
\n
category_list.append(o)\n
......
40983
\ No newline at end of file
40984
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment