unique_filename = (str(uuid.uuid4()) +'.svg')
##...other code
## This creates the file in the file system
linechart.render_to_file(os.path.join(request.folder,'static/charts/' + unique_filename))
## Constructing the path to pass to the view
dynamicLinechartpath = (""" "{{=URL(r=request, c='static', f='charts/""" + unique_filename + """')}}" """)
<figure>
<embed type="image/svg+xml" src={{=dynamicLinechartpath}} />
</figure>src="{{=dynamicLinechartpath}}"{{=URL(r=request, c='static', f='charts/bf094fa3-a711-4118-a3aa-89f647cca4f1.svg')}}" Nico de Groot
<figure>
<embed type="image/svg+xml" src="{{=URL(r=request, c="static", f="charts_graphs/4a7c9543-26d3-4adf-bdba-a0b32a7f1b31.svg")}}" />
</figure>Nico
dynamicLinechartpath = ("""/ApplicationName/static/charts/""" + unique_filename )Enter code here...<!-- Line chart trial-->
<figure>
<embed type="image/svg+xml" src="{{=DLC}}" />
</figure>--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/oUafNyAufTI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Rahul,
To unsubscribe from this group and all its topics, send an email to web2py+unsubscribe@googlegroups.com.