[aida] concurrency, locking

paul-- at arcor.de paul-- at arcor.de
Mon Aug 15 19:17:10 CEST 2011


Hello Janko,
at first glance, looking at scribo code,  i am shure it will help me a lot. 
So thank you very much for your answer.
Paul 


----- Original Nachricht ----
Von:     Janko Miv?ek <janko.mivsek at eranova.si>
An:      Aida/Web general discussion list <aida at aidaweb.si>
Datum:   12.08.2011 21:56
Betreff: Re: [aida] concurrency, locking

> Hi Paul, welcome to the mailing list!
> 
> S, paul-- at arcor.de pi?e:
> > Hello List and Janko Miv?ek,
> > 
> > thank you for making the framework available.
> > 
> > How to deal with concurrency?
> > Example: the adressbook from  http://www.aidaweb.si/tutorial
> > Many user can start editing the same dataset without information the
> dataset is already in use. And without a kind of recordlocking.
> > 
> > Are there "helpermethods" in the framework? (and if so, which?)
> > Any pointer where I should read up on the topic.
> 
> If you load Scribo as well, there is a locking support in class
> Document, implemented in subclases WikiPage and presentation class
> WikiPageApp.
> 
> In short: when page is edited, an Ajax polling in background keeps
> server informing that this page is editing. If someone else try to edit
> it, a warning is shown with a name of the editor. By Ajax polling again
> this warning disappears when original editor finish editing.
> 
> Here are classes and methods to look at:
> 
>   Document category 'locking':
> 
> 	aidaIsLockedOn: aSession,
> 	aidaLockOn: aSession,
> 	aidaUnlock, ...
> 
>   WikiPageApp category 'access rights':
> 
> 	setLock
> 	regrantLock
>   	isLockedBySomeoneElse
> 
>   WikiPageApp
> 
> 	viewEdit "to see how it is used"
> 	lockElement  "to refresh document lock periodically"
> 	viewWait "to wait until page is unlocked"
> 
> 
> You can load Scribo simply by this script:
> 
>   Gofer new
>     squeaksource: 'MetacelloRepository';
>     package: 'ConfigurationOfScribo';
>     load.
> 
>  (Smalltalk at: #ConfigurationOfScribo) load.	
> 
> 
> Hope this helps
> Janko
> 
> -- 
> Janko Miv?ek
> Aida/Web
> Smalltalk Web Application Server
> http://www.aidaweb.si
> _______________________________________________
> Aida mailing list
> Aida at aidaweb.si
> http://lists.aidaweb.si/mailman/listinfo/aida
> 

Arcor empfiehlt: Die TOP 1000 Surftipps zu allem, was im Internet interessant und spannend ist - sehen Sie hier: http://www.arcor.de/content/pc_technik/internet/surftipps/surftipps/


More information about the Aida mailing list