InlineModelAdmin - Tagging

2008-11-14 Thread Mario
Hello, I would like to incorporate an InlineModelAdmin to an existing model with the django.tagging. How would I implement this functionality to an existing model? # models.py from django.db import models from tagging.fields import TagField from tagging.models import Tag class Post(models.Mod

Re: issue with django tagging

2008-12-09 Thread Mario
Try typing the following: python manage.py shell from the python shell, type: import tagging tagging.VERSION Regards On Dec 9, 8:24 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > hi > I got it from trunk,and the version is 0.3. After I installed > tagging , I cannot import it. The erro

Re: Calendar

2008-12-31 Thread Mario
Karen, Can you provide me an example of the widget implementation? _Mario On Dec 30, 9:30 am, "Karen Tracey" wrote: > On Tue, Dec 30, 2008 at 7:51 AM, Praveen > wrote: > > > > > Hi All, > > I want to use calendar in my html template as the default admin > > interface uses. > > http://docs.dja

Django with Apache messing up with my settings.py

2008-08-25 Thread mario
I'm having a tough problem with Apache messing-up with my settings and urls. Does anyone have any idea of what I'm doing wrong? Question: can I have different 'settings.py' for each Django app running in Apache? As far as I could understand Django docs it should be possible, but... Here's what's

Re: Django with Apache messing up with my settings.py

2008-08-26 Thread mario
Malcom, Thank you very much. It solved my problem! On Aug 26, 9:07 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2008-08-25 at 23:45 -0700, mario wrote: > > [...] > > > > > And here's how I defined the apps in Apache2 (

Re: Django with Apache messing up with my settings.py

2008-08-26 Thread mario
gt; wrote: > > > > > On Mon, 2008-08-25 at 23:45 -0700, mario wrote: > > > [...] > > > > And here's how I defined the apps in Apache2 (running with lastest > > > Django SVN). > > > > > > >     SetHandle

Database Security

2008-09-13 Thread Mario
Hello, I would like to move off the existing database server off Django. Currently, my settings.py file include the following configuration: DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. DATABASE_NAME = 'golf_prod'

Re: Database Security

2008-09-13 Thread Mario
ache httpd.conf file as well? Thank you again. _Mario On Sep 13, 12:46 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > Ross wrote: > > [some stuff you can now find after the question] > > > > > On Sep 13, 9:37 am, Mario <[EMAIL PROTECTED]> wrote: >

Re: Database Security

2008-09-14 Thread Mario
All, Thank you very much for all the insightfull techniques. I will test the proposed functionalities in a lab environment prior to deployment. V/r, -Mario On Sep 13, 5:32 pm, Sander Steffann <[EMAIL PROTECTED]> wrote: > Hi Mario, > > > DATABASE_HOST =&qu

Re: HIPAA, Django and User Authentication/Security

2009-03-12 Thread Mario
Jarvis, If you are looking for a 'Stamp of Approval', you may be looking at the wrong place. Django is an "Open Source" web framework which hasn't been formally certified and accredited by the US Government. You speak of HIPAA which translates to FISMA requirements. I assume your web application

Re: HIPAA, Django and User Authentication/Security

2009-03-12 Thread Mario
Peter, I don't disagree with you. However, based on Glen's security report ( I suspect they are using Nessus/Retina to produce the scan result i.e. CVE - Common vulnerabilities and exposure ),his question was: Does anyone know where to find such "stamp of approval" or "denial" from HIPAA's point

Re: OWNING code

2009-03-23 Thread Mario
mn, Django Web Framework is an open source; however, the customized code developed for Django strictly belongs to the developer/organization. Let's put this in perspective. For example, a Java Programmers relies on Java to run their code. Although Java was developed by Sun Microsystems, the progr

Re: mod_python problem

2009-08-20 Thread Mario
Bryan, Can you post your project url? Also try changing from to _Mario On Aug 20, 12:33 pm, Bryan Fordham wrote: > I'm sure this is something simple, but I'm a bit stumped. It's been a > while since i've don't this, and obviously I'm missing something > > I have my django app installed on se

Re: mod_python problem

2009-08-20 Thread Mario
t runs from the root. It was set that way on the development > server, too, with no problem > > > > On Thu, Aug 20, 2009 at 11:11 AM, Mario wrote: > > > Bryan, > > > Can you post your project url? Also try changing from > > to > > > _Mario > >

Re: mod_python problem

2009-08-20 Thread Mario
Don't forget the comma after the absolute path. For example, '/home/bfordham/websites/bfordham/trunk/bfordham/blog/templates', < comma _Mario On Aug 20, 4:41 pm, Bryan Fordham wrote: > > The default template is not loading correctly. Check and verify your > > settings.py and make sure it

Re: Templatetags and admin issues

2009-09-29 Thread Mario
CalDan, I had the same exact problem yesterday. I googled it and found some useful links, but no definitive answer. Anyway, since the error was in the dev environment, I decided to wipe-out django and re-install it from the trunk. It actually solved my problem. Before deleting django make sure

Re: Help to choose web-template

2009-10-16 Thread Mario
If you are going to learn something new might as well learn something useful and beneficial. I suggest trying out Blueprint CSS Framework. It works great with Django templates. The URL is http://www.blueprintcss.org/ Or try these following sites: http://www.456bereastreet.com/lab/developing_wit

Pagination - django.views.generic.list_detail.object_detail

2009-11-02 Thread Mario
Hello, Which Pagination tag do you all recommend for handling django.views.generic.list_detail.object_detail? I have an existing article which requires pagination. I don't want the user to keep scrolling down the web page. _Mario --~--~-~--~~~---~--~~ You received

Re: Apache2 installation

2009-11-13 Thread Mario
You need revisit your project urls.py and also verify your project settings.py. Does your urls.py somewhat resemble the following: from django.conf.urls.defaults import * from django.contrib import admin from django_apps.blog.models import Post urlpatterns = patterns('', (r'^contact/', inclu

Re: How to list all parents and their children if any?

2009-11-29 Thread Mario
Hi, You mentioned that you could have used a m2m between Connector and Cable, but it sounded that you opted out. I could be wrong, but to get the desired report to display, I think you may need to revisit your models.py and use the "_set" used in m2m relationships. _mario On Nov 28, 11:50 pm,

Re: HIPAA experience

2010-06-11 Thread Mario
Hello, >From what I have read it looks like you want to provide your clients the assurance that the information being presented is not compromised in addition to meeting the HIPAA and HITECH requirements. This is not entirely a Django/Python implementation, but falls in line with the Database back

Re: How to merge TinyMCE to django flatpage

2010-06-19 Thread Mario
Steven, You need to read the 1st paragraph on page 25 closely. Also make sure the java scripts are loaded correctly. I personally use Firefox Firebug to debug the failing scripts. Finally using the Django Dev Server will not display the TinyMCE widgets. You need to make changes on your Apache Co

Calendar Templatetag

2010-07-10 Thread Mario
Hello, I am currently using the Calendar Templatetag found at http://djangosnippets.org/snippets/129/ and it suites my current needs. However, I would like to extend the functionality of the templatetag by rendering previous and next months i.e., June 2010, July 2010, August 2010, September 2010

Re: New tutorial added to Django by Example

2010-08-03 Thread Mario
Thank you for sharing the application. I would like to make the start day of the week Sunday instead of Monday. _Mario On Aug 3, 12:14 am, Rainy wrote: > I've added a new tutorial: Calendar App to > my Django by Example site.  As always, feedback is appreciated. > > What would be a good tutorial

Re: I can't select day with calendar widget

2010-10-09 Thread Mario
Rene, When you say "the problem happens when I select 2010-10-10 in the widget , then 2010-10-09 is set in the field." What do you exactly mean? It looks like you need to revisit your app/models.py. V/r, Mario On Oct 7, 6:25 pm, "renevie...@gmail.com" wrote: > Hello.

Twitter API

2009-12-27 Thread Mario
Good afternoon, Is there a Twitter API that would allow me to update a Twitt via Django? If so would you be kind enough to send me the link? _Mario -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us

Re: Twitter API

2009-12-27 Thread Mario
phe Pettus wrote: > On Dec 27, 2009, at 12:24 PM, Mario wrote: > > > Is there a Twitter API that would allow me to update a Twitt via > > Django?  If so would you be kind enough to send me the link? > > Not meaning to be too terribly sarcastic, but have you tried using   > Goo

Re: Twitter API

2009-12-27 Thread Mario
, Christophe Pettus wrote: > On Dec 27, 2009, at 12:31 PM, Mario wrote: > > > Thank you for replying. Yes, I reviewed python twitter API, but the > > model or the app is designed to pull down the "twitt". I would like to > > upload a twitt via Django in lieu o

Re: viewsite button takes me to example.com

2010-01-29 Thread Mario
You need to login to your admin and scroll down the Sites and change the example.com to your domain name or IP address. Cheers. On Jan 29, 10:50 am, harryos wrote: > hi > I was trying out the weblog app in bennet's book.I created some > categories and entries and can list them properly > usin

Setting request.GET when sending an HttpResponse

2008-02-13 Thread mario
It seems to me that I'm asking something verys obvious. However I couln't find and example anywhere for solving my problem. Here it goes... I receive a request via GET and, based on request.GET, I generare a result and send a HttpResponse. However, when sending the response, I'd like to set addit

Re: Setting request.GET when sending an HttpResponse

2008-02-14 Thread mario
Etienne, thanks for answering, > I believe you got this wrong a little. A HttpResponse object doesn't modify > the query string. That should be done in your form markup, > or even in a javascript file, in case you want to do it programmatically. Yes, I understand that a HttpResponse cannot modif

Re: Setting request.GET when sending an HttpResponse

2008-02-15 Thread mario
As Malcom said, I wish to avoid as much as possible session data. In fact, the user wouldn't be able to bookmark the query that (I think) might become very userful as he familiarize with the application. Thanks anyway for you help. --~--~-~--~~~---~--~~ You receiv

Re: Setting request.GET when sending an HttpResponse

2008-02-15 Thread mario
Malcom, thank for you help. That was the hint I was looking for. I got the idea and I'll now keep working from it. On 14 Feb, 10:59, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Thu, 2008-02-14 at 01:28 -0800, mario wrote: > > Etienne, thanks for answering, > >

Re: Django HTML Editor

2008-06-14 Thread mario
/using_tinymce_in_djangos_admin.html. It has excellent examples how to integate TinyMCE with Django. I personally use it in my web site. Good luck! Sincerely yours, Mario On Jun 14, 2:06 am, Ngu Soon Hui <[EMAIL PROTECTED]> wrote: > I want a free HTML editor that is compatible with Django template'

django-filebrowser

2008-06-28 Thread Mario
Hi, all! I'll try to install file browser application (http://code.google.com/p/ django-filebrowser/) in my project and had some problems: - Could not import filebrowser.views. Error was: cannot import name ugettext - Could not import filebrowser.views. Error was: No module named safestring and s

django+mod_python, caching or something else?

2008-07-02 Thread Mario
Hi, all! I have a some little project that consists news list, several text blocks and else All worked... But after adding, for example news, it not publish on main page while apache restart(reload). This problem haven't regularity. model.py: class News(models.Model): title = models.CharField

Re: django+mod_python, caching or something else?

2008-07-02 Thread Mario
ed, Jul 2, 2008 at 7:09 AM, Alex Koshelev <[EMAIL PROTECTED]> wrote: > > Client-side caching. Use the `never_cache` decorator > > No, that's not it at all. > > > On Jul 2, 3:43 pm, Mario <[EMAIL PROTECTED]> wrote: > >> I look at sql log - django didn

Re: django+mod_python, caching or something else?

2008-07-03 Thread Mario
Thanks to all, I wrote custom tags. It's solve my problem! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from t

Calendar of Events

2008-07-07 Thread Mario
Hello, I’m a NOOB and I was wondering if there are any calendars of event model that will allow a user to click on a specific date with the associated listing of events. Any suggestions or recommendations are appreciated. Thank you. Goober --~--~-~--~~~---~--~~ Y

Re: Calendar of Events

2008-07-07 Thread Mario
ar/ > > On Jul 7, 2:13 pm, Mario <[EMAIL PROTECTED]> wrote: > > > Hello, > > > I’m a NOOB and I was wondering if there are any calendars of event > > model that will allow a user to click on a specific date with the > > associated listing of events

Re: Calendar of Events

2008-07-08 Thread Mario
I looked at the 3captus.com/download/django_calendar, but found it to be somewhat cumbersome in terms of functionality. I don't want anonymous users to create or delete calendar of events. Any more suggestions or ideas? -Mario On Jul 7, 11:29 pm, bedros <[EMAIL PROTECTED]> wro

Re: Django + tiny_mce

2008-07-08 Thread Mario
list_filter = ['pub_date'] save_as = True js = ['tiny_mce/tiny_mce.js', 'js/textareas.js'] Save the model. Stop and restart you apache server. Login the Admin and verify the changes. -Mario On Jul 6, 11:56 am, [EMAIL PROTECTED] wrote: > Hello,

Re: Django + tiny_mce

2008-07-08 Thread Mario
cated in the /usr/lib/python2.5/site- packages/django/contrib/flatpages directory. Make sure make a copy of the model prior to making any changes. Check out Bill DeOra write about Tiny_MCE. It was written in 2006. The URL is http://dehora.net/journal/2006/05/ Gracias, -Mario On Jul 8, 8:01 pm

Re: Template Language Design

2008-07-13 Thread mario
example of how it can be used a django app, see: http://evoque.gizmojo.org/ext/django/ mario On Jul 13, 9:01 am, Chris <[EMAIL PROTECTED]> wrote: > Just out of curiosity, is there a reason why the templating constructs > can't evaluate arbitrary expressions? It seems terribly awk

newforms: how to report multiple cross-field validation errors?

2007-05-23 Thread mario
I'm using newforms library and it is really a great improvement over "oldforms". However, how would I report more than a single error when doing cross- field validation in the form clean() method? I mean, since the errors are reported by raising an exception, on the first raised validation error

Which best place to cross-validate Admin form fields?

2006-09-24 Thread Mario
other fields contents, that doesn't seem a reasonable solution. Is there any better djangonic way to cross-validate fields? Thanks for any help in advance. Mario. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

unicode options in models...

2011-02-16 Thread Mario
Hi, total noob here. This is probably me being extremelly stupid at some point, and I haven't found an answer to this question however i phrased it even tho it's probably in the documentation somewhere but I just don't understand it So I'm writing a django site in spanish and the spanish non-asci

newbie help

2008-07-14 Thread Mario Zorz
odels.py as follows: class Poll(models.Model): question = models.CharField(maxlength=200) pub_date = models.DateTimeField('date published') def __unicode__(self): return self.question Anything I'm doing wrong? Thanks a lo

Re: newbie help

2008-07-15 Thread Mario Zorz
lanahan <[EMAIL PROTECTED]> To: Django users Sent: Monday, July 14, 2008 11:18:52 PM Subject: Re: newbie help On Jul 14, 3:46 pm, Mario Zorz <[EMAIL PROTECTED]> wrote: > Hello all, > > I'm following the Django tutorial [1] I'm using windows xp, python 2.5 and &g

Re: newbie help

2008-07-15 Thread Mario Zorz
I'd either upgrade your Django, or start following the 0.96 tutorial from here. Joshua Mario Zorz wrote: Hello all, I'm following the Django tutorial [1] I'm using windows xp, python 2.5 and SQLite. For some reason I found these 2 things not being appropiate as followed in the

How to create a Generic Show View ?

2008-08-26 Thread Mario Hozano
needs to adjust the model class to work fine. Does Django offer another way to present the model attributes in a Show view? Is it possible to use a ModelForm class to show the attribute values in html labels? Thanks. Mario Hozano --~--~-~--~~~---~--~~ You received thi

How to show a model count value in a html page?

2008-08-26 Thread Mario Hozano
. Statistics Users({{User.objects.count}}) ... Regards. Mario Hozano. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegro

Re: How to show a model count value in a html page?

2008-08-26 Thread Mario Hozano
Good, Rajesh. I will do it. Thanks. Mario Hozano On Tue, Aug 26, 2008 at 5:38 PM, Rajesh Dhawan <[EMAIL PROTECTED]>wrote: > > Hi Mario, > > > I am new in Django. I am implementing a web application using the > > django template support. In this way, i am using a si

Re: How to create a Generic Show View ?

2008-08-27 Thread Mario Hozano
extra_context={'model_entity':'user'})) Should I use the 'django.views.generic.create_update.create_object' view? I want only to use the urls.py without write in views.py to instantiate the form. Is it possible? Thanks. Mario Hozano. On Wed, Aug 27, 2008 at 3:34 A

simple order taking model

2009-03-08 Thread Mario Zorz
special_discount = models.DecimalField(max_digits=6, decimal_places=2) pub_date = models.DateTimeField('date published') foto = models.CharField(max_length=200, blank=True) def __unicode__(self): return self.description class Admin: list_display =

creating a join of 2 models in a view, and accessing such an object collection in a template

2009-03-09 Thread Mario Zorz
0, core=True) receta = models.TextField(blank=True) precio = models.DecimalField(max_digits=6, decimal_places=2, core=True) dcto_especial = models.DecimalField(max_digits=6, decimal_places=2) pub_date = models.DateTimeField('date published') foto = models.CharField(ma

Re: creating a join of 2 models in a view, and accessing such an object collection in a template

2009-03-09 Thread Mario Zorz
the view is, pass on to the template a collection of a new kind of object that will have, for each instance, fields "description" (from model C), "choice_id" and "votes" (from model Choice). The question is: what

Re: creating a join of 2 models in a view, and accessing such an object collection in a template

2009-03-10 Thread Mario Zorz
tml', {'mydict': mydict}) I think this is something rather usual (have fields from 2 different models and show them together, just a JOIN...). Thanks Regards Mario From: Mario Zorz To: django-users@googlegroups.com Sent: Tuesday, March 10, 20

Re: SCORM(Sharable Content Object Reference Model) Compliant for Django?

2010-04-23 Thread Mario Garcia
Hi Zeal Django I dont know about a SCORM module for django. As I remember there is a SCORM module for Plone , I dont know about a LMS developed in django. Mario Garcia On Apr 22, 2:05 am, Zeal wrote: > Hi, All, > > Does anyone has the experience on SCORM(Sharable Content Object &g

Django datestyle

2007-06-13 Thread Mario Gonzalez
I'm getting some problems with style DateTime field because in my country we don't use ISO style, we use ISO, DMY instead. I've got postgres installed and after activate log_statements it confirmed. Always show up: LOG: statement: SET DATESTYLE TO 'ISO' LOG: statement: BEGIN; SET TRANSACTION

Re: Django datestyle

2007-06-13 Thread Mario Gonzalez
On 13 jun, 12:56, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > On 6/13/07, Mario Gonzalez <[EMAIL PROTECTED]> wrote: > ... > > > all this thanks to other libraries (mx tools) > > I'm not sure if it'll help, but psycopg2 doesn

Re: Django datestyle

2007-06-13 Thread Mario Gonzalez
On 13 jun, 14:16, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]> wrote: > > Have you tried the DATE_FORMAT setting > (http://www.djangoproject.com/documentation/settings/#date-format)?It > doesn't change the representation stored in the DB, but *does* change > how Django displays the date. > yes, I tri

Re: Django datestyle

2007-06-13 Thread Mario Gonzalez
On 13 jun, 15:35, Mario Gonzalez <[EMAIL PROTECTED]> wrote: > > yes, I tried that too. I tried DATE_FORMAT and DATETIME_FORMAT with. > Currently I've got this in my settings file: > DATETIME_FORMAT = ' d-m-Y ' > > But the result is a ISO style too &

Custom Form Validation

2007-06-22 Thread Mario Gonzalez
Hello, I've got a model like: class RecepcionForm(forms.Form): drivers = forms.ModelChoiceField(queryset=Driver.objects.all().order_by('- name')) lines = forms.CharField() def clean_lines(): if not format_is_correct( lines ): raise forms.

Template: unicode problem

2007-07-31 Thread Mario Gonzalez
Hello, I'm getting some problems with unicode in templates: 'ascii' codec can't encode character u'\xf1' in position 1: ordinal not in range(128) However, templates, database are in UTF8. I changed __str__ by __unicode__ in my models files. Django (I think) is trying to encode an ascii string

Re: Template: unicode problem

2007-07-31 Thread Mario Gonzalez
On 31 jul, 12:18, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > There may well be a problem, but from the current information there is a > 0% chance of anybody being able to guess the solution. There are just > too many things it could be from bad strings in your code to bad > handling on some u

Re: Template: unicode problem

2007-07-31 Thread Mario Gonzalez
On 31 jul, 12:28, Mario Gonzalez <[EMAIL PROTECTED]> wrote: > > I understand it and please forgive my pour words :-) I'll do what > you said and I'll try to fix it by my self today. If not, I'll write > to this list for any comments. > The problem: I

Re: I get an error when my query returns nothing

2007-07-31 Thread Mario Gonzalez
On 31 jul, 12:45, Greg <[EMAIL PROTECTED]> wrote: > > Does anybody know what i need to do so that I don't receive this error > when the query returns nothing? > There's a difference with get() and filter(). get() always returns an object and it must be use when you're sure you've got records. I

Re: More of a lighttpd question (I think)

2007-07-31 Thread Mario Gonzalez
ot;/tmp/l10n.pid" SOCKET="/tmp/l10n.sock" DAEMON=/usr/bin/env DAEMON_OPTS="/usr/bin/python $PROJDIR/manage.py runfcgi pidfile= $PIDFILE socket=$SOCKET method=threaded" case "$1" in start) if [ -f $PIDFILE ]; then kill -9 `cat -- $PIDFILE` rm -f --

Django + PAM (Unix)

2007-08-07 Thread Mario Gonzalez
Hello, I'm doing some tests in a module I found: libpam-pgsql, basically with that library you're able to authenticate accounts in a postgres table. All my web systems are powered by Django and Django uses SHA1 as the main encryption algorithm; however libpam-pgsql not supported it and I'm trying

Admin methods in any project

2007-08-10 Thread Mario Gonzalez
We know that every project needs to save data and usually the time that we've got to write templates is a lot. The question is: how can I improve the time I use to write those templates? Maybe I'm doing something wrong because if I need to enter data to different classes, ex 10 classes, in dif

Re: Django + PAM (Unix)

2007-09-06 Thread Mario Gonzalez
On 7 ago, 16:11, Mario Gonzalez <[EMAIL PROTECTED]> wrote: > Hello, I'm doing some tests in a module I found: libpam-pgsql, > basically with that library you're able to authenticate accounts in a > postgres table. All my web systems are powered byDjangoandDjang

.::: iGame2 :::.

2008-01-24 Thread Mario Feonands
iGame2.com is a leading social network of video game culture, for gamers to post their gaming history, favorite games, accomplishments, blogs, news and more! Join a gamer community, create gamer profiles, and share gamertags. Listen to the iGame2 Podcast, read game reviews, win tournaments, and ge

.::: New Social Networking Site :::.

2008-01-24 Thread Mario Feonands
Hi !! How are you ? myLoveZone is a new social networking site designed for all the people around the world. Please support us by visiting our site. Visit Us @ Visit http://my.lovezone.ro Thank you very much. --~--~-~--~~~---~--~~ You received this message because

Update release 0.1.1 of Evoque Templating

2008-03-24 Thread mario ruggier
Free License version 3.0. [benchmark] http://evoque.gizmojo.org/benchmark/ [features] http://evoque.gizmojo.org/features/ [home] http://evoque.gizmojo.org/ Best regards, mario --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Get function name after....

2007-03-27 Thread Mario Gonzalez
Hello, I'm trying to know the callback name after a resolve process from django.conf import settings from django.http import HttpResponse from django.core.urlresolvers import resolve class AuthorizedMiddleware(object): def process_request(self, request): return HttpResponse(str( r

Re: Get function name after....

2007-03-27 Thread Mario Gonzalez
On Mar 27, 2:10 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > > 'resolve' returns the actual callable function in all cases, so if you > want the string name of the function you might want to access its > '__name__' attribute. > > Are you using any decorators on these views? > no, I'm not us

Re: Get function name after....

2007-03-27 Thread Mario Gonzalez
On Mar 27, 2:13 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > Also, keep in mind that writing a 'process_view' method instead will > give you access to the view function the URL resolved to, and will > execute *before* the view function is actually called. That might be I changed and I've go

Re: Get function name after....

2007-03-27 Thread Mario Gonzalez
On Mar 27, 3:24 pm, "Mario Gonzalez" <[EMAIL PROTECTED]> wrote: > On Mar 27, 2:10 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > > > Are you using any decorators on these views? > > no, I'm not using any decorators. Now I foun

Re: Get function name after....

2007-03-27 Thread Mario Gonzalez
On Mar 27, 3:24 pm, "Mario Gonzalez" <[EMAIL PROTECTED]> wrote: > On Mar 27, 2:10 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > > > 'resolve' returns the actual callable function in all cases, so if you > > want the string nam

Re: Get function name after....

2007-03-27 Thread Mario Gonzalez
On Mar 27, 9:09 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > This is a known mini-problem and something we need to / will sort out > prior to 1.0. There are a *lot* of places in Django that wrap views up > and then expose them to the world. Once you get used to the idiom, it's > not a bad

Re: Get function name after....

2007-03-27 Thread Mario Gonzalez
On Mar 27, 10:26 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > That's way I _need_ the function name :-( > > Understod. There are lots of similar cases where making sure you get the > real function name is useful. So, it's something that will be solved > soon-ish. You just can't have i

Re: Get function name after....

2007-04-18 Thread Mario Gonzalez
On 27 mar, 22:26, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > > At the moment we try to remember to fill in most of the details on the > > > wrapped object, but this isn't always possible (for example, the > > > __name__ attribute of a function is read-only in python 2.3). One > Today I t

How to render newforms dynamically created fields?

2007-04-30 Thread Mario Graziosi
I might accomplish this? Thanks in advance for any help. -- Mario Graziosi, mailto:[EMAIL PROTECTED] FG&A srl (http://www.fgasoftware.com/) [EMAIL PROTECTED]: The agile PBX (http://www.voiceatwork.eu/) Tel: 02 9350-4780 interno 101, Fax: 02 9139-0172 --~--~-~--~~~---

Re: How to render newforms dynamically created fields?

2007-04-30 Thread Mario Graziosi
p through it in the template. I am not > sure about syntax, check the documentation in tutorial. > > > > > > -- Mario Graziosi, mailto:[EMAIL PROTECTED] FG&A srl (http://www.fgasoftware.com/) [EMAIL PROTECTED]: The agile PBX (http://www.voiceatwork.eu/) Tel: 02 9350-4780 i

Re: newforms: how to report multiple cross-field validation errors?

2007-05-23 Thread Mario Graziosi
Great, I'll do that. I didn't realized that ValidationError might get a list of error messages and not just a single error message. Thanks for your help, Malcom. Malcolm Tredinnick wrote: > On Wed, 2007-05-23 at 10:16 -0700, mario wrote: > >> I'm using newforms

looking for jobs check this out

2007-12-15 Thread mario decosta
don miss it http://hojar.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send emai

jobs for all check this out

2007-12-15 Thread mario decosta
http://hojar.blogspot.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL

Which best place to cross-validate Admin form fields?

2006-09-24 Thread Mario Graziosi
other fields contents, that doesn't seem a reasonable solution. Is there any better djangonic way to cross-validate fields? Thanks for any help in advance. Mario. -- Mario Graziosi, mailto:[EMAIL PROTECTED] FG&A srl (http://www.fgasoftware.com/) [EMAIL PROTECTED]: The agile

Order by a field in a third table

2006-10-04 Thread Mario Gudelj
ld be the elegant soluton? Thanks, Mario Gudelj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from t

Bad title alignment for short_description in Admin

2006-10-07 Thread Mario Graziosi
ort_description gets formatted on the resulting web page, I get a weird misalignment: the column title appears just above the leftmost column. Am I doing something wrong or is this an error of the rendering engine or standard Django template? Thanks in advance to anyone ho

Re: Bad title alignment for short_description in Admin

2006-10-07 Thread Mario Graziosi
Malcolm Tredinnick wrote: > On Sat, 2006-10-07 at 12:06 +0200, Mario Graziosi wrote: > [...] > >> Yes: I'm trying to render "notes" contents (and I get them right), but >> I can't get right their relative title (i.e. notes.short_description). >&

Re: Bad title alignment for short_description in Admin

2006-10-07 Thread Mario Graziosi
Malcolm Tredinnick wrote: > On Sat, 2006-10-07 at 12:06 +0200, Mario Graziosi wrote: > [...] > >> Yes: I'm trying to render "notes" contents (and I get them right), but >> I can't get right their relative title (i.e. notes.short_description). >&

Best way to extend admin change_form?

2006-11-05 Thread Mario Graziosi
I wish to extend the standard admin "change_form": which is the best way to do it? The specific problem I need to solve is to find a workaround to a Django bug (Ticket #2522). I need to keep form header, footer and submit buttons and store my own stuff. I found this possible solution: 1. creat

Re: Best way to extend admin change_form?

2006-11-05 Thread Mario Graziosi
directory (django/contrib/ > admin/...) to your template_directory, > e.g. to /templates/app_name/model_name/change_form.html > > patrick > > Am 05.11.2006 um 17:50 schrieb Mario Graziosi: > > >> I wish to extend the standard admin "change_form": which is the >

Re: Best way to extend admin change_form?

2006-11-05 Thread Mario Graziosi
directory. > > btw: I´m on the django IRC channel for additional help. > > patrick > > Am 05.11.2006 um 18:02 schrieb Mario Graziosi: > > >> Thanks patrickk, >> >> but the point is that I wish to use the standard change_form most >> of the >

How to access manipulator from admin change_form?

2006-11-08 Thread Mario Graziosi
Please, does anybody know how do I access the manipulator from withn the template of the admin change_form? Thanks. -- Mario Graziosi, mailto:[EMAIL PROTECTED] FG&A srl (http://www.fgasoftware.com/) [EMAIL PROTECTED]: The agile PBX (http://www.voiceatwork.eu/) Tel: 02 9350-4780 interno

Re: repopulation of formfields with select fields not working

2006-11-08 Thread Mario Graziosi
nse('accounts/register_details.html', {'form': > form,'user':request.user}) > > > but there seams that the selection fields dont get selected how do i > solve this problem? > > Cheers > > Pat > > > > > > --

Re: How to access manipulator from admin change_form?

2006-11-08 Thread Mario Graziosi
lator, I'd be able to keep the admin logic intact and lay-out the data fields the way I wish. Well, I'll try to find my own way to do what I want and, if successful, I'll post the solution in the hope it might be useful to other developers. Thanks. [EMAIL PROTECTED] wrote: > Hi

How to restrict, in "delete confirmation", the affected objects list?

2006-12-09 Thread Mario Graziosi
Is it possible to restrict the list of "would be deleted" objects when asking to delete a specific object using the admin interface? I have several thousand records related to the object to be deleted. Is is quite useless (and time consuming) to display the list of 3000+ records to ask for co

  1   2   3   4   5   >