I'd like to add support for fixture load/dump to deal with compressed
(gzip) files transparently.
# django-admin.py dumpdata --compress > foo.json.gz
# django-admin.py loaddata foo #looks for foo.json, foo.json.gz, etc.
# django-admin.py syncdb #looks for initial_data.json,
initial_data.json.gz,
jd.strickler wrote:
> First time idea submission for anything, ever. So if this sucks,
> please be kind. Let me know if you think this is worth the work:
>
> http://www.amherst.k12.oh.us/django-ldap.html
>
I know this probably isn't exactly what you are proposing, but have you
looked at the
First time idea submission for anything, ever. So if this sucks,
please be kind. Let me know if you think this is worth the work:
http://www.amherst.k12.oh.us/django-ldap.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Simon, that's great! I think I can overlook the hackiness in my
excitement. I am in your debt.
On Sep 12, 5:18 pm, Simon Willison <[EMAIL PROTECTED]> wrote:
> On Sep 12, 7:45 pm, Brent Hagany <[EMAIL PROTECTED]> wrote:
>
> > As far as I can tell, the argument about being portable is a good
Belajar bermain FOREX step by step
Bagaimana menguasainya dlm masa yang singkat
Saudara Nasir akan mengajarnya
Langkah demi langkah secara terperinci
Agar saudara/i akan mudah memahaminya
Jikalau berminat bermain FOREX silalah...
Maklumat percuma sila layari:
http://tinyurl.com/3ersm2
On Sep 12, 7:45 pm, Brent Hagany <[EMAIL PROTECTED]> wrote:
> As far as I can tell, the argument about being portable is a good one,
> and if that ends up being the reason this doesn't get in right away,
> then I can't complain. However, the part about the single server
> making this more
On Sep 12, 10:46 pm, TP <[EMAIL PROTECTED]> wrote:
> > This means an ORM object should have a
> > special property on it recording which database connection it was
> > loaded from. It also presumes we won't ever want to support the case
>
> I apologize for my ignorance as to how django DB
On Fri, 2008-09-12 at 14:46 -0700, TP wrote:
[...]
> Also, what if the connection has closed for whatever reason since the
> object was loaded (due to DB connection timeout, DB restart, etc)?
The django.db.connection object isn't a pure network connection. It's a
DatabaseWrapper class and knows
Simon Willison wrote:
> That sounds smart to me. There are cases where you want to select from
> one database and then save to another (moving data between different
> database servers, re-sharding data for whatever reason) but the common
> case will be as you describe. This means an ORM object
By the way, If you agree I can create a ticket and send a patch over
the django1.0...
Thanks
On 12 set, 17:04, Michel Thadeu Sabchuk <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> When I define a form and call it on a template like:
>
> ...
> {{ form }}
> ...
>
> The function as_table is called. The
Hi guys,
When I define a form and call it on a template like:
...
{{ form }}
...
The function as_table is called. The function calls _html_output to
render the widget, the errors and help messages.
The error is escaped with django.utils.html.escape function but I
think
On Sep 6, 5:58 pm, HenrikV <[EMAIL PROTECTED]> wrote:
> I would like to make Django support settings defaults for
> applications. Ideally defaults would be loaded together with
> global_settings, but of course that is impossible as INSTALLED_APPS
> must first be configured. So my approach is to
Now I'm nobody special, and I probably don't even belong in this
group, but I do want to voice my support for this part of the original
proposal:
> Dealing with single queries that span multiple databases
>
> Once you have different
On Sep 12, 5:11 pm, mengel <[EMAIL PROTECTED]> wrote:
> > obj = Article.objects.using('master').get(pk = 4)
> > obj.name = 'Hello'
> > obj.save(using = 'master')
>
> Shouldn't the object remember the database used to fetch it, and
> save() should save it back there? Then you would only have to
Thomas Guettler wrote:
> HenrikV schrieb:
>> I would like to make Django support settings defaults for
>> applications. Ideally defaults would be loaded together with
>> global_settings, but of course that is impossible as INSTALLED_APPS
>> must first be configured. So my approach is to add a
To speed things up: Windoze sucks forevar! *BSD rules forevar! And the
most important thing to do is the traditional ending: WWHD? I hope the
thread has been dried up now.
Thanks,
Eugene
David Zhou wrote:
> On Sep 12, 2008, at 11:39 AM, James Bennett wrote:
>
>> On Fri, Sep 12, 2008 at
> obj = Article.objects.using('master').get(pk = 4)
> obj.name = 'Hello'
> obj.save(using = 'master')
Shouldn't the object remember the database used to fetch it, and
save()
should save it back there?Then you would only have to specify it
like that if you want to fetch it from one database
On Sep 12, 2008, at 11:39 AM, James Bennett wrote:
>
> On Fri, Sep 12, 2008 at 10:00 AM, Jeff Anderson
> <[EMAIL PROTECTED]> wrote:
>> I actually was quite amused by your reaction.
>>
>> You are right though, this community does seem to come through with a
>> tone more mature than your average
On Sep 10, 11:04 pm, Tai Lee <[EMAIL PROTECTED]> wrote:
> I'd like to propose a `create_or_update` method, similar to
> `get_or_create`
FYI: there is an old ticket (with patch) for this called
update_or_create [1].
.. [1] http://code.djangoproject.com/ticket/3182
Jacob Kaplan-Moss wrote:
> On Wed, Sep 10, 2008 at 11:25 PM, Jacob Kaplan-Moss
> <[EMAIL PROTECTED]> wrote:
>
>> *snort*
>>
>> Let me know how that goes.
>>
>
> It's been pointed out to me that the above comes across as dismissive
> and condescending, and some took offense at it. I agree
Jacob Kaplan-Moss wrote:
[...]
>
> So, again, sorry about being a dick!
>
Well at least you're a dick with a proper sense of proportion and the
ability to apologize when necessary. Thanks for setting a good example.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
I think the principle of least surprise applies here. It would be very
easy just to implement __call__ as a decorator, but by the same token,
the signal needs to be used from both ends, and the addition of a
__call__ method may confuse some people. As with most problems in
programming, we just
On Sep 11, 8:15 am, mtrier <[EMAIL PROTECTED]> wrote:
> I'd like to propose that we fix up the abstract BaseDatabaseWrapper
> class so that it actually has all the hooks it needs.
To be slightly pedantic, if all the methods in a class contain an
implementation, it's not an abstract base class,
On Wed, Sep 10, 2008 at 11:25 PM, Jacob Kaplan-Moss
<[EMAIL PROTECTED]> wrote:
> *snort*
>
> Let me know how that goes.
It's been pointed out to me that the above comes across as dismissive
and condescending, and some took offense at it. I agree -- it's a
stupid way to respond to an honest
HenrikV schrieb:
> I would like to make Django support settings defaults for
> applications. Ideally defaults would be loaded together with
> global_settings, but of course that is impossible as INSTALLED_APPS
> must first be configured. So my approach is to add a default setting
> if settings
Most of the times i have some extra condition in there.
if not created and modified>instance.modified:
for key, value in defaults_dict.items():
setattr(instance, key, value)
instance.save()
Now this extra clause can be fairly arbitrary.
A generic piece of code could check if there's
ASSALAMUALAIKUM DAN SELAMAT SEJAHTERA
Selalu dengar tentang NOVALIFE sejak kebelakangan ini?
Ingin sertai kami tapi masih ragu-ragu?
Buat keputusan sekarang!
sebelum ia di naik kan selepas 15hb ini!
MLM paling unik dan tiada seumpamanya di dunia..
PInjaman disediakan bagi yang berminat!
Di Klikrupiah, anda akan mendapatkan uang setiap klik iklan.
Prosesnya cukup mudah anda cuma klik iklan dan lihat beberapa detik
kemudian uang masuk kesaldo anda. Anda tidak membutuhkan keahlian.
Yang anda butuhkan hanya lihat iklan dan klik yang ada di website
kami. Anda
bisa mengajak teman anda
28 matches
Mail list logo