Re: Goodbye, Malcolm

2013-03-19 Thread Emiliano Dalla Verde Marcozzi
My condolences to his family,
Rest in peace.


-- 
"Code without tests is broken by design." - Jacob Kaplan-Moss
Show me the mone ... code!: https://bitbucket.org/edvm

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Survey : Theme for Django admin interface

2013-03-10 Thread Emiliano Dalla Verde Marcozzi
2013/3/10 Venkatraman S 

> Hi,
>
> Was wondering if there are *paid* takers for themes for the django-admin
> interface. I know there are a few that exist already but am not quite happy
> with them.
>
> I can definitely spend a few days/weeks and develop some nice looking
> ones, but wanted to check if people are really looking for some fresh air
> or not, and are ready to pay for it :)
>
> And well, i do not intend to price it more than 40$ per theme(or less than
> that!). Non-commercial+personal usage would be free, obviously; and all
> this being CC licensed.
>
> Regards,
> Venkat
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

I was looking for this, but didnt find anything. i think it can have a
great market, something like
this web:
https://wrapbootstrap.com/theme/unicorn-admin-template-WB0F35928
For me, a reasonable price is 20USD but well, if the theme affords it i
think i would do the effort
and pay the 40 USD,
Regards,
Emiliano.


-- 
"Code without tests is broken by design." - Jacob Kaplan-Moss
Show me the mone ... code!: https://bitbucket.org/edvm

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: TemporaryFileUploadHandler leaving tempfiles behind on disk

2013-03-04 Thread Emiliano Dalla Verde Marcozzi
2013/3/4 msoulier 

> Hi,
>
> I'm using a ModelForm to upload a large file that ends up being
> written to a tempfile on disk. When I call form.save(), the file gets
> copied to the final filename, but the tempfile is left behind on disk.
>
> I am using a custom handler, which is a TemporaryFileUploadHandler
> subclass, but each method I override calls the parent class' method
> first.
>
> Is the tempfile supposed to be left behind?
>
> Thanks
>
> Hello,
I am not an experienced django developer so maybe this solution doesnt
follow 'the django way', but as i read at:
http://docs.nullpobug.com/django/trunk/django.core.files.uploadhandler-pysrc.html#FileUploadHandler.new_file
TemporaryFileUploadHandler subclass FileUploadHandler. The 'new_file'
method at FileUploadHandler saves
the file name at the class instance as 'file_name' (self.file_name). So, i
would try to overrite the 'file_complete'
method from my own class that subclass TemporaryFileUploadHandler and do
something like:

class MyTemporaryFileUploadHandler(TemporaryFileUploadHandler):

def file_complete(self, file_size):
if os.path.isfile(self.file_name):
os.unlink(self.file_name)
super(TemporaryFileUploadHandler, self).file_complete(file_size)

I'm not sure if self.file_name points to the temporary file, so maybe this
is not util.


-- 
"Code without tests is broken by design." - Jacob Kaplan-Moss
Show me the mone ... code!: https://bitbucket.org/edvm

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Change label/title from an application added to django admin

2012-12-23 Thread Emiliano Dalla Verde Marcozzi
Hello,
I created an app called 'emp' with the command: django-admin.py startapp 
emp.
Then, i edited my models.py, added an admin.py file to register my 
clases/models
in the django admin. Now, when i login into the django admin, i have a list 
of
Applications, and it says 'Emp' in that list. I want to change 'Emp' for 
another word,
for example, 'Employee', how can i do that in django 1.4 ? 
Thanks in advance,
Emiliano.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/waP0XrU8ywwJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.