form elements css changes on errors

2009-05-04 Thread joeygartin

Disclaimer:  I am new to Django and not the greatest programmer.

I would like to add a css class to form elements if there is an error
in the form.  Not sure the BEST/EASIEST way to do this.  I would only
want the attribute added if there was an error and I would like to do
this in the cleanest way possible.  Meaning I would LIKE to stay away
from if statements for every form element I have in the HTML and
rather put the proper code in Python (perhaps forms.py with the form
declaration), but I am new and not exactly sure how to proceed.

To anyone who replies, if my question annoys you, then simply do not
reply, no need for insults or "read the docs" replies.

To everyone else: Thank you in advance for your help!
--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Webpy vs Django

2009-04-23 Thread joeygartin

I almost made a comment the other day on this topic in regards to how
to "Properly reply to a question" and other etiquette.

Several years ago I entered the tech and IT industry and quickly
noticed the incredible lack of good social skills by my peers.  It
went beyond not knowing how to dress (beyond fashion sense, but not
realizing your clothes were wrinkled, dirty and had a bad odor) or how
to talk to girls, it included the inability to control inner
dialogue.  There was a genuine inability to understand true team
dynamics.  I had transferred to the "computer realm" from a strong
Chemistry background, so socially awkward people were a norm, but this
was different.  I noticed that most of these people would discuss
these issues and cite books they had read about building teams and how
to "read" or "handle" people.  It was quite funny to hear one of them
explain how to work with others and respect people, yet not be able to
actually execute it appropriately.

I have not pursued a formal study, but I have noticed that there is a
lack of team building events in their early lives.  No true team
sports growing up, but rather events rewarding being an individual
(chess, video games, go, etc).  The deeper concepts of teams
completely eluded them, just as most social skills.  They could read
all about how to build teams or work in teams, but oddly most of the
books they read were written by other "techies" who had made a living
jumping from team to team and being praised as "guns for hire" in the
tech world.

You will notice these people have a very small group of friends in
their real life and are more empowered in this virtual world.  Their
weakness in the real world is balanced out by being strong in this
world and most of them pursue/view strength through an ability to be
condescending.  Their inner sorrow is projected out in a form of rage
and that usually (hopefully) only comes out as rude, curt and
inpatient.

No need to chastise them, their life is full enough of that, rather
ignore their rudeness and try and pick the "gems" of wisdom they
dispense between stabs.  After all, most of them are very intelligent
in a very focused realm, like programming in Python.


On Apr 22, 8:15 pm, mdipierro  wrote:
> > Knowing nothing about web design, this seems a very legal question to me.
> > With Python you can do everything, so why do you need Django or Web2Py
> > at all ?
>
> without going over differences since this is not the appropriate place
> for me to speak...
> all web apps have something in common:
> - the need to map urls into function calls (dispatching)
> - they need to manage persistence (sessions, cookies, database, cache)
> - they need to be able to manipulate standard protocols including
> http, html, rss, json, etc.
>
> At first approximation a framework is a collection of libraries for
> doing those things in the proper way.
> Some frameworks are collections of modules written separately, some
> are collections developed to work together.
>
> At second approximation a framework usually has a philosophy and
> guides the developer to follow good software engineering practices by
> forcing the developer to build web apps in a modular way.
>
> You can develop web apps without a framework but there is a lot of
> coding to do. It would not be efficient. Just think about the problem
> of efficiently handling sessions, generate session cookies, retrieve
> the session, etc. There are many chances of doing mistakes and, if you
> know how to it eventually you end writing a framework yourself.
> Unfortunately that is what happened to some of us.
>
> > One of the selection criteria I often use,
> > is the support offered in discussion lists
> > ... and until now I didn't encounter the kind of answers in the web2py
> > list as I've seen here on this question.
>
> I do not remember you ever asking this question there but if you do
> again I will be happy go over more details.
>
> > just my 2 cents as another still seeking for the right answers person,
> > cheers,
> > Stef Mientki
>
> sorry for the intrusion.
>
> Massimo

--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Your IDE of choice

2009-01-07 Thread joeygartin

Textmate with Python/Django bundles is very visually nice, but without
code completion (and a few other tools) is just a pretty screen.
Eclipse/PyDev would be nice, but it does seem to have a lot of little
issues that are annoying.  I have used IntelliJ for Java (and a couple
of Rails projects) for the last few years and am looking into the
Python/Django support for it.  If they bring this up to speed then it
should be the best IDE out there.

On Jan 6, 3:48 am, HB  wrote:
> Hey,
> What is your favorite IDE for coding Django projects?
> Any ideas about PyDev and ActiveState Komodo IDE?
> Thanks.
--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---