Re: How to format string on I18n

2011-12-05 Thread rskm1
On Dec 5, 6:05 am, Tsung-Hsien wrote: > I have been delete the "#, fuzzy" and remain the "#, python-format", > but the string still show English. You do need to remove the ", fuzzy" in order for the translations to be used. But you also need to recompile the .mo files

Re: Redirect to html file

2009-06-29 Thread rskm1
> Hi! If I have some html file somewhere (i.e. /var/file), how to > redirect user to it? It is not a template and not in a template > folder. Thanks :) "Redirect" probably isn't the word you wanted there. If you really meant "How do I make my view function display the contents of an arbitrary

Re: makemessages .. not all translations found or commented out

2009-06-24 Thread rskm1
> when I use this command > ./manage.py makemessages -l nl  -e=html,txt,py -- > pythonpath=apps_pinax,templates_pinax > > It finds also text in the txt files.. but it also comments out parts > of translations I found with the first command like > > #~ msgid "Discussion Topics for Tribe" > #~

Re: Help a noob with a stupid question - forms

2009-05-12 Thread rskm1
On May 12, 6:47 am, zachp wrote: > ... I need the user who does this to be able to select a > month (and possibly a year) for the drawing she wants to run. I need > django to convert those two data points into a datetime object for me, > but it's not readily obvious how to do

Re: Random locale strings translated

2009-05-11 Thread rskm1
On May 11, 3:47 am, phred78 wrote: > I've specified translation string, got the translations done and > compiled. > > It's working for the most part, but some of the strings don't show up > correctly translated, where others do. > What could be causing this? Has anyone come

Re: Html inside {% blocktrans %} tags

2009-05-11 Thread rskm1
On May 8, 8:06 pm, Stephen Sundell wrote: > Can I wrap something like : "Click here to go > back." inside a blocktrans tag? Certainly! The only caveat is that the person doing the translation work (often a hired contractor, sometimes from outside of the Computer-

Re: Admin site I18n - ForeignKeys, app names questions

2009-02-12 Thread rskm1
> Also, what does 'fuzzy' mean in my .po file? I'm not an authority on the subject but have dealt with translations and .po files quite a bit. The term "fuzzy" in this context means it's not an EXACT match, but it's very similar; i.e. a "fuzzy match". The "fuzzy" usually shows up when the

Re: Dictionary Issue in Django Template (Beginner)

2008-09-24 Thread rskm1
> {% for machine in web %} >   {% for status_message in  status.machine %} > ... > So, i want to be able to do something like status.machine.. If there's a BETTER way, I'd love to hear it too, but this is usually accomplished with a custom filter. It's commonly named "getattr", and your template

Re: modify select widget

2008-07-14 Thread rskm1
On Jul 13, 9:58 am, "Nikolay Panov" <[EMAIL PROTECTED]> wrote: > You should create your custom widget for this. Also see the thread from a couple weeks ago titled "choices", http://groups.google.com/group/django-users/browse_thread/thread/d373794afef19e39/0009b671ebd91ac1

Re: choices

2008-07-03 Thread rskm1
On Jul 3, 8:13 am, urukay <[EMAIL PROTECTED]> wrote: > no, no i mean it otherway, just like Rajesh Dhawan wrote (link he sent). I will rephrase your original question; it's not obvious to everyone that the REASON you want two of your six choices to be "not selectable" is because they are

Re: how to get form fields to show

2008-06-26 Thread rskm1
> urlpatterns = patterns('', > (r'/step-1.html', 'billpay.views.DoPayDetailForm'), > ) > > Wouldn't this call the dopaydetailform view if you went to the page / > step-1.html ? At this stage, while you're still learning, I would AVOID making URL mappings that "appear" to be HTML files,

Re: Do you code django with Komodo?

2008-06-26 Thread rskm1
On Jun 24, 4:22 pm, Tye <[EMAIL PROTECTED]> wrote: > Semi-off-topic: > Does anybody know how to get notepad to save as UTF-8 by default? It > keeps trying ANSI, and I keep hating. Unlikely; Notepad is REALLY lightweight. Wordpad is MUCH better; it handles files >64K, files with UNIX-style

Re: forms.form_for_model

2007-12-21 Thread rskm1
Ahh! That helps. Sorry, I haven't ever used form_for_model() and didn't recognize that IssueEntryForm in the original post was NOT a form instance. Corrections embedded below. On Dec 21, 8:48 am, mike <[EMAIL PROTECTED]> wrote: > Sorry if I was unclean, I just discovered this and I am still

Re: How to make fields with editable=False visible in the Admin interface

2007-12-21 Thread rskm1
On Dec 21, 2:59 am, brian corrigan <[EMAIL PROTECTED]> wrote: > try using > > Seems like a good idea, but remember that a DISABLED field's value does _not_ get sent back with the HttpRequest submission, and will therefore be flagged as missing input if the form's field definition doesn't have

Re: forms.form_for_model

2007-12-20 Thread rskm1
On Dec 20, 2:58 pm, mike <[EMAIL PROTECTED]> wrote: > anyone know how to auto assign a variable to my form field? > > IssueEntryForm.base_fields['customer'].widget = widgets.HiddenInput() > IssueEntryForm.base_fields['customer'].widget = HELP I'm not sure I understand the question; what exactly

Re: Limit Spam

2007-12-17 Thread rskm1
> On Sun, 2007-12-16 at 10:56 -0500, Tim Riley wrote: > > Is there a way that the admins can limit the amount of spam coming > > from this mailing list? I've never moderated a google group, but it seems like a nice feature would be the ability to require moderator approval of the FIRST post made

Re: Stupid template question

2007-12-15 Thread rskm1
On Dec 14, 1:03 am, Steve Freitas <[EMAIL PROTECTED]> wrote: > Only, it doesn't work. It seems like . lookups > require the argument to be a literal, not a variable. Grindizer addresses your specific problem of enumerating key/value pairs in a template (piece of cake!), but if you still wanted

Re: Request data is lost between two views

2007-10-17 Thread rskm1
On Oct 16, 5:35 am, Divan Roulant <[EMAIL PROTECTED]> wrote: > I loose request data when I call a view with reverse from a previous > view. Here is what I do: > > def my_first_view(request): > # Processing here > return HttpResponseRedirect(reverse('my_second_view, > args=(request,))) > >

Re: Check box form

2007-10-17 Thread rskm1
On Oct 17, 1:52 pm, jacoberg2 <[EMAIL PROTECTED]> wrote: > I am trying to create a checkbox form so that the user can delete a > large number of > registrations at once. I am wondering how I should set up the view in > order to deal with > the incoming data. Any suggestions? The template can

Re: Contact Form not Rendering Properly

2007-09-12 Thread rskm1
> The html code isn't being rendered properly. I'm assuming this is a slightly-noobish question (I'm still a novice myself, so if the problem is something more subtle, nevermind me). Your template seems a little light on the use of the "|escape" filter. So if any of the values in your database

Re: Newbie: How to create different person models that share a profile model?

2007-08-27 Thread rskm1
On Aug 24, 7:28 pm, "Ariel Mauricio Nunez Gomez" <[EMAIL PROTECTED]> wrote: > Note: The user profile part was taken from this useful blog entry on James > Bennet > site:http://www.b-list.org/weblog/2006/06/06/django-tips-extending-user-model Yeah, that's the advice I keep seeing when this

Re: Multi field validation with clean method

2007-08-10 Thread rskm1
On Aug 9, 7:34 pm, [EMAIL PROTECTED] wrote: > So, if I use clean_annotationvalue to do both how would I be able to put an > error > message on the annotation type ... I think you were on the right track the first time. Philosophically, the Form's clean() method is where you're supposed to be

Re: about templates tags

2007-08-10 Thread rskm1
On Aug 9, 11:23 am, "Lic. José M. Rodriguez Bacallao" <[EMAIL PROTECTED]> wrote: > can I include more than one template tag definition in a single template tag > file? Right now I was trying to do that and I can't. I'm still a novice, but I know you can define multiple filters in one .py file,

Templates: dynamic attribute referencing?

2007-08-08 Thread rskm1
(I know I can't simply _NEST_ {{}}'s in a template, but I'm using it as pseudosyntax to help express what I'm _trying_ to do.) Is there any way, in a template, to get an attribute of an object when the NAME of that attribute is dynamic (i.e. in/from another object)? What I really want is: {{

Newforms w/ *dynamic* ChoiceField choices?

2007-08-02 Thread rskm1
Newforms has a spiffy way to dynamically set the "initial" values of fields, in the view code when the Form is constructed. choosecolorform = ChooseColorForm(initial={'color': 'black'}) I was hoping it would be just as easy to dynamically define the choices available in a ChoiceField, too...

Re: prepare() on oldforms.CheckboxSelectMultipleField not working properly?

2007-07-23 Thread rskm1
On Jul 22, 10:16 am, "Daniel Kvasnicka jr." <[EMAIL PROTECTED]> wrote: > errors = form.get_validation_errors(data) > > which in effect calls prepare() on every field, my data from those > selects are trimmed and contain only the last checked item. So when I > have the following choices from which

Re: Django's User authentication

2007-07-19 Thread rskm1
Jason F. McBrayer wrote: > james_027 <[EMAIL PROTECTED]> writes: > > > what if I need additional fields or methods for my apps? Do i inherit > > it or edit the user class? > > The standard approach is here: > http://www.b-list.org/weblog/2006/06/06/django-tips-extending-user-model I'm glad this

Re: recursive relation

2007-07-16 Thread rskm1
On Jul 16, 3:36 pm, "Lic. José M. Rodriguez Bacallao" <[EMAIL PROTECTED]> wrote: > How can I make a recursive one-to-many relation? > > -- > Lic. José M. Rodriguez Bacallao According to http://www.djangoproject.com/documentation/model-api/#many-to-one-relationships ``To create a recursive

Re: {{ perms }} seems to be empty

2007-07-03 Thread rskm1
Jeremy Dunck wrote: > On 5/23/07, Michael Lake <[EMAIL PROTECTED]> wrote: > ... > > return render_to_response('lab/user.html', data) > > Yeah, that's your problem right there. > : > ... I imagine this bites a lot of people on the ass. :( Add me to the list of ass-bitten and extremely

Re: {{ perms }} seems to be empty

2007-07-03 Thread rskm1
rskm1 wrote: > Any chance of getting the _DOCS_ updated? > > For example, it would be nice if the first place {{perms.foo}} was > mentioned would at least hint that it wouldn't work in conjunction > with the render_to_response() shortcut, or perhaps it could introduce > the Re