Re: TypeError Exception Value: coercing to Unicode: need string or buffer, dict found

2012-05-23 Thread Waleria
*kwargs) In my code this line is: dir(canvas.print_pdf) canvas.print_pdf(response, facecolor='w', edgecolor='w') but I do not know about solving. On 23 maio, 09:37, kenneth gonsalves <law...@thenilgiris.com> wrote: > On Wed, 2012-05-23 at 05:16 -0700, Waleria wrote: > > Except

TypeError Exception Value: coercing to Unicode: need string or buffer, dict found

2012-05-23 Thread Waleria
Hi, Anyone know how to solve this error? Exception Type: TypeError Exception Value: coercing to Unicode: need string or buffer, dict found Can you help me?? See mycode: http://dpaste.com/751460/ And see my Traceback: http://dpaste.com/750773/ Thanks, -- You received this message because

Re: Graphic and form in the same template

2010-10-26 Thread Waleria
I don't understand what you said. Thanks On 26 out, 12:19, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Oct 26, 3:08 pm, Waleria <waleriantu...@gmail.com> wrote: > > > I know that the execution of the function stops there, but i don't > > know how d

Re: Graphic and form in the same template

2010-10-26 Thread Waleria
I know that the execution of the function stops there, but i don't know how do i resolve. I need to display the graphic generated and just below the form. Can you help me, please? Thanks On 26 out, 11:42, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Oct 26, 2:17 pm, Waleria &l

Graphic and form in the same template

2010-10-26 Thread Waleria
Hi all, I have this code: http://pastebin.com/Ra1G7twn I need to display the graphic generated and just below the form, now the code only display the form. The image of graphic isn't displayed. What could it be? How do i resolve? Thanks -- You received this message because you are

Application hosting

2010-07-16 Thread Waleria
Hi all, Well, I will begin setting up a machine to host my applications python / django. My questions are: 1º - Requeriments to configure this machine. My application is a form where i enter with parameters, generate a image, .dat file and pdf file and will have several internal and external

Generate image to pdf

2010-07-07 Thread Waleria
Hi all, I'm trying generate a image to pdf. Well, is to convert a Figure matplotlib's object to an image or object that can be drawImage used in the canvas. See my code like this: http://paste.pocoo.org/show/234628/ My urls.py: urlpatterns = patterns('simuladores.detector.views',

Parameters

2010-06-29 Thread Waleria
Hi all, I have the following code below and i need receive the parameters of the index view: Sfase=[ ], Sserie=[ ], Sba=[ ], St=[ ] and f to my view draws_graph but i don't know. Because if I pass the parameters as I am passing on draws_graph view(line 68,69 and 70 - view draws_graph), it

Generate image and send to template

2010-06-23 Thread Waleria
Hi all, I need generate a image and send to template, but I'm not getting ...see my code http://paste.pocoo.org/show/OtwMsOEhe8c9b7jF0elw/ I'm not getting to understand the def generate_graph (request): -- You received this message because you are subscribed to the Google Groups "Django

Re: Random

2010-06-22 Thread Waleria
my application doesn't use DBnot able to do this without using the Random? ... without DB? On 22 jun, 14:22, Javier Guerra Giraldez <jav...@guerrag.com> wrote: > On Tue, Jun 22, 2010 at 12:11 PM, Waleria <waleriantu...@gmail.com> wrote: > > I have a system that generate

Random

2010-06-22 Thread Waleria
Hello Guys, I have a system that generate graphs and files .dat. However, i'm having a problem, when two people access the system simultaneously may happen that the graph of a person to replace the second person, what can I do to make it not happen? -- You received this message because you are

Re: fieldsets django

2010-06-21 Thread Waleria
I don't know I'm wondering how to use the fieldsets.can you help me...how to use the fieldsets...? On 20 jun, 15:01, Francis Gulotta wrote: > You might want to look into a css solution. > > -Francis > > --- > Francis Gulotta > wiz...@roborooter.com > > On Fri, Jun

File - .dat

2010-06-16 Thread Waleria
Hello, I need to leave a file tabbed, like this: http://www.srl.caltech.edu/~shane/sensitivity/asteroids/scg_8564.dat Following piece of my code that does this: - with Django # - # Import # - from django.shortcuts import

Re: Arquivo .dat

2010-06-15 Thread Waleria
can anyone help me? On 14 jun, 15:45, Waleria <waleriantu...@gmail.com> wrote: > I need to save the values of f in a columm and the values of Sfase in > a other columm for de > exemple:http://www.srl.caltech.edu/~shane/sensitivity/asteroids/scg_8564.dat > > On 1

Re: Arquivo .dat

2010-06-14 Thread Waleria
I need to save the values of f in a columm and the values of Sfase in a other columm for de exemple: http://www.srl.caltech.edu/~shane/sensitivity/asteroids/scg_8564.dat On 14 jun, 15:20, Waleria <waleriantu...@gmail.com> wrote: > look my code:http://paste.pocoo.org/show/225383/ &

Re: Arquivo .dat

2010-06-14 Thread Waleria
look my code: http://paste.pocoo.org/show/225383/ f is f = xrange(3000,3400) and Sfase are the values of function ..for each value of "f" against a value for "Sfase" Dou you understand? On 14 jun, 15:08, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Jun 14,

File .data

2010-06-14 Thread Waleria
Hello, I need to leave a file tabbed, like this: http://www.srl.caltech.edu/~shane/sensitivity/asteroids/scg_8564.dat Following piece of my code that does this: savefig('C:\simuladores\detector\media\imagem.png') writer = csv.writer(open('C:\simuladores\detector\media \dados.dat','wb')) for

Arquivo .dat

2010-06-14 Thread Waleria
Hello, I need to leave a file tabbed, like this: http://www.srl.caltech.edu/~shane/sensitivity/asteroids/scg_8564.dat Following piece of my code that does this: savefig('C:\simuladores\detector\media\imagem.png') writer = csv.writer(open('C:\simuladores\detector\media \dados.dat','wb')) for

Re: error: unsupported operand type(s) for *: 'Decimal' and 'float'

2010-06-11 Thread Waleria
Decimal > object and needs to be converted to do math with it > > on_sale = float(myObj.price) * 0.9 > > On Jun 10, 9:22 pm, Waleria <waleriantu...@gmail.com> wrote: > > > Hello.. > > > I again.now my problem is: > > > I have the function following:http:

error: unsupported operand type(s) for *: 'Decimal' and 'float'

2010-06-10 Thread Waleria
Hello.. I again.now my problem is: I have the function following: http://paste.pocoo.org/show/224041/ These values i get of a form...however returns me an errorfallows below the error Exception Type: TypeError Exception Value: unsupported operand type(s) for *: 'Decimal' and 'float'

Re: parameters directly in the function

2010-06-10 Thread Waleria
Well.i got this values of a form but i thank you very much...because i got resolve this problem Thank you On 10 jun, 15:53, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Jun 10, 6:13 pm, Waleria <waleriantu...@gmail.com> wrote: > > > Hello!!! > > > I'm W

parameters directly in the function

2010-06-10 Thread Waleria
Hello!!! I'm Walériai have a question about a functionsi have a function bellow: y.append(pow(form.cleaned_data['Pinc'],2)/(2*(pow(2*pi*v, 2)))*((pow(2,2)*pow(form.cleaned_data['Qe'],2)))/ (pow(form.cleaned_data['fp'],2))*(pow(form.cleaned_data['df'],2))) I need to pass this parameter