newbie help...

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

newbie help...

xekoukou
I would like someone to verify this..

I want to create a plugin that would be part of the enviroment of a number of pages.
the plugin wants to know the user that is logged in, the owner of the page that is viewing and the absolute path of the page.

So  to get this i ll put in my component these lines right?

PRContext user
PRContext structure owner
PRContext structure absolutePath

I guess that the absolute path is the only way to identfy a page.

Another problem i have is with persistency..
I googled and found that lots of people have already talked about it.
For me and i think every new programmer, it is the biggest obstacle for using Pier...
Pier is very powerfull , easy to use and programm due to its smalltalk foundation. The code is so easily understood and the reusability of the code is phenomenal.

So If this persistency problem is solved with the new programmer in mind, the one that just wants its objects to save, no questions asked, Pier would rock.

So to use Pier, the only option for me is to go for a non-free DB like gemstoneS. All i have to do is tell Pier to save objects and gemstone will do it automatically without me changing any of the code, right?
Unfortunately at the time of writing i have access to a 32bit CPU so i cant check for myself..

I know there are other options like magma, but from what i understand you have to understand the underlying structure and i dont want to.




_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: newbie help...

Nick
Hi Apostolis,

I want to create a plugin that would be part of the enviroment of a number of pages.
the plugin wants to know the user that is logged in, the owner of the page that is viewing and the absolute path of the page.

So  to get this i ll put in my component these lines right?

PRContext user
PRContext structure owner
PRContext structure absolutePath

If you derive your component from PRWidget rather than WAComponent you have access to #context, see for example PUSecurityWidget 
 
I guess that the absolute path is the only way to identfy a page.

Another problem i have is with persistency..
I googled and found that lots of people have already talked about it.
For me and i think every new programmer, it is the biggest obstacle for using Pier...
Pier is very powerfull , easy to use and programm due to its smalltalk foundation. The code is so easily understood and the reusability of the code is phenomenal.

So If this persistency problem is solved with the new programmer in mind, the one that just wants its objects to save, no questions asked, Pier would rock.

So to use Pier, the only option for me is to go for a non-free DB like gemstoneS. All i have to do is tell Pier to save objects and gemstone will do it automatically without me changing any of the code, right?
Unfortunately at the time of writing i have access to a 32bit CPU so i cant check for myself..

I know there are other options like magma, but from what i understand you have to understand the underlying structure and i dont want to.


Hope this helps

Nick

_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: newbie help...

Dale Henrichs
In reply to this post by xekoukou

On Mar 24, 2011, at 11:09 PM, Apostolis Xekoukoulotakis wrote:

> I would like someone to verify this..
>
> I want to create a plugin that would be part of the enviroment of a number of pages.
> the plugin wants to know the user that is logged in, the owner of the page that is viewing and the absolute path of the page.
>
> So  to get this i ll put in my component these lines right?
>
> PRContext user
> PRContext structure owner
> PRContext structure absolutePath
>
> I guess that the absolute path is the only way to identfy a page.
>
> Another problem i have is with persistency..
> I googled and found that lots of people have already talked about it.
> For me and i think every new programmer, it is the biggest obstacle for using Pier...
> Pier is very powerfull , easy to use and programm due to its smalltalk foundation. The code is so easily understood and the reusability of the code is phenomenal.
>
> So If this persistency problem is solved with the new programmer in mind, the one that just wants its objects to save, no questions asked, Pier would rock.
>
> So to use Pier, the only option for me is to go for a non-free DB like gemstoneS. All i have to do is tell Pier to save objects and gemstone will do it automatically without me changing any of the code, right?
> Unfortunately at the time of writing i have access to a 32bit CPU so i cant check for myself..

GemStone has a very generous free for commercial use license...The majority of folks using GemStone develop their applications in Pharo and deploy them in GemStone, so you can do your initial development in Pharo on your 32bit machine ... GemStone's persistence model is based on the same concept as image persistence, instead of saving your image, you do a commit and in the case of Pier the GemStone transactions are handled in the Seaside framework, so you don't have to add any special code to your Pier application to take advantage of GemStone persistence.

>
> I know there are other options like magma, but from what i understand you have to understand the underlying structure and i dont want to.
>
>
>
> <ATT00001..txt>


_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki