How to programatically create a Manila site WAS:Re: Best place for hooking into Manila site creation?

Roland Tanglao rtanglao at telus.net
Tue Mar 25 19:04:44 PST 2003


Thanks for the pointer Sam! I got this code working.  More details at 
Manila-dev (where I guess future discussion will take place!):
http://groups.yahoo.com/group/manila-dev/message/3

Cheers!
....Roland

On Tuesday, March 25, 2003, at 06:53 AM, sdevore at mac.com wrote:

> here is some work dave has done along these lines
>
> http://blogs.law.harvard.edu/stories/storyReader$132#32503
>
> "The bottleneck is at manilaSuite.createSite:
>
> createSite (url, email, password, name=nil, theme="default", 
> canonicalSiteName=nil, membershipGroupName=nil, 
> discussionGroupName=nil, adrSiteInfo=nil)
>
> The only three parameters you have to have are the site's url, and  
> the email address and password of the managing editor. You'll probably 
>  also want to specify name (the managing editor's name) and theme.
> The script returns the address of the site. If you pass in a value for 
>  adrSiteInfo, a table will be created at that address with a bunch of  
> info about the site -- see the comments at the top of the script for a 
>  complete list of what's in a siteInfo table. "
>
> Sam D
>
> On Wednesday, March 19, 2003, at 10:42 AM, Roland Tanglao wrote:
>
>> Hi David:
>>
>> Thanks for the re-direct info.
>>
>> I agree that my approach is back to front.  How do I programmatically 
>> create a Manila Website from a Frontier script? (I've searched 
>> Frontier-Users and Google but can't find anything! Pointers to a 
>> manual or anything at all would be appreciated!)
>>
>>  I don't like the other approach of creating and then scheduling a 
>> task to delete it or force the user to pay because too many things 
>> can go wrong (server reboots, etc.)
>>
>> Cheers!
>> ....Roland
>>
>> On Wednesday, March 19, 2003, at 12:59 AM, David A. Bayly wrote:
>>
>>> Hi Roland,
>>>
>>> Your redirect gets overridden by  Manila which wants to send the 
>>> user to the new site.
>>>
>>> Aren't you doing this back to front? Why not pay first, then get a 
>>> site , which you can control much easier. Or, create the site but 
>>> don't allow access for more than a few days, schedule a task to 
>>> delete the site and have your buy process delete the scheduled task.
>>>
>>>
>>>
>>>> Hi:
>>>>
>>>>  Where is the proper place to hook into Manila as part of site 
>>>> creation? Before a site is created or just after a site is created, 
>>>> I would like to write a Frontier script to re-direct to the E-xact 
>>>> Buy Button[1]. I tried putting a redirect (i.e. a call to 
>>>> mainResponder.redirect(URL)) into config.manila.callbacks.newSite 
>>>> but the the call to mainResponder.redirect did not cause a 
>>>> re-direct. GUESS: putting a hook into 
>>>> config.manila.callbacks.newSite is not the right thing.
>>>>
>>>> More details are available on developer.e-xact.com[2]
>>>>
>>>> Cheers!
>>>> ....Roland
>>>>
>>>> [1]  https://secure.e-xact.com/ebb/demo/
>>>> [2] http://developer.e-xact.com/2003/03/18#a137
>>>
>>>
>>> -- 
>>>
>>> - David Bayly.       Programmer and digest reader.     dbayly at 
>>> udena dot ch
>>>  		Digest Readers do it once a day.
>>>
>>
>>
> ====================
> Samuel C. DeVore    sdevore at teachesme.com
> www.TeachesMe.com
> Because if you are not managing your content...
> Who is?
> See us for content management for teachers/schools/students
> =====================
>




More information about the Frontier-Users mailing list