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

David A. Bayly dbayly at udena.ch
Wed Mar 19 09:57:09 PST 2003


>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!)


manual! There are no manuals for this deep into the guts of Manila 
I'm afraid. If you take  a look at 
manilaMacros.hostingSuite.createSiteForm, you can see it calls
ManilaSuite.hosting.createSiteForm and that gives you and idea of how 
Manila goes about this.



>
>  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.)

A server reboot won't affect a scheduled task, as long as you save 
the root after you add the scheduled task, and configure the 
scheduler to not skip tasks if the server is down.



>
>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.


-- 

- David Bayly.       Programmer and digest reader.     dbayly at udena dot ch
  		Digest Readers do it once a day.



More information about the Frontier-Users mailing list