Re: Problems when searching acute or tilde letters in a textfield under tiny_mce.js

2008-12-23 Thread Vizcayno
I want to share the solution to my problem. I appreciate the kindness of Malcolm for the suggestions. After some searching in tinyMCE site, I found a note that recommends to explicitly leave option "entities" to empty, I show you a sample: tinyMCE.init({ // General options

Problems when searching acute or tilde letters in a textfield under tiny_mce.js

2008-12-21 Thread Vizcayno
Hello: Using tiny_mce.js into django Admin (change_form.html) is nice, but when you include into a textField letters such as á or ñ and try to find them using the django search engine, no results are obtained because internally the á is represented by and ñ is represented by Is there a way to

When to use Admin Forms and/or Generic Views and/or New Forms ?

2007-07-03 Thread Vizcayno
Hello: I know that Django provides 3 ways in using Web forms: Admin Forms, Generic views and New Forms where Admin forms is the easiest one to use. What I would like to know is: 1) Which determinant aspects should force me to use Generic Views instead of Admin Forms? And 2) Which determinant

Re: Stephane += Aspen 0.7 (Python webserver)

2007-01-20 Thread Vizcayno
Chad: 1) I did some tests with a django project and, my web pages look ugly because the reference to .css files was lost, additionally I can not retrieve the content of static files when a click on a certain link. It seems that Aspen needs a reference to these resources. I had a similar problem

Div 'Changelist-filter' overlaps the displaying of some columns in change-list template.

2006-11-19 Thread Vizcayno
Hello: I am using "list_filter" option in models.py for 3 fields. The model where the filter is, has many columns so, when showing its data in the "change-list" admin template I frequently use the horizontal bar. The problem I have is that does not locate/show its filter content at the end of

Re: A question about for loop in templates

