Hi all....
I was previously workin in VisualWorks and now I have switched to
squeak.Finding it very difficult to adjust with the lack of adequate
tools and developing evironment in Squeak.Visualworks was much much
better.So could any one tell me if there is anything like a UIPainter in
squeak?I tried Tweak but it needs hell lot of unnessasary coding to even
open a spec or to add some widgets to it.pls give me your suggestions.
Thanks in Advance,
G R Thushar
> Having added a subclass of PRPage, I cant add one in pier due to a
> permissions error.
If you are logged in as administrator this should work.
> Now I understand that an existing page's permissions would not be
> aware of the new class. So I added a new PRPage first, then
> attempted to add the new page type to that. Still no go. So I set a
> halt in PUSecurity-validateCommand: to investigate further.
>
> It appears that the ownerPermissions set is being created with nils
> in the first couple of slots. This results in #includes: returning
> false before it finds the PUAddPermission that it is looking for in
> slot 4 (in this instance).
The permissions (Unix Security) of new pages inherit from their
parent. Since no structure knows about the 'add new xxx permission'
this won't give you that permission either. You have to explicitly
add this permission using the security commands to have it useable
from a non-admin user.
> The code in the above repository simply converts the sets to arrays
> before the #includes: test and all is fine.
I don't understand how this could help?
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch
Hi,
I'm using squeak-web-118.image by Damien Cassou. What I did:
1. Install the latest Magritte (Magritte-all-lr.224), then Pier (Pier-all-lr.207) from mc.lukas-renggli.ch.
2. Do WAKom startOn: 8080.
3. Browse to the Pier front page.
4. Click on the link "information page".
5. Click the back button.
6. Click on the "information page" link again.
7. I then get this error:
Error: Components not found while processing callbacks: an Array(a PRDefaultView)
WARender(Object)>>error:selfa WARendertempsaString'Components not found while processing callbacks: an Array(a PRDefaultView)'inst varsroota WAToolFramecontexta WARenderingContextrequesta WARequesturla WAUrl
The version of Pier and Magritte that came with squeak-web-118.image works fine, so something along the way must have broken the back button.
-Bill
____________________________________________________________________________________
Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games.
http://sims.yahoo.com/
Ah, that was it!
Many thanks for the lightning quick response!
-Bill
----- Original Message ----
From: Lukas Renggli <renggli(a)iam.unibe.ch>
To: "Magritte, Pier and Related Tools ..." <smallwiki(a)iam.unibe.ch>
Sent: Wednesday, May 30, 2007 1:28:59 PM
Subject: Re: Pier back button problem
The latest Pier only works with the latest Seaside 2.8, I don't know
if you have that loaded in squeak-web-118?
Lukas
On 30 May 2007, at 22:16, Bill Sun wrote:
> Hi,
>
>
>
> I'm using squeak-web-118.image by Damien Cassou. What I did:
>
>
>
> 1. Install the latest Magritte (Magritte-all-lr.224), then Pier
> (Pier-all-lr.207) from mc.lukas-renggli.ch.
>
> 2. Do WAKom startOn: 8080.
>
> 3. Browse to the Pier front page.
>
> 4. Click on the link "information page".
>
> 5. Click the back button.
>
> 6. Click on the "information page" link again.
>
> 7. I then get this error:
>
> Error: Components not found while processing callbacks: an Array(a
> PRDefaultView)
> WARender(Object)>>error:selfa WARendertempsaString'Components not
> found while processing callbacks: an Array(a PRDefaultView)'inst
> varsroota WAToolFramecontexta WARenderingContextrequesta
> WARequesturla WAUrl
>
> The version of Pier and Magritte that came with squeak-
> web-118.image works fine, so something along the way must have
> broken the back button.
>
> -Bill
>
>
>
>
>
>
>
> ______________________________________________________________________
> ______________
> Moody friends. Drama queens. Your life? Nope! - their life, your
> story. Play Sims Stories at Yahoo! Games.
> http://sims.yahoo.com/
>
> _______________________________________________
> SmallWiki, Magritte, Pier and Related Tools ...
> https://www.iam.unibe.ch/mailman/listinfo/smallwiki
--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
____________________________________________________________________________________Got a little couch potato?
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&…
Thanks for the responses. I did get this to work by using one session
for reading the nested object and registering the new object. One of
the situations where another session's objects would be nice to use
is that rarely changed nested objects could be cached in memory
rather than running another query. Glorp is efficient enough that I
should worry about such things, but old habits die hard :)
Brian.
On May 30, 2007, at 6:31 AM, Alan Knight wrote:
> I don't quite know why this would be happening, partly because I
> don't know the MagritteGlorp package, so I'm not sure what some of
> these calls are doing. My guess is that it is because you're using
> two different sessions. In general, it's a very bad idea to mix
> objects between two different sessions. Glorp relies on knowing
> whether or not it read the object from the database in order to
> know whether to do an insert or an update. If you read objA in one
> session, then give it to another session as if it were a new
> object, it will probably try to insert it and cause an error. If
> you did this in the same session, I'd expect it to work. Certainly
> that sort of thing works fine in basic Glorp.
>
> At 01:02 AM 5/30/2007, Brian Murphy-Dye wrote:
>> I'm using Ramon Leon's MagritteGlorp package, which ties together the
>> extremely useful Magritte and Glorp packages, but must not be using
>> it quite correctly. When registering an object that has a reference
>> to an already stored object, it seems to attempt re-insert the
>> referenced object. For example:
>>
>> objA := ADescriptorSystem getSession execute: (A find where [:ea | ea
>> name = 'hello']).
>> objB := B new.
>> objB a: objA.
>> session := B getSession.
>> session beginUnitOfWork.
>> objB register: objB.
>> session commitUnitOfWork.
>>
>> raises a 'GlorpDatabaseWriteError: ERROR: duplicate key violates
>> unique constraint' error. I thought it might be because I am using
>> one session to load the object and another session to register, but
>> believe I've also tried doing everything in one session. If it is of
>> any help, the reference description is of type
>> MAToOneRelationDescription. On another project, I tried
>> MAMultipleOptionDescription with the same error. Any ideas on how to
>> make it recognize the object is already stored and hasn't changed?
>>
>> Thanks, Brian.
>>
>> Glorp.rjl.8
>> GlorpPostload-rjl.3
>> GlorpPreload-rjl.2
>> Magritte-Seaside-lr.228.mcz
>> Magritte-Model-lr.266
>> MagritteGlorp-rjl.47
>>
>>
>> ---------------------------------------------------------------------
>> ----
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> Glorp-development mailing list
>> Glorp-development(a)lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/glorp-development
>
> --
> Alan Knight [|], Cincom Smalltalk Development
> knight(a)acm.org
> aknight(a)cincom.com
> http://www.cincom.com/smalltalk
>
> "The Static Typing Philosophy: Make it fast. Make it right. Make it
> run." - Niall Ross
hi all :)
The problem is here: http://kamikaze.seasidehosting.st/
How can setup Pier so it will not show all these "Add,Remove.." in Commands
section. The only available items could be Login and maybe View. I want to
setup Pier to get menu items like here: http://www.lukas-renggli.ch/ :)
Thanks
I'm using Ramon Leon's MagritteGlorp package, which ties together the
extremely useful Magritte and Glorp packages, but must not be using
it quite correctly. When registering an object that has a reference
to an already stored object, it seems to attempt re-insert the
referenced object. For example:
objA := ADescriptorSystem getSession execute: (A find where [:ea | ea
name = 'hello']).
objB := B new.
objB a: objA.
session := B getSession.
session beginUnitOfWork.
objB register: objB.
session commitUnitOfWork.
raises a 'GlorpDatabaseWriteError: ERROR: duplicate key violates
unique constraint' error. I thought it might be because I am using
one session to load the object and another session to register, but
believe I've also tried doing everything in one session. If it is of
any help, the reference description is of type
MAToOneRelationDescription. On another project, I tried
MAMultipleOptionDescription with the same error. Any ideas on how to
make it recognize the object is already stored and hasn't changed?
Thanks, Brian.
Glorp.rjl.8
GlorpPostload-rjl.3
GlorpPreload-rjl.2
Magritte-Seaside-lr.228.mcz
Magritte-Model-lr.266
MagritteGlorp-rjl.47
Still no luck :( I can't see it in the list. Also I can't see that "#label"
in other PRWidget subclasses.
Ok, I have a "file out" of my package with just one PRWidget subclass:
PRWidget subclass: #PMKHeaderWidget
instanceVariableNames: ''
classVariableNames: ''
poolDictionaries: ''
category: 'Pier-My-Widgets'!
!PMKHeaderWidget methodsFor: 'rendering' stamp: 'kmz 5/29/2007 03:19'!
renderContentOn: html
html header: 'yoyo'.
! !
!PMKHeaderWidget methodsFor: 'initialization' stamp: 'kmz 5/29/2007 02:52'!
initialize
super initialize.! !
!PMKHeaderWidget methodsFor: 'accessing' stamp: 'kmz 5/29/2007 03:04'!
asLabel
^ 'KmzHeader'! !
!PMKHeaderWidget methodsFor: 'accessing' stamp: 'kmz 5/29/2007 03:16'!
defaultCssClass
^ 'box'! !
!PMKHeaderWidget methodsFor: 'accessing' stamp: 'kmz 5/29/2007 03:16'!
isAbstract
^ false! !
!PMKHeaderWidget methodsFor: 'accessing' stamp: 'kmz 5/29/2007 03:04'!
label
^ 'KmzHeader'! !
------
I have an image running with this package on:
http://kamikaze.seasidehosting.st (editale, feel free to break all :))
Question
I generate a view as follow
view: bd
self call: (bd asComponent readonly: true ; addSwitch ;
yourself)
Now I would like to know how I could get a close button too that
would invoke an answer method?
Question 2.
I have a description....
and I wanted to know how I can specify a default value.
descriptionEditor
^ (MASingleOptionDescription selector: #editor label: 'Publisher'
priority: 400)
options: self editors;
beSorted;
yourself
In fact I would like to select the value of the editor iv
so I tried default: #editor
But it does not work
Stef
Hello everybody :)
How can I create a widget in Pier? For example I want to create
PRHeaderWidget clone as PRKamikazeHeaderWidget. I have a second PRKernel
instance named 'kamikaze', so I want to use my own Header here, but the
original one in the default instance. I've tried to create simple
PRCommandWidget, but after that I had two "Commands" in the
Environment->Header->[Edit]->Component class.
Thanks :)