Re: Proposal: Composite Foreign Keys

2012-11-29 Thread Ron Smith
I thought there were several patches or workarounds proposed in the thread
that I commented on. I did not mean to kick a hornets nest. I'll just back
away quietly now and see if I can switch everything over to SQLAlchemy like
one of the other comments suggested.

On Thu, Nov 29, 2012 at 5:02 PM, Alex Gaynor  wrote:

> No, there is no such solution in the codebase. Are you aware of a patch we
> should be reviewing on this issue?
>
> Alex
>
>
> On Thu, Nov 29, 2012 at 2:43 PM, Ron Smith  wrote:
>
>> So here we are 4 years later, version 1.5 is about to be released and we
>> still don't have a solution for composite primary keys in the code base? Or
>> am I missing it in the docs somewhere?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django developers" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/django-developers/-/UnrMyhTujxIJ.
>> To post to this group, send email to django-developers@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 disapprove of what you say, but I will defend to the death your right
> to say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
> "The people's good is the highest law." -- Cicero
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django developers" group.
> To post to this group, send email to django-developers@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-developers@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: Proposal: Composite Foreign Keys

2012-11-29 Thread Ron Smith
I'm sorry, I did not indent for it to be hostile or rude but, after reading
it I guess it could sound that way. I was more frustrated because I was
sure I was missing something somewhere.

On Thu, Nov 29, 2012 at 5:06 PM, Jacob Kaplan-Moss wrote:

> On Thu, Nov 29, 2012 at 4:43 PM, Ron Smith  wrote:
> > So here we are 4 years later, version 1.5 is about to be released and we
> > still don't have a solution for composite primary keys in the code base?
> Or
> > am I missing it in the docs somewhere?
>
> I'm not sure if you meant to, but your tone here comes across as
> pretty hostile. That's not a great way to deal with a community of
> volunteers who work on stuff in their free time; it makes it sound
> like you think you're entitled to our free work.
>
> If that's not your intention -- and I hope it's not! -- please check
> your tone next time. You'll find you'll be a lot more productive
> around here if you're polite and offer to help.
>
> Jacob
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers" group.
> To post to this group, send email to django-developers@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-developers@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: I'd like to make a contribution to the wiki

2012-11-29 Thread Russell Keith-Magee
Hi Harry,

That particular page has been locked down due to problems we've had with
spam. If you let us know what you want to add, I can add an entry to the
list on your behalf.

Yours,
Russ Magee %-)

On Tue, Nov 27, 2012 at 10:57 PM, Harry Percival
wrote:

> It's for promotional purposes really - I want to add my employers,
> PythonAnywhere, to the list of Django-Friendly-Web-Hosts
>
>
> https://code.djangoproject.com/wiki/DjangoFriendlyWebHosts
>
>
> But it's not entirely one-sided and evil-marketing-spammy.  We do offer
> Django hosting as part of our Free plan, so it's a nice place for people to
> come and try out Django, for free, maybe host a prototype web app...
>
> I'd be very happy help out more generally, by, say, cleaning up that page,
> fixing/removing broken links (I found a few), etc...
>
> I'd need WIKI_ADMIN privileges on the trac instance. my username is hjwp.
>
> rgds,
> Harry
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django developers" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-developers/-/h6XZT7_QucIJ.
> To post to this group, send email to django-developers@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-developers@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: Proposal: Composite Foreign Keys

2012-11-29 Thread Jacob Kaplan-Moss
On Thu, Nov 29, 2012 at 4:43 PM, Ron Smith  wrote:
> So here we are 4 years later, version 1.5 is about to be released and we
> still don't have a solution for composite primary keys in the code base? Or
> am I missing it in the docs somewhere?

I'm not sure if you meant to, but your tone here comes across as
pretty hostile. That's not a great way to deal with a community of
volunteers who work on stuff in their free time; it makes it sound
like you think you're entitled to our free work.

If that's not your intention -- and I hope it's not! -- please check
your tone next time. You'll find you'll be a lot more productive
around here if you're polite and offer to help.

Jacob

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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: Proposal: Composite Foreign Keys

2012-11-29 Thread Alex Gaynor
No, there is no such solution in the codebase. Are you aware of a patch we
should be reviewing on this issue?

Alex


On Thu, Nov 29, 2012 at 2:43 PM, Ron Smith  wrote:

> So here we are 4 years later, version 1.5 is about to be released and we
> still don't have a solution for composite primary keys in the code base? Or
> am I missing it in the docs somewhere?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-developers/-/UnrMyhTujxIJ.
> To post to this group, send email to django-developers@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 disapprove of what you say, but I will defend to the death your right to
say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
"The people's good is the highest law." -- Cicero

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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: Proposal: Composite Foreign Keys

2012-11-29 Thread Ron Smith
So here we are 4 years later, version 1.5 is about to be released and we 
still don't have a solution for composite primary keys in the code base? Or 
am I missing it in the docs somewhere?

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-developers/-/UnrMyhTujxIJ.
To post to this group, send email to django-developers@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: A.objects.getdefault

2012-11-29 Thread Wim Feijen
Hi Anssi,

When I thought about it, the most prominent usecase seemed to me of getting 
one of a set of many and expecting just one result. In that case, 
get_or_none would suffice. However, as a method name, I prefer first() for 
being concise. 

For me it is ok to just have the first() method without last(). For 
example, sqlalchemy defines first() but not last(). Although jquery does 
define both.

I agree that ordering should be applied and in case no ordering is 
specified on the model, I really would like to use ordering by pk. Doesn't 
filter provide results by default in that order? Unfortunately, I was not 
able to comprehend the workings of clone so I am not sure.

Regards, Wim

Op donderdag 29 november 2012 08:12:28 UTC+1 schreef Anssi Kääriäinen het 
volgende:
>
> On 29 marras, 01:13, Wim Feijen  wrote: 
> > Hi, the patch has been updated and now works. 
> > 
> > Still, feedback would be appreciated. So, Anssi, Jacob? 
>
> Apart of some whitespace errors the patch looks good to me. 
>
> There isn't last() method in the patch. Implementing one is going to 
> be a little more challenging as one needs to change the direction of 
> all the ordering clauses. Do we want one in the same patch? 
>
> A bigger problem might be that we already have .latest() which does 
> something a bit different. I wonder if having both .last(filter_args) 
> and .latest(by_field) is going to be confusing. 
>
> Another API issue is that should .first() check for some ordering? 
> This could add some protection. In testing conditions things might 
> work, but when updates are done to the rows the expected ordering 
> suddenly changes. One option is to do automatic ordering on PK if 
> there isn't any other ordering present. 
>
> I still like the idea of .get_default() mainly for the added "if 
> multiple objects returned, then throw an error" protection it gives. 
> From implementation/maintenance perspective these are really easy 
> additions, from API bloat perspective maybe not... 
>
>  - Anssi 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-developers/-/I3QQzpiFaZYJ.
To post to this group, send email to django-developers@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: I'd like to make a contribution to the wiki

2012-11-29 Thread Harry Percival
Hey,

We're definitely committed to the freemium model, so there should always be 
a free plan + free web hosting.  What we might do is tweak the bandwidth 
and cpu usage restrictions to encourage heavy users to start paying, but 
people running a small webapp shouldn't have anything to worry about.

I should also say that it's our intention to grandfather in any feature 
changes for the free accounts in future.  So if, for example, we decided 
(say) that HTTPS was going to become a paid-for feature, we'd still keep it 
free for any users that had already signed up, they could still keep using 
HTTPS on their free web apps - it would only be new free accounts that 
would be HTTP-only...

Hope that helps?

cheers,
HP

