Re: [gsoc/app-loading] final status report

2010-08-23 Thread Arthur Koziel
Hey Yuri, I'm sorry but I don't understand your question. Could you please explain it a little more? Thanks, Arthur On Aug 23, 2010, at 5:47 AM, burc...@gmail.com wrote: > Hi Arthur, > > thanks for your work! > > Is any syntax of setting keywords for app instances in INSTALLED_APPS > or some

Re: [gsoc/app-loading] final status report

2010-08-22 Thread burc...@gmail.com
Hi Arthur, thanks for your work! Is any syntax of setting keywords for app instances in INSTALLED_APPS or somewhere in settings supported now? On Mon, Aug 23, 2010 at 2:06 AM, Arthur Koziel wrote: > Hey there, > > the GSOC is over and I wanted to give you all a final status report. > > The AppC

[gsoc/app-loading] final status report

2010-08-22 Thread Arthur Koziel
Hey there, the GSOC is over and I wanted to give you all a final status report. The AppCache was refactored and now creates app instances instead of just loading models. An app is either an instance of django.core.apps.App or a custom class. This depends on the entry in the INSTALLED_APPS setti

Re: [gsoc] app loading status + questions

2010-06-15 Thread Karen Tracey
On Tue, Jun 15, 2010 at 10:46 AM, Arthur Koziel wrote: > 4. Also in the same changeset, the 'nesting_level' and 'can_postpone' > variables were introduced. These fixed a problem where the package is still > being imported by Python and the model module isn't available yet. Again, I > couldn't repr

Re: [gsoc] app loading status + questions

2010-06-15 Thread Alex Gaynor
On Tue, Jun 15, 2010 at 9:46 AM, Arthur Koziel wrote: > Hey there, > > I'm making some progress on the app loading gsoc project. I'm still in the > process of writing tests for the AppCache. It took me longer than I've > thought. However, I'm really confident that I'll finish the testing stuff

[gsoc] app loading status + questions

2010-06-15 Thread Arthur Koziel
Hey there, I'm making some progress on the app loading gsoc project. I'm still in the process of writing tests for the AppCache. It took me longer than I've thought. However, I'm really confident that I'll finish the testing stuff this week and move on to writing the new App class. There are st

Re: GSoC: App Loading

2010-04-09 Thread Russell Keith-Magee
On Wed, Apr 7, 2010 at 10:26 PM, Jannis Leidel wrote: > > Am 07.04.2010 um 13:40 schrieb Russell Keith-Magee: > >> On Mon, Apr 5, 2010 at 5:35 AM, Arthur Koziel >> wrote: >>> Hi, >>> I’m going to apply for GSoC with the goal of refactoring the app loading >>> [0]. I’ve been looking at Django’s c

Re: GSoC: App Loading

2010-04-08 Thread Dagvadorj Galbadrakh
Thanks for the brilliant advice. I will do so and am now. :) On Thu, Apr 8, 2010 at 6:09 PM, burc...@gmail.com wrote: > On Thu, Apr 8, 2010 at 3:27 PM, Dagvadorj Galbadrakh > wrote: >> Thanks for review. >> >> On Thu, Apr 8, 2010 at 3:15 PM, burc...@gmail.com wrote: >>> >>> May I have few quest

Re: GSoC: App Loading

2010-04-08 Thread burc...@gmail.com
On Thu, Apr 8, 2010 at 3:27 PM, Dagvadorj Galbadrakh wrote: > Thanks for review. > > On Thu, Apr 8, 2010 at 3:15 PM, burc...@gmail.com wrote: >> >> May I have few questions. >> 1) And what if foo.gsoc has taiwan submodule already? > > There will be certain conventions on which names not to use as

Re: GSoC: App Loading

2010-04-08 Thread Dagvadorj Galbadrakh
Thanks for review. On Thu, Apr 8, 2010 at 3:15 PM, burc...@gmail.com wrote: > > May I have few questions. > 1) And what if foo.gsoc has taiwan submodule already? There will be certain conventions on which names not to use as an instance name such as, views, models, etc. Plus, Django can check if

Re: GSoC: App Loading

