Re: Porting Django to Python 3

2010-01-12 Thread Tobias McNulty
I am by no means an expert on the matter, but I remember seeing a comment
awhile back suggesting that it generally makes more sense to fix the 2to3
script than to maintain two branches of the same library. Might that be the
case here as well?

Sent from a mobile phone, please excuse any typos.

On Jan 12, 2010 11:53 PM, "Joshua Partogi"  wrote:

On Jan 9, 1:02 pm, Russell Keith-Magee  wrote:

> On Sat, Jan 9, 2010 at 2:25 AM, Dave  wrote: > > Hello
everyone, > > > My name...
Russ,

Would it be possible if the django core developers to create a python3
branch in the django svn repository?

Kind regards,

--
http://jobs.scrum8.com | http://twitter.com/scrum8

--
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to django-develop...@googlegroups.com.
To unsubscribe from this group, send email to
django-developers+unsubscr...@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/django-developers?hl=en.
-- 

You received this message because you are subscribed to the Google Groups "Django developers" group.

To post to this group, send email to django-develop...@googlegroups.com.

To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.



Re: Porting Django to Python 3

2010-01-12 Thread Alex Gaynor
On Tue, Jan 12, 2010 at 10:52 PM, Joshua Partogi
 wrote:
> On Jan 9, 1:02 pm, Russell Keith-Magee  wrote:
>> On Sat, Jan 9, 2010 at 2:25 AM, Dave  wrote:
>> > Hello everyone,
>>
>> > My name is Dave Weber, and I'm a student at the University of Toronto,
>> > studying Computer Science. For one of our undergraduate courses led by
>> > Greg Wilson (http://www.cs.utoronto.ca/~gvwilson/), myself and a group
>> > of 10 other computer science students will be trying to port Django to
>> > Python 3.
>>
>> > Until the end of January, we'll be studying the existing Django code
>> > in order to gain an understanding of how the program works. We'll be
>> > doing this primarily through architecture documentation and
>> > performance profiling. In early February we plan on beginning work on
>> > the port.
>>
>> > A few of us have experience working with Django, and by the end of
>> > January we should have a much better understanding of it. I've been in
>> > touch with Jacob Kaplan-Moss, who pointed me to this group, and he
>> > also provided me with links about contributing to the Django project
>> > and Martin van Lowis' port.
>>
>> > We don't really have any specific questions right now as we're pretty
>> > unfamiliar with most of the project at this point in time. However, we
>> > are very eager to learn as much as we can, so if you have any advice,
>> > warnings, or anything at all to say to us, please feel free! We'd like
>> > to hear from all of you as much as possible.
>>
>> Hi Dave,
>>
>> Sounds like an interesting project!
>>
>> My best piece of advice would be to learn to love the test suite.
>> Django's test suite may take a long time to run, but it is quite
>> comprehensive, and has enabled us to complete several large internal
>> refactoring projects with a minimum of impact on the general user
>> community.
>>
>> My other advice would be to get involved in the community. Don't just
>> treat your Python 3 port as "your CS project", independent of the rest
>> of the world. For example, if your porting efforts discovers a section
>> of code that isn't tested (or tested well), or you discover a simple
>> fix that will boost performance, don't be a stranger - submit a patch
>> and help us make Django better.
>>
>> This even extends to documentation - if your porting efforts generate
>> architecture documentation that might be useful to the general
>> community, we'd love to have that contributed back to the community.
>>
>> Best of luck with your project. I can't wait to see what you come up with :-)
>>
>> Yours,
>> Russ Magee %-)
>
> Russ,
>
> Would it be possible if the django core developers to create a python3
> branch in the django svn repository?
>
> Kind regards,
>
> --
> http://jobs.scrum8.com | http://twitter.com/scrum8
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django developers" group.
> To post to this group, send email to django-develop...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-developers+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-developers?hl=en.
>
>
>
>

I'm not a core developer, but my perspective on the matter is, why?
Branches in Django's SVN are usually either from core developers or
other individuals working on projects specifically endorsed, and
mentored by core developers (such as GSOC).  As such I think the most
sensible course of action would be to work on an external repo, on
something like github, bitbucket, or google code.

