Commit fdae526a authored by Ivan Tyagov's avatar Ivan Tyagov

When generating URL do quote.

parent 1e5c8c7e
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
\n \n
from Products.ERP5Type.Message import Message\n from Products.ERP5Type.Message import Message\n
from Products.ERP5Type.Document import newTempBase\n from Products.ERP5Type.Document import newTempBase\n
from Products.PythonScripts.standard import url_quote\n
from string import zfill\n from string import zfill\n
portal = context.getPortalObject()\n portal = context.getPortalObject()\n
request = context.REQUEST\n request = context.REQUEST\n
...@@ -116,8 +117,8 @@ if depth == 0:\n ...@@ -116,8 +117,8 @@ if depth == 0:\n
o.setProperty(\'title\', current_date.strftime(date_format))\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 tp = \'%s %s\' % (Message(domain=\'erp5_ui\', message=current_date.Day(), mapping=None), str(current_date))\n
o.setProperty(\'tooltip\', tp)\n o.setProperty(\'tooltip\', tp)\n
\n context.log(current_date)\n
link = \'%s&bound_start=%s&lane_path=base_week_domain\' % ( default_link_url, 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 o.setProperty(\'link\', link) \n
\n \n
category_list.append(o) \n category_list.append(o) \n
......
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
\n \n
from Products.ERP5Type.Message import translateString\n from Products.ERP5Type.Message import translateString\n
from Products.ERP5Type.Document import newTempBase\n from Products.ERP5Type.Document import newTempBase\n
from Products.PythonScripts.standard import url_quote\n
from string import zfill\n from string import zfill\n
\n \n
portal = context.getPortalObject()\n portal = context.getPortalObject()\n
...@@ -116,7 +117,7 @@ if depth == 0:\n ...@@ -116,7 +117,7 @@ if depth == 0:\n
o.setProperty(\'tooltip\', tp)\n o.setProperty(\'tooltip\', tp)\n
\n \n
# Defining Link (Optional)\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 o.setProperty(\'link\', link)\n
\n \n
category_list.append(o)\n category_list.append(o)\n
......
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
\n \n
from Products.ERP5Type.Message import translateString\n from Products.ERP5Type.Message import translateString\n
from Products.ERP5Type.Document import newTempBase\n from Products.ERP5Type.Document import newTempBase\n
from Products.PythonScripts.standard import url_quote\n
from string import zfill\n from string import zfill\n
\n \n
portal = context.getPortalObject()\n portal = context.getPortalObject()\n
...@@ -109,7 +110,7 @@ if depth == 0:\n ...@@ -109,7 +110,7 @@ if depth == 0:\n
o.setProperty(\'title\', title)\n o.setProperty(\'title\', title)\n
\n \n
# Defining Link\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 o.setProperty(\'link\', link)\n
\n \n
category_list.append(o)\n category_list.append(o)\n
......
40983 40984
\ No newline at end of file \ 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