On Tue, Aug 11, 2009 at 5:31 PM, Ben Nevile<[email protected]> wrote:
>
> Hi Nick,
>
> Hooks are cool!  Thanks for bringing my attention to them.
>
> Can you expand a bit on how one might handle a multi-account scenario
> using hooks?  All I can imagine is a datastore hook that is smart
> enough to insert the proper filter on a query before it is executed --
> is that what you had in mind?

Yes, that's about the size of it. On puts, you add the 'domain'
property to all entities automatically, and on query, you
automatically add the required filter.

-Nick Johnson

>
> Ben
>
>
> On Aug 10, 1:30 am, "Nick Johnson (Google)" <[email protected]>
> wrote:
>> On Mon, Aug 10, 2009 at 9:02 AM, Sudhir<[email protected]> wrote:
>>
>> > Heres the background - I'm developing an app, lets say accounting
>> > software, that I'd like to sell to organizations using Google Apps.
>>
>> > How do I manage deployments? If I just create one app, it is possible
>> > for all my clients to import it into their dashboard and use it like
>> > their own app?
>>
>> Yes, though currently their users will have to have Google accounts
>> (you can create a Google account for any email address by going 
>> tohttps://www.google.com/accounts/NewAccount) in order to sign in, since
>> you can only set your app to work with Google accounts or one specific
>> domain's accounts. Alternately, you can work around this limitation by
>> using OpenID, but this is rather cumbersome.
>>
>>
>>
>> > I don't want to create, maintain and update a separate app for each
>> > and every one of my customers... how can I share the app with my
>> > client domains keeping a separate datastore and auth setup for each of
>> > them?
>>
>> If you're using the approach outlined above, you'll need to enforce
>> separation in your datastore yourself - for example, by restricting
>> records based on the Host header the site is accessed through, and/or
>> the hostname of the user who's logged in. One way to do this is with
>> Hooks:http://code.google.com/appengine/articles/hooks.html
>>
>> -Nick Johnson
>>
>>
>>
>> > Sudhir
>>
>> --
>> Nick Johnson, Developer Programs Engineer, App Engine
> >
>



-- 
Nick Johnson, Developer Programs Engineer, App Engine

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to