[ANN] Pier-ScriptingAPI

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[ANN] Pier-ScriptingAPI

keith1y
I have uploaded a first release of a scriptingAPI for pier.

The aim at this stage is to provide a platform for importing data and
hence some scalability testing with pier-magma.

There are three classes which implement the same API.
a) PRModelScripter - direct operations on the model
b) PRCommandScripter - operations via the command interface (logging
optional)
c) PRCommandAppScripter - as b) but run in the context of the registered
application including logging (optional) and persistency.

For Data importing PRPierifyToPage provides an abstract class for
loading data from a target object into a pier page.
Example  of use:

(PRPierifySmalltalkClass target: Object into: (PRCommandAppScripter
onKernelNamed:'pier')

So to create a persisted Pier kernel with 5000+ pages, one every 10 seconds.
Create a persisted kernel named 'Squeak'  using the  Magma Control Panel
GUI. Then run.

PRPierifySmalltalkClass pace: 10.
PRPierifySmalltalkClass exampleProtoObject.
[ PRPierifySmalltalkClass exampleAllClasses ] forkAt: 15.

feedback welcome

Keith





       
       
               
___________________________________________________________
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine
http://uk.docs.yahoo.com/nowyoucan.html

_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
_______________________________________________
Smallwiki mailing list
[hidden email]
http://impara.de/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Pier-ScriptingAPI

stéphane ducasse-2
Hi keith

can you explain a bit what are the scripter?

I was thinking that with the command we could have people building  
user interface for Wiki admin
but I guess that this is something different


> I have uploaded a first release of a scriptingAPI for pier.
>
> The aim at this stage is to provide a platform for importing data and
> hence some scalability testing with pier-magma.
>
> There are three classes which implement the same API.
> a) PRModelScripter - direct operations on the model
> b) PRCommandScripter - operations via the command interface (logging
> optional)
> c) PRCommandAppScripter - as b) but run in the context of the  
> registered
> application including logging (optional) and persistency.
>
> For Data importing PRPierifyToPage provides an abstract class for
> loading data from a target object into a pier page.
> Example  of use:
>
> (PRPierifySmalltalkClass target: Object into: (PRCommandAppScripter
> onKernelNamed:'pier')
>
> So to create a persisted Pier kernel with 5000+ pages, one every 10  
> seconds.
> Create a persisted kernel named 'Squeak'  using the  Magma Control  
> Panel
> GUI. Then run.
>
> PRPierifySmalltalkClass pace: 10.
> PRPierifySmalltalkClass exampleProtoObject.
> [ PRPierifySmalltalkClass exampleAllClasses ] forkAt: 15.
>
> feedback welcome
>
> Keith
>
>
>
>
>
>
>
>
> ___________________________________________________________
> All new Yahoo! Mail "The new Interface is stunning in its  
> simplicity and ease of use." - PC Magazine
> http://uk.docs.yahoo.com/nowyoucan.html
>
> _______________________________________________
> SmallWiki, Magritte, Pier and Related Tools ...
> https://www.iam.unibe.ch/mailman/listinfo/smallwiki


_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
_______________________________________________
Smallwiki mailing list
[hidden email]
http://impara.de/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Pier-ScriptingAPI

keith1y
In reply to this post by keith1y
Stefan,

The scripters aim to provide a simple programmatic interface to pier.

So far I have implemented.

aScripter addPageAt: '/Pier/User' name: 'Keith'.
aScripter addPageAt: '/Pier/User' name: 'Keith' contents: '!!Keith''s Page'.
aScripter removePageAt: '/Pier/User/Bob'.

In the scripters you can pass a path or the real thing.

| newPage |
aScripter addPageAt: '/Pier/User' name: 'Keith' contents: '*my cv*'.
aScripter addPageAt: newPage name: 'my cv' contents: 'chief cook and
bottle washer'.

While not a comprehensive api, it is enough to begin importing some data.

The MagmaControlPanel provides a simple UI for adding, deleting and
persisting kernels. Sufficient to fully control a remote installation
from a web browser. Though I haven't tried it without Magma actually
installed to know if it would be more generally useful.

Once I am happy with the magma stuff I will be turning my attention to
the Environment and aim to make some admin components for use within the
environment. I have already implemented full stylesheet control and a
password editor and user/groups editor. Which are designed to be
available within the Environment for the site.

best regards

Keith



               
___________________________________________________________
The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html

_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
_______________________________________________
Smallwiki mailing list
[hidden email]
http://impara.de/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Pier-ScriptingAPI (errata)

keith1y
In reply to this post by keith1y
Stefan,

The scripters aim to provide a simple programmatic interface to pier.

So far I have implemented.

aScripter addPageAt: '/Pier/User' name: 'Keith'.
aScripter addPageAt: '/Pier/User' name: 'Keith' contents: '!!Keith''s Page'.
aScripter removePageAt: '/Pier/User/Bob'.

In the scripters you can pass a path or the real thing.

| newPage |
newPage := aScripter addPageAt: '/Pier/User' name: 'Keith' contents:
'*my cv*'.
aScripter addPageAt: newPage name: 'my cv' contents: 'chief cook and
bottle washer'.

While not a comprehensive api, it is enough to begin importing some data.

The MagmaControlPanel provides a simple UI for adding, deleting and
persisting kernels. Sufficient to fully control a remote installation
from a web browser. Though I haven't tried it without Magma actually
installed to know if it would be more generally useful.

Once I am happy with the magma stuff I will be turning my attention to
the Environment and aim to make some admin components for use within the
environment. I have already implemented full stylesheet control and a
password editor and user/groups editor. Which are designed to be
available within the Environment for the site.

best regards

Keith



               
___________________________________________________________
The all-new Yahoo! Mail goes wherever you go - free your email address
from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html

_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
_______________________________________________
Smallwiki mailing list
[hidden email]
http://impara.de/mailman/listinfo/smallwiki


               
___________________________________________________________
The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html

_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
_______________________________________________
Smallwiki mailing list
[hidden email]
http://impara.de/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Pier-ScriptingAPI (errata)

stéphane ducasse-2
sounds cool.


On 16 sept. 06, at 03:21, Keith Hodges wrote:

> Stefan,
>
> The scripters aim to provide a simple programmatic interface to pier.
>
> So far I have implemented.
>
> aScripter addPageAt: '/Pier/User' name: 'Keith'.
> aScripter addPageAt: '/Pier/User' name: 'Keith' contents: '!!
> Keith''s Page'.
> aScripter removePageAt: '/Pier/User/Bob'.
>
> In the scripters you can pass a path or the real thing.
>
> | newPage |
> newPage := aScripter addPageAt: '/Pier/User' name: 'Keith' contents:
> '*my cv*'.
> aScripter addPageAt: newPage name: 'my cv' contents: 'chief cook and
> bottle washer'.
>
> While not a comprehensive api, it is enough to begin importing some  
> data.
>
> The MagmaControlPanel provides a simple UI for adding, deleting and
> persisting kernels. Sufficient to fully control a remote installation
> from a web browser. Though I haven't tried it without Magma actually
> installed to know if it would be more generally useful.
>
> Once I am happy with the magma stuff I will be turning my attention to
> the Environment and aim to make some admin components for use  
> within the
> environment. I have already implemented full stylesheet control and a
> password editor and user/groups editor. Which are designed to be
> available within the Environment for the site.

Sounds exciting to me.
I always thought that once we have command we could even let the  
admin be able to write

under Page all links = dead (nromally we can do that with the search  
engine)

and then do

(all links = dead) do: action :)

>
> best regards
>
> Keith
>
>
>
>
> ___________________________________________________________
> The all-new Yahoo! Mail goes wherever you go - free your email address
> from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html
>
> _______________________________________________
> SmallWiki, Magritte, Pier and Related Tools ...
> https://www.iam.unibe.ch/mailman/listinfo/smallwiki
> _______________________________________________
> Smallwiki mailing list
> [hidden email]
> http://impara.de/mailman/listinfo/smallwiki
>
>
>
> ___________________________________________________________
> The all-new Yahoo! Mail goes wherever you go - free your email  
> address from your Internet provider. http://uk.docs.yahoo.com/ 
> nowyoucan.html
>
> _______________________________________________
> SmallWiki, Magritte, Pier and Related Tools ...
> https://www.iam.unibe.ch/mailman/listinfo/smallwiki


_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
_______________________________________________
Smallwiki mailing list
[hidden email]
http://impara.de/mailman/listinfo/smallwiki