2006-11-05 Thread Vizcayno
Ivan: Many thanks for your attention and help. My intention in this occasion was to gain speed at the moment to show data at the web page. I thought to do something similar to what you kindly proposed, but the only idea that this recommended solution represents a double processing (accommodate

A question about for loop in templates

2006-11-04 Thread Vizcayno
I have the next big list: row 1: ['col1','col2','col3', 'col4',..., 'col30'] row 2: ['col1','col2','col3', 'col4',..., 'col30'] row 3: ['col1','col2','col3', 'col4',..., 'col30'] . . . row 4000: ['col1','col2','col3', 'col4',..., 'col30'] the variable name that contains this list is 'lst' For

Re: Checkboxes all come up checked (after I've initialized them unchecked)

2006-10-02 Thread Vizcayno
> INSERT INTO sched_day (name) VALUES ('Eight To Five'); > INSERT INTO sched_dayslot (slot, taken, day_id) VALUES ('08:00', > 'True', '1'); > INSERT INTO sched_dayslot (slot, taken, day_id) VALUES ('09:30', > 'True', '1'); > INSERT INTO sched_dayslot (slot, taken, day_id) VALUES ('11:00', >

Re: Python 2.5 anyone

2006-09-22 Thread Vizcayno
I have problems to get mod-python for python 2.5 (win32). Does anybody knows how to get this version. Thanks!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

FileField in the list_display option

2006-09-22 Thread Vizcayno
Hello: Into the admin I am including a FileField in the "list_display" option. Is there a way to indicate Django that when clicking this FileField, the content of the file is shown instead of the "change" page? Thanks!!! --~--~-~--~~~---~--~~ You received this

Re: Incorrect deletion of records in a relationship table

2006-09-15 Thread Vizcayno
Russell: The error happens using the Admin view. I need to rectify one thing please, I beg your pardon, instead of modifying Fredo to Frido please, modify for example Maria to Mario, i.e. when I modify the data that has DATA3 as X and this data is related to other record in the same table,

Re: Incorrect deletion of records in a relationship table

2006-09-14 Thread Vizcayno
Russel: Thanks for your attention. I send you an example Assuming the model: class Tab1(models.Model): data1 = models.CharField(maxlength=10) data2 = models.CharField(maxlength=50) data3 = models.BooleanField(default=False) data4 = models.ManyToManyField('self', null=True,

Incorrect deletion of records in a relationship table

2006-09-14 Thread Vizcayno
Hello: I have next model: class Tab1(models.Model): data1 = models.CharField(maxlength=1) data2 = models.CharField(maxlength=5) data3 = models.BooleanField(default=False) data4 = models.ManyToManyField('self', null=True, blank=True, filter_interface=models.HORIZONTAL,

Re: Filtering data in a many-to-many relation of object to itself

2006-09-02 Thread Vizcayno
James Bennett wrote: > On 9/2/06, Vizcayno <[EMAIL PROTECTED]> wrote: > > I need data4 to show me only those records whose data3 value is True. > > data4 = models.ManyToManyField('self', null=True, blank=True, > filter_interface=models.HORIZONTAL, limit_choices_

Filtering data in a many-to-many relation of object to itself

2006-09-02 Thread Vizcayno
Hello: I have next model: from django.db import models class Tab1(models.Model): data1 = models.CharField(maxlength=1) data2 = models.CharField(maxlength=5) data3 = models.BooleanField(default=False) data4 = models.ManyToManyField('self', null=True, blank=True,

Looking into / previewing attached files

2006-09-01 Thread Vizcayno
Hello: I have defined a FileField attribute in the model. Users can attach documents for every record they save. However, many of them asked me for looking into the file before saving the attached one; the files have .doc, .pdf, .xls or .ppt formats. Is there a way to do this using Admin? Thank

Looking into / previewing attached files

2006-09-01 Thread Vizcayno
Hello: I have defined a FileField attribute in the model. Users can attach documents for every record they save. However, many of them asked me for looking into the file before saving the attached one; the files have .doc, .pdf, .xls or .ppt formats. Is there a way to do this using Admin? Thank

Can not attach a file dinamically in folders I define

2006-08-30 Thread Vizcayno
Hello: In settings.py I have: MEDIA_ROOT = 'C:/attach/' In models.py: class MaeDoc(models.Model): . . per_con = models.CharField('Contact person', maxlength=40) doc_adj = models.FileField(upload_to='doc_adj', help_text='Main doc') . . . def save(self): self.doc_adj =

How to accep only uppercase characters without using manipulators/validators?

2006-08-28 Thread Vizcayno
Hello: I have a table with two columns, first column is declared as unique=True: == code = description == FI = Finance AC = Accounting office HR = Human resorces . . etc. Under "admin" if user creates another record whose code is AC, an error message appears

Question and a problem about FileField

2006-08-14 Thread Vizcayno
Question: === After saving a record that includes a file attachment (in a FileField), how can I open the the attached file directly from my django application? Problem: == Please, check next model.py: from django.db import models from django.db import models class MaeDocs(models.Model):

Re: Max datetime

2006-08-12 Thread Vizcayno
It is about temporality of a record. Suppose I have a price table for each material: Material Price Valid to - material-1 $12.50 2006-01-01 material-1 $12:52 2006-05-03 material-1 $13:59 2999-12-31 material-2 $54.32 2999-12-31

Re: Max datetime

2006-08-12 Thread Vizcayno
Adrian: Thanks for your attention and answer. You will agree however that "default=datetime.max" would have been a clean solution (not hardcoding) to establish the maximum date/time into the models.py file, unless you kindly suggest me another. Thanks again!!

Max datetime

2006-08-12 Thread Vizcayno
Hi: I have next code: from datetime import datetime . . . end_date = models.DateTimeField('End date'', default=datetime.max) end_time value is = -12-31 23:59:59 However Django indicates it is not a valid date when I want to save a record. What is wrong? Regards

Re: Search Engine for Python and Django

2006-07-26 Thread Vizcayno
Hello Kevin: The environment used is Windows? If yes, how did you compiled to use with python? Thanks!!! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Search Engine for Python and Django

2006-07-24 Thread Vizcayno
Rik But Xapwrap depends on pyLucene to work. I really would like an integrated solution, such as Django is. I continue with my pilgrimage. Many thanks really. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Search Engine for Python and Django

2006-07-24 Thread Vizcayno
Hi Wade: Thanks for the information. Do not have the sensation that nxlucene is an isolated effort? isn't it better to join forces with pyLucene? Do you think this solution would apply to Django? Thanks again!! --~--~-~--~~~---~--~~ You received this message

Re: Search Engine for Python and Django

2006-07-24 Thread Vizcayno
Nkeric: I am evaluating this option now. It seems to be the only one and good alternative for pyhton. Best regards. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: Search Engine for Python and Django

2006-07-24 Thread Vizcayno
It was the third I explored also, I made a question in the mailing list, it is pending of answer. I want to know if the tool can index and search over .doc files and .pdf files. By now, seems it only works on .txt, .html and other format that is characteristic of hyperestraier. Thanks for your

Search Engine for Python and Django

2006-07-23 Thread Vizcayno
Hi: Do your have news about the promising MerQuery? I was looking for some good open software Search Engine API (index and search) for Python in Win32. I could see some promising ones but, as always in the open soft. community, many atomised and incomplete efforts. The last I looked was Swish-e

Re: Problems in encryption when creating a new user with Admin

2006-07-11 Thread Vizcayno
Malcom: Many thanks for your time and interest in answering and clarifying my doubts. According to this, it is now a little detail comparing with the general and nice architecture of Django. Very best regards. Vizcayno. --~--~-~--~~~---~--~~ You received

Problems in encryption when creating a new user with Admin

2006-07-10 Thread Vizcayno
When I create a new user in the Admin with all privileges, Django asks for new user and password; When I type the password I can see what I write, I think this field should be protected from seeing password. After saving the new user I logout Admin, then I try to login with the new user, the