2010-04-08 Thread burc...@gmail.com
On Thu, Apr 8, 2010 at 2:56 PM, Dagvadorj Galbadrakh wrote: > Good idea. Let INSTALLED_APPS be iterable, and let Django deployment > do its job based on the configuration. Little to say though: > > INSTALLED_APPS = ( >    'django.contrib.auth', >    'django.contrib.contenttypes', >    'django.cont

Re: GSoC: App Loading

2010-04-08 Thread Dagvadorj Galbadrakh
Good idea. Let INSTALLED_APPS be iterable, and let Django deployment do its job based on the configuration. Little to say though: INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin',

Re: GSoC: App Loading

2010-04-07 Thread Russell Keith-Magee
On Wed, Apr 7, 2010 at 9:45 PM, Dagvadorj Galbadrakh wrote: > On Wed, Apr 7, 2010 at 2:40 PM, Russell Keith-Magee > wrote: >> If you're going to tackle this problem, I'd >> rather see you concentrate on issues like: >> >>  * Translating application names >>  * Solving the "two applications called

Re: GSoC: App Loading

2010-04-07 Thread Arthur Koziel
On Apr 7, 2010, at 1:40 PM, Russell Keith-Magee wrote: > I agree with Alex - there's a lot more detail needed here. How will I > get access to the App instance that a model belongs to? How will > legacy attributes like db_prefix be proxied? What is the order of > precedence when a model and an app

Re: GSoC: App Loading

2010-04-07 Thread Jannis Leidel
Am 07.04.2010 um 13:40 schrieb Russell Keith-Magee: > On Mon, Apr 5, 2010 at 5:35 AM, Arthur Koziel wrote: >> Hi, >> I’m going to apply for GSoC with the goal of refactoring the app loading >> [0]. I’ve been looking at Django’s current app loading implementation >> (db.models.loading), Vinay Saj

Re: GSoC: App Loading

2010-04-07 Thread Arthur Koziel
On Apr 7, 2010, at 1:40 PM, Russell Keith-Magee wrote: > On Mon, Apr 5, 2010 at 5:35 AM, Arthur Koziel wrote: >> Hi, >> I’m going to apply for GSoC with the goal of refactoring the app loading >> [0]. I’ve been looking at Django’s current app loading implementation >> (db.models.loading), Vinay

Re: GSoC: App Loading

2010-04-07 Thread Dagvadorj Galbadrakh
On Wed, Apr 7, 2010 at 2:40 PM, Russell Keith-Magee wrote: > If you're going to tackle this problem, I'd > rather see you concentrate on issues like: > >  * Translating application names >  * Solving the "two applications called auth" problem >  * Providing configurability for db-level naming conv

Re: GSoC: App Loading

2010-04-07 Thread Vinay Sajip
On Apr 7, 2:18 pm, Russell Keith-Magee wrote: > > It's fair to assume that there will always be *some* details that are > worked out as part of the GSoC work. My intention isn't to try and > nail down all the details before the project starts - it's to try and > work out how much Arthur has thoug

Re: GSoC: App Loading

2010-04-07 Thread Jannis Leidel
>>> For the record - I don't think the "multiple versions of a single app" >>> problem is one worth solving. I'm not even convinced it can be solved >>> at all, for all the reasons Florian identified, and then some. >> >> I agree, but IIRC it was quoted as one reason why this feature was >> left o

Re: GSoC: App Loading

2010-04-07 Thread Russell Keith-Magee
On Wed, Apr 7, 2010 at 8:23 PM, Vinay Sajip wrote: > > On Apr 7, 12:40 pm, Russell Keith-Magee > wrote: >> >> I agree with Alex - there's a lot more detail needed here. How will I >> get access to the App instance that a model belongs to? How will >> legacy attributes like db_prefix be proxied? W

Re: GSoC: App Loading

2010-04-07 Thread Vinay Sajip
On Apr 7, 12:40 pm, Russell Keith-Magee wrote: > > Strings will be converted to App()... by What? When? > This is already done by the #3591 patch, in django.db.models.loading.py. > What happens to existing code that is using "for app in INSTALLED_APS" > as an idiom? > The #3591 patch does this

Re: GSoC: App Loading

2010-04-07 Thread Russell Keith-Magee
On Mon, Apr 5, 2010 at 5:35 AM, Arthur Koziel wrote: > Hi, > I’m going to apply for GSoC with the goal of refactoring the app loading > [0]. I’ve been looking at Django’s current app loading implementation > (db.models.loading), Vinay Sajip’s patch in #3591 [1] and the notes on the > InstalledApps

Re: GSoC: App Loading

2010-04-04 Thread Florian Apolloner
I don't have much to say, as Alex pretty much covered it; but that's the list: * Assume an app1 which requires another app2 (and has some ForeignKeys to it). Currently that's easy; just import the model and ForeignKey it. How would those imports look like in your case (eg to which models would ap

Re: GSoC: App Loading

2010-04-04 Thread Alex Gaynor
On Sun, Apr 4, 2010 at 5:35 PM, Arthur Koziel wrote: > Hi, > I’m going to apply for GSoC with the goal of refactoring the app loading > [0]. I’ve been looking at Django’s current app loading implementation > (db.models.loading), Vinay Sajip’s patch in #3591 [1] and the notes on the > InstalledApps

GSoC: App Loading

2010-04-04 Thread Arthur Koziel
Hi, I’m going to apply for GSoC with the goal of refactoring the app loading [0]. I’ve been looking at Django’s current app loading implementation (db.models.loading), Vinay Sajip’s patch in #3591 [1] and the notes on the InstalledAppsRevision wiki page [2]. Here's what I'm planning to change.