Hi,
I just passed several hours tracking a bug, and finally figured out
the its related to *RFBServer>>encryptPassword:* that *destroys* the
password string passed as argument (replaces all characters with $0).
Couldn't that code be now simply replaced by a call to *GRPlatform
current secureHashFor: password*? (That would also require adapting
#authenticateChallenge:response:)
Regards,
Reza
For info !
> Message du 15/04/10 20:11
> De : "Alan Knight"
> A : "Miguel Sanchez" , vwnc(a)cs.uiuc.edu
> Copie à :
> Objet : Re: [vwnc] Store Magritte download
>
> There seems to be an issue there with Magritte attempting to extend namespace semantics, and defining a namespace
with defineFirstFindNamespace: ... which the atomic loader does not like. It looks like someone published a version
which claims it deals with this problem, but it doesn't seem to. You can try going to the Store settings, and under
Loading policies turn off "Use the Atomic Loader". There are other things you can do, and someone should really fix
that, but that's probably the easiest thing for a beginner.
>
> You probably also want to load MagritteForVisualWorks rather than Magritte-All. Other than the namespace issue,
and a walkback in trying to initialize, that was fairly easily bypassed, it seemed to load OK. But I didn't try to
run it.
>
> At 09:08 AM 2010-04-15, Miguel Sanchez wrote:
> >Hi all,
> >
> >
> >I would like some assistance in getting Magritte installed from the public repositroy.
> >
> >I'm trying, unsuccessfully so far, to load the Magritte package into VW7.7nc image. After some initial problems
with connecting to the store with James Robertson kindly helped me with I'm connecting successfully to the store.
> >
> >As instructed in the package comments I have turned off atomic loads.
> >
> >I'm first getting Magritte-all (trs,295,trs) and I'm getting loads of messages with unloadable definitions and
the end of which I have Magritte package definitions and some methods created in existing classes. I have no (as far
as I can tell) Magritte classes created.
> >
> >As I'm new to VW, the public repository I would appreciate if someone could give me a pointer to get up and
running. Perhaps I'm trying to load an unstable version, or there is some implicit dependency on another package.
> >
> >Best Regards,
> >
> >
> >Miguel Sanchez
> >_______________________________________________
> >vwnc mailing list
> >vwnc(a)cs.uiuc.edu
> >http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>
> --
> Alan Knight [|], Engineering Manager, Cincom Smalltalk
> knight(a)acm.org
> aknight(a)cincom.com
> http://www.cincom.com/smalltalk
>
_______________________________________________
vwnc mailing list
vwnc(a)cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Hi everyone,
I sometimes want to render domain objects as read only, and sometimes as
editable entities.
I wrote description methods that allow editing, as per normal.
Then I wrote this class method:
readOnlyDescription
^ self description collect: [:description | description beReadonly].
which seems to work just dandy. I then render this in Seaside like so:
renderContentOn: html
html render: (recipe class readOnlyDescription asComponentOn: recipe)
So: first, Magritte rocks me.
Second, is the above "idiomatic" Magritte? Are there better ways of
doing this?
frank
Dear Nial,
Well if you actually manage to port Margritte and Pier 1.2 to VisualWorks that would be really Cool (don't hesistate) !
Pier is a cool thing, it doesn't have a lot in common with SeaBreaze and WebVelocity but simply works to make good web sites.
I am awaiting the day that glorp.org get's on to it.
Sincerely yours,
@+Maarten,
----- Original Message -----
From: "Niall Ross" <niallfr(a)btinternet.com>
To: "Miguel Sanchez" <mikey.sanchez(a)gmail.com>
Cc: <vwnc(a)cs.uiuc.edu>
Sent: Friday, April 16, 2010 7:38 PM
Subject: Re: [vwnc] Store Magritte download
>
> Dear Miguel,
> proceed as follows
>
> 1) Load Porting-NameSpaces CS14.NFR.15. The atomic loader works with
> the latest Porting-NameSpaces but it cannot load both the
> Porting-NameSpaces system _and_ a FirstFindNameSpace (e.g. Magritte) in
> the same atomic operation.
>
> 2) Load Magritte-All nfr.295-1 and take latest in repository for all
> prompted prereqs.
>
> 3) Load MagritteForVisualWorks nfr.295. Instead of (2), you can load
> just this, taking Magritte-All version nfr.295-1 as prereq when
> prompted. The only reason to load them separately is to observe the
> references to a few Undeclared that will appear after Magritte-All is
> loaded. After MagritteForVisualWorks is loaded, most of these
> Undeclared will say they have no references, since the locations are now
> overridden.
>
> Thorsten and I ported the 295 version at ESUG in September last year.
>
> I have also published a version of Pier (lr.183-222-81-99 CS14.NFR.11)
> to the repository that prereqs MagritteForVisualWorks and also has a
> viable Pier FirstFindNameSpace, so loads OK. The Squeak Pier version
> from which this was ported was the current version in late 2007; I will
> port a newer version sometime (or will be pleased to discover that
> someone else did so ahead of me. :-)
>
> Yours faithfully
> Niall Ross
>
>> Thanks Alan
>>
>> Second attempt. No success.
>>
>> 1. I turned off Atomic loading in the settings.
>> 2. Tried loading MagritteForVisualWorks (trs.295,trs)
>> 3. Selected latest package when prompted
>> 4. Got loads of errors on the Magritte.* packages (see below). From
>> what I can see methods were added to Object and various core classes
>> but hardly any new classes created. Squeak.* packages loaded fine
>>
>> I'm not sure if I'm mis-posting this here. I've noticed on this thread
>> someone forwarding to the seaside mailing list. Perhaps I should post
>> there instead?
>>
>> Regards Miguel
>>
>>
>> Error dump follows All packages gave similar errors.:
>>
>> Warning: Package "Magritte-Model" cannot be loaded.
>>
>> The following classes cannot be loaded because their environment is
>> not in the image nor in the package being loaded:
>> MAPriorityContainer (environment path: Root.Smalltalk.Magritte)
>> MAPluggableAccessor (environment path: Root.Smalltalk.Magritte)
>> ......
>> edited for brevity.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On 15/04/2010, at 19:51, Alan Knight <knight(a)acm.org
>> <mailto:knight@acm.org>> wrote:
>>
>>> There seems to be an issue there with Magritte attempting to extend
>>> namespace semantics, and defining a namespace with
>>> defineFirstFindNamespace: ... which the atomic loader does not like.
>>> It looks like someone published a version which claims it deals with
>>> this problem, but it doesn't seem to. You can try going to the Store
>>> settings, and under Loading policies turn off "Use the Atomic
>>> Loader". There are other things you can do, and someone should really
>>> fix that, but that's probably the easiest thing for a beginner.
>>>
>>> You probably also want to load MagritteForVisualWorks rather than
>>> Magritte-All. Other than the namespace issue, and a walkback in
>>> trying to initialize, that was fairly easily bypassed, it seemed to
>>> load OK. But I didn't try to run it.
>>>
>>> At 09:08 AM 2010-04-15, Miguel Sanchez wrote:
>>>
>>>> Hi all,
>>>>
>>>>
>>>> I would like some assistance in getting Magritte installed from the
>>>> public repositroy.
>>>>
>>>> I'm trying, unsuccessfully so far, to load the Magritte package into
>>>> VW7.7nc image. After some initial problems with connecting to the
>>>> store with James Robertson kindly helped me with I'm connecting
>>>> successfully to the store.
>>>>
>>>> As instructed in the package comments I have turned off atomic loads.
>>>>
>>>> I'm first getting Magritte-all (trs,295,trs) and I'm getting loads
>>>> of messages with unloadable definitions and the end of which I have
>>>> Magritte package definitions and some methods created in existing
>>>> classes. I have no (as far as I can tell) Magritte classes created.
>>>>
>>>> As I'm new to VW, the public repository I would appreciate if
>>>> someone could give me a pointer to get up and running. Perhaps I'm
>>>> trying to load an unstable version, or there is some implicit
>>>> dependency on another package.
>>>>
>>>> Best Regards,
>>>>
>>>>
>>>> Miguel Sanchez
>>>> _______________________________________________
>>>> vwnc mailing list
>>>> vwnc(a)cs.uiuc.edu <mailto:vwnc@cs.uiuc.edu>
>>>> <http://lists.cs.uiuc.edu/mailman/listinfo/vwnc>http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>>>
>>>
>>> --
>>> Alan Knight [|], Engineering Manager, Cincom Smalltalk
>>> knight(a)acm.org <mailto:knight@acm.org>
>>> aknight(a)cincom.com <mailto:aknight@cincom.com>
>>> <http://www.cincom.com/smalltalk>http://www.cincom.com/smalltalk
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>vwnc mailing list
>>vwnc(a)cs.uiuc.edu
>>http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>>
>>
>
>
> _______________________________________________
> vwnc mailing list
> vwnc(a)cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>
>
my happiness!
I found a large-scale sales compan-- Kimsell.There are favourable price and fine quality goods very much.When I ordered the Samsung LCD,in one week,I received it and found it very well in the quality.I am very happy for the purching.I hope that you can share my happiness.
www.happyhu.com
You can find what you want to.
Greetings!
_________________________________________________________________
Need a new place to live? Find it on Domain.com.au
http://clk.atdmt.com/NMN/go/157631292/direct/01/
At 18:56 15/04/2010, you wrote:
>Do you use WAKomEncoded in Seaside 2.8
I use WAKomEncoded in Seaside 3.0.
>or the UTF-8
>codex in Seaside 3?
Good point! Actually, I forgot (sorry for that) to mention that the
bug has happened on a Debian server, where the VM has been launched
with the following parm: "-encoding latin1".
However, I've saved the image on Debian, with the debugger already
triggered. Then, I moved the image to Win/Vista, where I had the
observations reported previously.
Otherwise I'm basically using default Pharo/Seaside/Pier configs.
Thanks again for your insight,
Regards,
Reza
Hi,
Congratulations for the release of Pharo 1.0!
I'd also like to report a confusing issue encountered in following setting:
- VM: Win32 - IX86 - NT - Squeak3.10.2 of '5 June 2008' [latest update: #7179]
- Image: PharoCore1.0rc1 [Latest update: #10505]
In the stack traces, I can see the following
string 'Ambient Activity Systems ????????????????
However, that string is in reality 'Ambient
Activity Systems Key Features', which I can
re-obtain by copying & pasting the string above
to any other text processor, like Word. But, if I
copy & past it into another editor in Pharo, it
shows 'Ambient Activity Systems ? Key Features'.
Now again, if I copy & past this latter string to
another editor, it shows the original one, that
is 'Ambient Activity Systems Key Features'.
The full stack is copied below. I tried to report
this issue via "Mister Postman" so as you get the
full details of the stack, but got a
*ConnectionTimeOut*, raised via SMTPClient >>
fetchNextResponse, then SocketStream nextLine. If
more details are needed, please tell me.
How the above differences could be explained, and
could they explain the "subscript is out of bounds: 8212" error?
Regards,
Reza Razavi
--- The full stack ---
ByteArray(Object)>>error:
ByteArray(Object)>>errorSubscriptBounds:
ByteArray(Object)>>at:
WideString(String)>>findSubstring:in:startingAt:matchTable:
WideString(String)>>findString:startingAt:caseSensitive:
WideString(String)>>includesSubstring:caseSensitive:
[] in [] in PRFullTextSearch>>visitStructure:
[] in Set(Collection)>>anySatisfy:
Set>>do:
Set(Collection)>>anySatisfy:
[] in PRFullTextSearch>>visitStructure:
SortedCollection(OrderedCollection)>>do:
MAPriorityContainer(MAContainer)>>do:
PRFullTextSearch>>visitStructure:
PRFullTextSearch(PRVisitor)>>visitCase:
PRFullTextSearch(PRVisitor)>>visitPage:
PRPage>>accept:
PRPage(Object)>>acceptDecorated:
[] in PRPage(PRDecorated)>>acceptDecorated:
PRPage(PRDecorated)>>decorationsDo:ownerDo:
PRPage(PRDecorated)>>acceptDecorated:
PRFullTextSearch(PRVisitor)>>visit:
[] in PRFullTextSearch(PRVisitor)>>visitAll:
Array(SequenceableCollection)>>do:
PRFullTextSearch(PRVisitor)>>visitAll:
PRFullTextSearch>>visitChildren:
PRChildren>>accept:
PRChildren(Object)>>acceptDecorated:
PRFullTextSearch(PRVisitor)>>visit:
[] in PRPage(PRDecorated)>>acceptDecorated:
[] in PRPage(PRDecorated)>>decorationsDo:ownerDo:
Array(SequenceableCollection)>>do:
PRPage(PRDecorated)>>decorationsDo:ownerDo:
PRPage(PRDecorated)>>acceptDecorated:
PRFullTextSearch(PRVisitor)>>visit:
[] in PRFullTextSearch(PRVisitor)>>visitAll:
Array(SequenceableCollection)>>do:
PRFullTextSearch(PRVisitor)>>visitAll:
PRFullTextSearch>>visitChildren:
- - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - -
PRChildren>>accept:
PRChildren(Object)>>acceptDecorated:
PRFullTextSearch(PRVisitor)>>visit:
[] in PRPage(PRDecorated)>>acceptDecorated:
[] in PRPage(PRDecorated)>>decorationsDo:ownerDo:
Array(SequenceableCollection)>>do:
PRPage(PRDecorated)>>decorationsDo:ownerDo:
PRPage(PRDecorated)>>acceptDecorated:
PRFullTextSearch(PRVisitor)>>visit:
PRFullTextSearch(PRVisitor)>>start:
PRFullTextSearch>>start:
PRFullTextSearch(PREnumerableVisitor)>>do:
[] in PRFullTextSearch(PREnumerableVisitor)>>collect:
Array class(SequenceableCollection class)>>streamContents:
PRFullTextSearch(PREnumerableVisitor)>>collect:
PRFullTextSearch(PREnumerableVisitor)>>contents
PRAjaxSearchWidget>>findItems
PRAjaxSearchWidget>>unfilteredItems
PRAjaxSearchWidget(PRStructuresWidget)>>items
[] in PRAjaxSearchWidget>>renderItemsOn:for:
BlockClosure>>renderOn:
WARenderCanvas(WARenderer)>>render:
WARenderCanvas(WACanvas)>>render:
[] in WAUnorderedListTag(WATagBrush)>>with:
BlockClosure>>renderOn:
WARenderCanvas(WARenderer)>>render:
WARenderCanvas(WACanvas)>>render:
WARenderCanvas(WACanvas)>>nest:
WAUnorderedListTag(WABrush)>>with:
WAUnorderedListTag(WATagBrush)>>with:
WARenderCanvas(WAHtmlCanvas)>>unorderedList:
PRAjaxSearchWidget>>renderItemsOn:for:
GRUnboundDelayedSend>>valueWithArguments:
[] in SUAutocompleter(PTUpdater)>>processOn:with:
BlockClosure>>renderOn:
WARenderCanvas(WARenderer)>>render:
WARenderCanvas(WACanvas)>>render:
[] in SUAutocompleter(JSObject)>>render:on:
[] in WARenderContext>>document:during:
BlockClosure>>ensure:
WARenderContext>>document:during:
SUAutocompleter(JSObject)>>render:on:
SUAutocompleter(PTUpdater)>>processOn:with:
[] in SUAutocompleter(PTAjax)>>processWith:
WARequestContext>>respond:
SUAutocompleter(PTAjax)>>processWith:
[] in SUAutocompleter>>registerCallbackIn:
BlockClosure>>valueWithPossibleArguments:
JSAjaxCallback>>evaluateWithArgument:
JSAjaxCallback(WACallback)>>evaluateWithFieldValues:
[] in WACallbackRegistry>>handle:
Array(SequenceableCollection)>>do:
WACallbackRegistry>>handle:
[] in [] in WAActionPhaseContinuation>>runCallbacks
BlockClosure>>on:do:
WAActionPhaseContinuation(WARenderLoopContinuation)>>withNotificationHandlerDo:
[] in WAActionPhaseContinuation>>runCallbacks
BlockClosure>>ensure:
WAActionPhaseContinuation>>runCallbacks
WAActionPhaseContinuation>>handleRequest
[] in WAActionPhaseContinuation(WASessionContinuation)>>basicValue
BlockClosure>>on:do:
WAActionPhaseContinuation(WASessionContinuation)>>withUnregisteredHandlerDo:
WAActionPhaseContinuation(WASessionContinuation)>>basicValue
WAActionPhaseContinuation(WASessionContinuation)>>value
WASession>>handleFiltered:
PRContextFilter(WARequestFilter)>>handleFiltered:
[] in PRContextFilter>>handleFiltered:
BlockClosure>>on:do:
PRCurrentContext class>>use:during:
PRContextFilter>>handleFiltered:
WAMutualExclusionFilter(WARequestFilter)>>handleFiltered:
[] in WAMutualExclusionFilter>>handleFiltered:
BlockClosure>>ensure:
[] in WAMutex>>critical:
[] in Semaphore>>critical:
BlockClosure>>ensure:
Semaphore>>critical:
WAMutex>>critical:
WAMutualExclusionFilter>>handleFiltered:
[] in WASession(WARequestHandler)>>handle:
BlockClosure>>on:do:
WACurrentRequestContext class(WADynamicVariable class)>>use:during:
[] in WARequestContext>>push:while:
BlockClosure>>ensure:
WARequestContext>>push:while:
WASession(WARequestHandler)>>handle:
WAApplication(WARegistry)>>dispatch:to:
WAApplication(WARegistry)>>handleKeyed:with:
WAApplication(WARegistry)>>handleFiltered:
WAApplication>>handleFiltered:
WAAuthenticationFilter(WARequestFilter)>>handleFiltered:
WAAuthenticationFilter>>handleFiltered:
WAExceptionFilter(WARequestFilter)>>handleFiltered:
[] in WAExceptionFilter>>handleFiltered:
BlockClosure>>on:do:
WAWalkbackErrorHandler(WAExceptionHandler)>>handleExceptionsDuring:
WAWalkbackErrorHandler class(WAExceptionHandler
class)>>handleExceptionsDuring:context:
WAExceptionFilter>>handleFiltered:
[] in WAApplication(WARequestHandler)>>handle:
BlockClosure>>on:do:
WACurrentRequestContext class(WADynamicVariable class)>>use:during:
[] in WARequestContext>>push:while:
BlockClosure>>ensure:
WARequestContext>>push:while:
WAApplication(WARequestHandler)>>handle:
WADispatcher>>handleFiltered:named:
WADispatcher>>handleFiltered:
[] in WADispatcher(WARequestHandler)>>handle:
BlockClosure>>on:do:
WACurrentRequestContext class(WADynamicVariable class)>>use:during:
[] in WARequestContext>>push:while:
BlockClosure>>ensure:
WARequestContext>>push:while:
WADispatcher(WARequestHandler)>>handle:
WADispatcher>>handleFiltered:named:
WADispatcher>>handleFiltered:
[] in WADispatcher(WARequestHandler)>>handle:
BlockClosure>>on:do:
WACurrentRequestContext class(WADynamicVariable class)>>use:during:
[] in WARequestContext>>push:while:
BlockClosure>>ensure:
WARequestContext>>push:while:
WADispatcher(WARequestHandler)>>handle:
[] in WAComancheAdaptor(WAServerAdaptor)>>handleRequest:
BlockClosure>>on:do:
WAComancheAdaptor(WAServerAdaptor)>>handleRequest:
WAComancheAdaptor(WAServerAdaptor)>>handle:
[] in WAComancheAdaptor(WAServerAdaptor)>>process:
BlockClosure>>ensure:
WAComancheAdaptor(WAServerAdaptor)>>process:
WAComancheAdaptor>>processHttpRequest:
HttpService>>processHttpRequest:
[] in HttpAdaptor>>dispatchRequest:
BlockClosure>>on:do:
HttpService>>handleDispatchErrorsIn:
HttpAdaptor>>dispatchRequest:
[] in [] in HttpAdaptor>>beginConversation
BlockClosure>>on:do:
BlockClosure>>valueWithBindingsContext:
BlockClosure>>valueWithBindings:
BindingsAccessor>>clamp:
[] in HttpAdaptor>>beginConversation
BlockClosure>>ensure:
HttpAdaptor>>beginConversation
HttpAdaptor class>>readAndWriteTo:service:
HttpAdaptor class>>readAndWriteToSocket:service:
HttpService>>serve:
[] in HttpService(TcpService)>>value:
BlockClosure>>on:do:
BlockClosure>>valueWithBindingsContext:
BlockClosure>>valueWithBindings:
BindingsAccessor>>clamp:
[] in BlockClosure>>newProcessWithClampedBindings:
BlockClosure>>on:do:
BlockClosure>>valueWithBindingsContext:
BlockClosure>>valueWithBindings:
[] in BlockClosure>>newProcessWithBindings:
[] in BlockClosure>>newProcess
I have a pier page that contains two embedded components. The first displays the content of an object and the second displays a link that when pressed does a call: with an editor to that object.
If I alter the object in the editor and press save the page below displays the old content of the object. I think the problem is two fold. The component that displays the object uses a magritte component for that. As the memento is snapshotting the object it has still the old values. But pier seems to cache the embedded component (that holds the magritte component) as well and I didn't figure out so far how it does that.
What would be the best way to invalidate any of the cached things?
thanks,
Norbert
Hi,
I have a PRViewComponent derived component in which, as part of the render
method, I'd like to render another component defined elsewhere in my Pier
structure.
The code I've come up with so far is (simplified):
renderComponentOn: html
| context component renderComponent |
context := self context.
component := context structure lookupPath: '/system/components/cloud'.
renderComponent := (context structure: component) command asComponent.
html render: renderComponent
Using PRContentsWidget as a template, I guess I also need to return the
component in the #children method, which probably also means overriding the
#onChangeContext: method to capture the context. I would then refactor the
above code to cache the renderComponent in #onChangeContext:
Some questions:
1) Is there a simpler way of rendering another component defined elsewhere?
2) Do I need to create a new component each time onChangeContext: is called?
Thanks
Nick