Re: has_add_permission() isn't working properly

2009-03-25 Thread João Olavo Baião de Vasconcelos
an issue remains). > > > http://code.djangoproject.com/ticket/5447 > > In a quick look I don't see a ticket for this one, so if you get a chance > it would be useful if you could write it up so it's not forgotten. > > Karen > -- João Olavo Baião de Vasconcelos

Re: has_add_permission() isn't working properly

2009-03-25 Thread João Olavo Baião de Vasconcelos
2009/3/25 João Olavo Baião de Vasconcelos > But such button stills appearing in the app page. when I access http://mysite/myproject/admin/myapp, the "Add" button appears > next to every model. Just to complete the problem description: even with the "Add" button appea

has_add_permission() isn't working properly

2009-03-25 Thread João Olavo Baião de Vasconcelos
ug or an expected behavior? How can I also remove the Add button from the app page? Thanks! -- João Olavo Baião de Vasconcelos Bacharel em Ciência da Computação Analista de Sistemas - Infraestrutura joaoolavo.wordpress.com --~--~-~--~~~---~--~~ You received this me

Re: Unicode issue with Oracle

2009-03-19 Thread João Olavo Baião de Vasconcelos
this bug doesn't exist anymore with cx_Oracle 5.0.1. -- João Olavo Baião de Vasconcelos Bacharel em Ciência da Computação Analista de Sistemas - Infraestrutura joaoolavo.wordpress.com --~--~-~--~~~---~--~~ You received this message because you are subscribe

Re: Authentication with LDAP

2009-02-19 Thread João Olavo Baião de Vasconcelos
gt; I you don't have restrictions on your LDAP the most commont issue is > with the LDAP base tree. That is where the user tree resides in your > organization. Use the step by step debugger to know if you can connect > to LDAP and check if there is ap

Re: Authentication with LDAP

2009-02-19 Thread João Olavo Baião de Vasconcelos
dentials'} I didn't find any help googleing for the error (DSID-0C090334). I'm using simple_bind_s() as my LDAP server does not allow anonymous queries. (I also tried using bind_s(), with my real LDAP user, but also didn't work). Do I have to setup anything else before d

Authentication with LDAP

2009-02-18 Thread João Olavo Baião de Vasconcelos
Groups,OU=XXX,DC=COMPANY ,DC=COM Require valid-user """ How would I translate this configs to the ldapauth.py variables (LDAP_SERVER_URI, LDAP_SEARCHDN, LDAP_SCOPE, LDAP_PREBINDDN, LDAP_PREBINDPW etc)? Thanks!! -- João Olavo Baião de Vasconcelos Ba

Re: Show labels next to ManyToMany raw_id_fields

2009-02-17 Thread João Olavo Baião de Vasconcelos
lue) return ' %s' % ', '.join(truncate_words(obj, 14) for obj in objs) """ Now i think it's perfect! Does it worth a new ticket? ;D -- João Olavo Baião de Vasconcelos Bacharel em Ciência da Computação Analista de Sistemas - Infraestrutura joaoolavo.wo

Re: Show labels next to ManyToMany raw_id_fields

2009-02-17 Thread João Olavo Baião de Vasconcelos
_reduce_ex__', '__repr__', '__setattr__', '__str__', '__weakref__', 'limit_choices_to', 'multiple', 'related_name', 'symmetrical', 'through', 'to'] And the result of the command 'self.rel

Re: Show labels next to ManyToMany raw_id_fields

2009-02-17 Thread João Olavo Baião de Vasconcelos
self).render(name, value, attrs)] return mark_safe(u''.join(output)) def url_parameters(self): return self.base_url_parameters() def label_for_value(self, value): return ' %s' % self.rel.__dict__ """ -- João Olavo Baião

Show labels next to ManyToMany raw_id_fields

2009-02-17 Thread João Olavo Baião de Vasconcelos
nation of the related objects unicode representations) in method label_for_value and append it to the return of method render. But I dunno how to manipulate the object 'value' neither how to append it to the result of render, as it's done in class ForeignKeyRawIdWidget. How can I do

Re: Search in a ManyToManyField in Admin interface

2009-01-29 Thread João Olavo Baião de Vasconcelos
awful. For instance, every time that I add a Book, not only there's a list of all other descriptions already added, but also I've to add it in a separated window. I'm more inclined to change to a mysql db. Thanks, Ian! -- João Olavo Baião de Vasconcelos Bacharel em Ciência da Co

Re: Search in a ManyToManyField in Admin interface

2009-01-28 Thread João Olavo Baião de Vasconcelos
cle 4.4, Django 1.0 (and I > don't know what that instantclient thing is so I'm not sure I have any > corresponding thing on Windows). > instantclient is the Oracle Client, which brings the lib that helps to connects to oracle server (libclntsh.so). Thanks!! -- João Olavo Baião d

Re: Search in a ManyToManyField in Admin interface

2009-01-28 Thread João Olavo Baião de Vasconcelos
2, cx_Oracle 4.4.1_10g, Oracle 9i and oracle-instantclient-basic-10.2.0.4-1 Thanks for the reply, Karen. -- João Olavo Baião de Vasconcelos Bacharel em Ciência da Computação Analista de Sistemas - Infraestrutura joaoolavo.wordpress.com --~--~-~--~~~---~--~~ You

Search in a ManyToManyField in Admin interface

2009-01-28 Thread João Olavo Baião de Vasconcelos
ors(self): return authors.all()* class Author(models.Model): name = models.CharField(...) """ admin.py: """ class BookAdmin(admin.ModelAdmin): search_fields = ['title', 'authors', *'get_authors'*] admin.site.register(models.Book, BookAd

Re: Unicode issue with Oracle

2009-01-27 Thread João Olavo Baião de Vasconcelos
> Thanks, Karen. It worked! -- João Olavo Baião de Vasconcelos Bacharel em Ciência da Computação Analista de Sistemas - Infraestrutura joaoolavo.wordpress.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &quo

Unicode issue with Oracle

2009-01-27 Thread João Olavo Baião de Vasconcelos
MP', 'BINARY'), ('NLS_LENGTH_SEMANTICS', 'BYTE'), ('NLS_NCHAR_CONV_EXCP', 'FALSE'), ('NLS_RDBMS_VERSION', '9.2.0.8.0')] >>> c.execute('select * from nls_session_parameters').fetchall() [('NLS_LANGUAGE&#x