Alex

-- 
"I disapprove of what you say, but I will defend to the death your
right to say it." -- Voltaire
"The people's good is the highest law." -- Cicero
"Code can always be simpler than you think, but never as simple as you
want" -- Me
-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-develop...@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.




Re: Porting Django to Python 3

2010-01-12 Thread Joshua Partogi
On Jan 9, 1:02 pm, Russell Keith-Magee  wrote:
> On Sat, Jan 9, 2010 at 2:25 AM, Dave  wrote:
> > Hello everyone,
>
> > My name is Dave Weber, and I'm a student at the University of Toronto,
> > studying Computer Science. For one of our undergraduate courses led by
> > Greg Wilson (http://www.cs.utoronto.ca/~gvwilson/), myself and a group
> > of 10 other computer science students will be trying to port Django to
> > Python 3.
>
> > Until the end of January, we'll be studying the existing Django code
> > in order to gain an understanding of how the program works. We'll be
> > doing this primarily through architecture documentation and
> > performance profiling. In early February we plan on beginning work on
> > the port.
>
> > A few of us have experience working with Django, and by the end of
> > January we should have a much better understanding of it. I've been in
> > touch with Jacob Kaplan-Moss, who pointed me to this group, and he
> > also provided me with links about contributing to the Django project
> > and Martin van Lowis' port.
>
> > We don't really have any specific questions right now as we're pretty
> > unfamiliar with most of the project at this point in time. However, we
> > are very eager to learn as much as we can, so if you have any advice,
> > warnings, or anything at all to say to us, please feel free! We'd like
> > to hear from all of you as much as possible.
>
> Hi Dave,
>
> Sounds like an interesting project!
>
> My best piece of advice would be to learn to love the test suite.
> Django's test suite may take a long time to run, but it is quite
> comprehensive, and has enabled us to complete several large internal
> refactoring projects with a minimum of impact on the general user
> community.
>
> My other advice would be to get involved in the community. Don't just
> treat your Python 3 port as "your CS project", independent of the rest
> of the world. For example, if your porting efforts discovers a section
> of code that isn't tested (or tested well), or you discover a simple
> fix that will boost performance, don't be a stranger - submit a patch
> and help us make Django better.
>
> This even extends to documentation - if your porting efforts generate
> architecture documentation that might be useful to the general
> community, we'd love to have that contributed back to the community.
>
> Best of luck with your project. I can't wait to see what you come up with :-)
>
> Yours,
> Russ Magee %-)

Russ,

Would it be possible if the django core developers to create a python3
branch in the django svn repository?

Kind regards,

--
http://jobs.scrum8.com | http://twitter.com/scrum8
-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-develop...@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.




Re: Feedback on ticket 7777

2010-01-12 Thread Russell Keith-Magee
On Tue, Jan 12, 2010 at 11:17 PM, thebitguru  wrote:
> Oh, I thought someone else might also have to agree, but anyways, I
> see (http://code.djangoproject.com/wiki/Version1.2Roadmap) that the
> complete feature freeze is January 26 so I will check again on
> February 11 :)
>
> I changed the version to 1.2alpha.

I didn't say *version* -

>> On an administrative matter - if you want to improve the chances that
>> this ticket will be closed in the 1.2 bug fixing period, then you
>> should flag it for the 1.2 milestone.

I said *milestone*. I've corrected the ticket.

Yours,
Russ Magee %-)
-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-develop...@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.




Re: Feedback on ticket 7777

2010-01-12 Thread thebitguru
Oh, I thought someone else might also have to agree, but anyways, I
see (http://code.djangoproject.com/wiki/Version1.2Roadmap) that the
complete feature freeze is January 26 so I will check again on
February 11 :)

I changed the version to 1.2alpha.

Thanks,
Farhan

