<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I've done something similar but not for magma<div><br></div><div>to do it (programmatically) I've done this:</div><div><br></div><div>hack this:</div><div><br></div><div>WASession&gt;&gt;forContext: aRequestContext</div><div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>^ self new initializeForContext: aRequestContext&nbsp;</div></div><div><br></div><div>so you then can do this:</div><div><br></div><div><div>YourSession&gt;&gt;initializeForContext: aRequestContext</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>| database |</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>super initializeForContext: aRequestContext. &nbsp;"&lt;-- if needed"</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>database := self databaseForContext: aRequestContext.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>database exists</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>ifTrue:[self addFilter: (FLTransactionFilter onDatabase: database)]</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>ifFalse:[self onUnrecognizableDatabaseFor: aRequestContext]</div></div><div><br></div><div><br></div><div><br></div><div><div><a href="http://twitter.com/sebastianconcpt" target="_blank">sebastian</a></div><div><div><div><br></div><div>o/</div></div></div></div><div><br></div><div><br></div><div><br><div><div>On Jan 30, 2011, at 2:47 PM, <a href="mailto:nicolas.oury@gmail.com">nicolas.oury@gmail.com</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Dear all,
<div><br></div><div>I am trying to write my first serious seaside application, and I am trying to wrap all requests to the application into a&nbsp;</div><div>Magma transaction. (As a first simple scheme)</div><div><br></div><div>
I have written a new class MagmaFilter, subclassing WARequestFilter, with a request handler that wraps the request into a commit, just after a refresh.</div><div>(I will figure out how to handle conflicts later)</div><div>
<br></div><div>I would like to install this filter into my application, but it is not shown as a possible Filter in the configuration panel.</div><div><br></div><div>Should I do something special in order to make it appear?</div>
<div>Is there a way of adding it programmatically?</div><div><br></div><div>Thank you very much for your help,</div><div>Best regards,</div><div><br></div><div>Nicolas.</div>
_______________________________________________<br>seaside mailing list<br><a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br></blockquote></div><br></div></body></html>