On Thursday, November 29, 2012 1:20:14 PM UTC, is_null wrote:
>
> I've set up the test_project of one of my apps - 
> http://jpic.pythonanywhere.com/ (user/pass: test/test) it went pretty 
> well. Great work !
>
> One question thought, most of the time, free accounts disappear at some 
> point, when the company grows. Are you committed to maintaining free 
> accounts ?
>
> Thanks for answering
>
>
> On Tue, Nov 27, 2012 at 3:57 PM, Harry Percival 
>  > wrote:
>
>> It's for promotional purposes really - I want to add my employers, 
>> PythonAnywhere, to the list of Django-Friendly-Web-Hosts
>>
>>
>> https://code.djangoproject.com/wiki/DjangoFriendlyWebHosts
>>
>>
>> But it's not entirely one-sided and evil-marketing-spammy.  We do offer 
>> Django hosting as part of our Free plan, so it's a nice place for people to 
>> come and try out Django, for free, maybe host a prototype web app...
>>
>> I'd be very happy help out more generally, by, say, cleaning up that 
>> page, fixing/removing broken links (I found a few), etc...
>>
>> I'd need WIKI_ADMIN privileges on the trac instance. my username is hjwp.
>>
>> rgds,
>> Harry
>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django developers" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/django-developers/-/h6XZT7_QucIJ.
>> To post to this group, send email to 
>> django-d...@googlegroups.com
>> .
>> To unsubscribe from this group, send email to 
>> django-develop...@googlegroups.com .
>> For more options, visit this group at 
>> http://groups.google.com/group/django-developers?hl=en.
>>
>
>
>
> -- 
> http://yourlabs.org 
> Customer is king - Le client est roi - El cliente es rey.
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-developers/-/0MOXd1KXI1kJ.
To post to this group, send email to django-developers@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: I'd like to make a contribution to the wiki

2012-11-29 Thread James Pic
I've set up the test_project of one of my apps -
http://jpic.pythonanywhere.com/ (user/pass: test/test) it went pretty well.
Great work !

One question thought, most of the time, free accounts disappear at some
point, when the company grows. Are you committed to maintaining free
accounts ?

Thanks for answering


On Tue, Nov 27, 2012 at 3:57 PM, Harry Percival wrote:

> It's for promotional purposes really - I want to add my employers,
> PythonAnywhere, to the list of Django-Friendly-Web-Hosts
>
>
> https://code.djangoproject.com/wiki/DjangoFriendlyWebHosts
>
>
> But it's not entirely one-sided and evil-marketing-spammy.  We do offer
> Django hosting as part of our Free plan, so it's a nice place for people to
> come and try out Django, for free, maybe host a prototype web app...
>
> I'd be very happy help out more generally, by, say, cleaning up that page,
> fixing/removing broken links (I found a few), etc...
>
> I'd need WIKI_ADMIN privileges on the trac instance. my username is hjwp.
>
> rgds,
> Harry
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django developers" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-developers/-/h6XZT7_QucIJ.
> To post to this group, send email to django-developers@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.
>



-- 
http://yourlabs.org 
Customer is king - Le client est roi - El cliente es rey.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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: How to show rsync progress in Django?

2012-11-29 Thread Adnane Belmadiaf
Please ask questions about using Django on django-users. The topic of this
list is the development of Django itself.

Thanks.


2012/11/29 Sachit Adhikari 

> I am using the development version of rsync with --info-progress option. I
> am writing a django front-end app which transfer files from server to local
> computer using rsync. This is the code I am using:
> finalresult = subprocess.Popen(['sshpass', '-p', password, 'rsync',
> '-avz', '--info=progress2', 'hostname:/filename', '/home/nfs/django/user'],
> stdout=subprocess.PIPE).**
> communicate()[0]
>
> This should store the processing in the finalresult. But I can neither
> access the variable or show the value in it. How can I do that? Also, Is
> there a better way to show the rsync progress in Django? Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-developers/-/1Hp5sMdyiVYJ.
> To post to this group, send email to django-developers@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.
>



-- 
Cordialement
Adnane Belmadiaf

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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.



How to show rsync progress in Django?

2012-11-29 Thread Sachit Adhikari
I am using the development version of rsync with --info-progress option. I 
am writing a django front-end app which transfer files from server to local 
computer using rsync. This is the code I am using:
finalresult = subprocess.Popen(['sshpass', '-p', password, 'rsync', '-avz', 
'--info=progress2', 'hostname:/filename', '/home/nfs/django/user'], 

stdout=subprocess.PIPE).communicate()[0] 

This should store the processing in the finalresult. But I can neither 
access the variable or show the value in it. How can I do that? Also, Is 
there a better way to show the rsync progress in Django? Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-developers/-/1Hp5sMdyiVYJ.
To post to this group, send email to django-developers@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.