On Jan 12, 4:50 am, Russell Keith-Magee 
wrote:
> On Tue, Jan 12, 2010 at 12:05 PM, thebitguru  wrote:
> > Can we please get a final decision on this please?
>
> I was under the impression I *had* given a final decision - we should
> reject Inf and NaN as invalid values.
>
> The ticket hasn't been closed because we're not focussing on bug fixes
> at the moment - we're still in feature development. Once the feature
> freeze happens, we'll move onto fixing bugs.
>
> On an administrative matter - if you want to improve the chances that
> this ticket will be closed in the 1.2 bug fixing period, then you
> should flag it for the 1.2 milestone.
>
> Yours
> Russ Magee %-)
-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-develop...@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.




Re: please help me about enum attribute..

2010-01-12 Thread Chuck Harmston
As Gert said, these are questions that should be asked on django-users [1];
this list is for discussion about the development of Django, not development
with Django.

That said, there are detailed instructions in the docs [2] for using
multiple databases. This support was rolled out recently (since the last
tagged release), so you will need to be using a recent checkout from the
Django SVN repo [3] to do so.

[1] http://groups.google.com/group/django-users
[2] http://docs.djangoproject.com/en/dev/topics/db/multi-db
[3] http://code.djangoproject.com/svn/django/trunk/

On Tue, Jan 12, 2010 at 7:14 AM, chiranjeevi muttoju
wrote:

>
> hello girt thank for ur reply.
>
> i have another problem, could u please help me..
>
> i want to use the multiple database in django.. i fallowed somany
> procedures.. but i cont able to get how to use.. could u please tell me in
> detailed the process for multiple databases in django.. with sample
> settings.. please help me if u know this..
>
> thank you..
>
> On Tue, Jan 12, 2010 at 5:21 PM, Gert Van Gool wrote:
>
>> You should use instance.get_gender_display().
>> See http://www.djangoproject.com/documentation/models/choices/ for more
>> information...
>>
>> I do believe this is more a question for django-users.
>> -- Gert
>>
>> Mobile: +32 498725202
>> Web: http://gert.selentic.net
>>
>>
>> On Tue, Jan 12, 2010 at 12:38, 'chiru'tha  wrote:
>>
>>> Hi every one..
>>>  i got a problem.. please help me..
>>>I create a class for my model, in that class i declare an property
>>> gender and i make it as enum..
>>> it stores M or F only to the database. the sample code is shown
>>> bellow..
>>>
>>> GENDER_CHOICES = (
>>>(u'M', u'Male'),
>>>(u'F', u'Female'),
>>>)
>>> class Player:
>>> -
>>> gender = models.CharField(max_length=2, choices=GENDER_CHOICES,
>>> null=True, blank=True)
>>>  -
>>>
>>>
>>> The problem is, i want to get the fields from data base , it returns
>>> only M or F.. but i want the real values that is  Male and Female..
>>> how to achieve this one.. please help me..
>>>
>>> thank you..
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Django developers" group.
>>> To post to this group, send email to django-develop...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> django-developers+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/django-developers?hl=en.
>>>
>>>
>>>
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django developers" group.
>> To post to this group, send email to django-develop...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-developers+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/django-developers?hl=en.
>>
>>
>
>
> --
> ▒▒�...@g@d...@◄▒▒
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers" group.
> To post to this group, send email to django-develop...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-developers+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-developers?hl=en.
>
>
-- 

You received this message because you are subscribed to the Google Groups "Django developers" group.

To post to this group, send email to django-develop...@googlegroups.com.

To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.



Re: please help me about enum attribute..

2010-01-12 Thread chiranjeevi muttoju
hello girt thank for ur reply.

i have another problem, could u please help me..

i want to use the multiple database in django.. i fallowed somany
procedures.. but i cont able to get how to use.. could u please tell me in
detailed the process for multiple databases in django.. with sample
settings.. please help me if u know this..

thank you..

On Tue, Jan 12, 2010 at 5:21 PM, Gert Van Gool wrote:

> You should use instance.get_gender_display().
> See http://www.djangoproject.com/documentation/models/choices/ for more
> information...
>
> I do believe this is more a question for django-users.
> -- Gert
>
> Mobile: +32 498725202
> Web: http://gert.selentic.net
>
>
> On Tue, Jan 12, 2010 at 12:38, 'chiru'tha  wrote:
>
>> Hi every one..
>>  i got a problem.. please help me..
>>I create a class for my model, in that class i declare an property
>> gender and i make it as enum..
>> it stores M or F only to the database. the sample code is shown
>> bellow..
>>
>> GENDER_CHOICES = (
>>(u'M', u'Male'),
>>(u'F', u'Female'),
>>)
>> class Player:
>> -
>> gender = models.CharField(max_length=2, choices=GENDER_CHOICES,
>> null=True, blank=True)
>>  -
>>
>>
>> The problem is, i want to get the fields from data base , it returns
>> only M or F.. but i want the real values that is  Male and Female..
>> how to achieve this one.. please help me..
>>
>> thank you..
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django developers" group.
>> To post to this group, send email to django-develop...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-developers+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/django-developers?hl=en.
>>
>>
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers" group.
> To post to this group, send email to django-develop...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-developers+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-developers?hl=en.
>
>


-- 
▒▒�...@g@d...@◄▒▒
-- 

You received this message because you are subscribed to the Google Groups "Django developers" group.

To post to this group, send email to django-develop...@googlegroups.com.

To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.



Re: please help me about enum attribute..

2010-01-12 Thread Gert Van Gool
You should use instance.get_gender_display().
See http://www.djangoproject.com/documentation/models/choices/ for more
information...

I do believe this is more a question for django-users.
-- Gert

Mobile: +32 498725202
Web: http://gert.selentic.net


On Tue, Jan 12, 2010 at 12:38, 'chiru'tha  wrote:

> Hi every one..
>  i got a problem.. please help me..
>I create a class for my model, in that class i declare an property
> gender and i make it as enum..
> it stores M or F only to the database. the sample code is shown
> bellow..
>
> GENDER_CHOICES = (
>(u'M', u'Male'),
>(u'F', u'Female'),
>)
> class Player:
> -
> gender = models.CharField(max_length=2, choices=GENDER_CHOICES,
> null=True, blank=True)
>  -
>
>
> The problem is, i want to get the fields from data base , it returns
> only M or F.. but i want the real values that is  Male and Female..
> how to achieve this one.. please help me..
>
> thank you..
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers" group.
> To post to this group, send email to django-develop...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-developers+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-developers?hl=en.
>
>
>
>
-- 

You received this message because you are subscribed to the Google Groups "Django developers" group.

To post to this group, send email to django-develop...@googlegroups.com.

To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.



please help me about enum attribute..

2010-01-12 Thread 'chiru'tha
Hi every one..
 i got a problem.. please help me..
I create a class for my model, in that class i declare an property
gender and i make it as enum..
it stores M or F only to the database. the sample code is shown
bellow..

GENDER_CHOICES = (
(u'M', u'Male'),
(u'F', u'Female'),
)
class Player:
 -
 gender = models.CharField(max_length=2, choices=GENDER_CHOICES,
null=True, blank=True)
  -


The problem is, i want to get the fields from data base , it returns
only M or F.. but i want the real values that is  Male and Female..
how to achieve this one.. please help me..

thank you..
-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-develop...@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.




Re: Feedback on ticket 7777

2010-01-12 Thread Russell Keith-Magee
On Tue, Jan 12, 2010 at 12:05 PM, thebitguru  wrote:
> Can we please get a final decision on this please?

I was under the impression I *had* given a final decision - we should
reject Inf and NaN as invalid values.

The ticket hasn't been closed because we're not focussing on bug fixes
at the moment - we're still in feature development. Once the feature
freeze happens, we'll move onto fixing bugs.

On an administrative matter - if you want to improve the chances that
this ticket will be closed in the 1.2 bug fixing period, then you
should flag it for the 1.2 milestone.

Yours
Russ Magee %-)
-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-develop...@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.




Re: Model validation incompatibility with existing Django idioms

2010-01-12 Thread Raffaele Salmaso
Joseph Kocherhans wrote:
> regressions?
http://code.djangoproject.com/ticket/12577

-- 
()_() | That said, I didn't actually _test_ my patch.  | +
(o.o) | That's what users are for! | +---+
'm m' |   (Linus Torvalds) |  O  |
(___) |  raffaele dot salmaso at gmail dot com |
-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-develop...@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.