Hi,
I'd like to have a component that show last edited structure (at leat page). I think it's not possible yet. Correct me if wrong. Does adding an inst var timestamp in structure is the way to go ? Thanks Cédrick _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
2008/7/26 cdrick <[hidden email]>
ok I must be wrong as there is the change command oops... What I'd like is a small change component that can be embeded and also display (or not depending on a setting) the last update information. I'd like also to have a checkbox so as it's possible to record this information (in case of correcting a typo for instance)... I'll investigate on changes and I'll come back later on that... ;) Cédrick _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
2008/7/26 cdrick <[hidden email]>
I'm tired I mean't: What I'd like is a small change component that can be embeded. Then also to display (or not depending on a setting) the last update information at the start (or end) of a page. I'd like also to have a checkbox so as it's possible to record ***or not*** this information (in case of correcting a typo for instance)... I'll investigate on changes and I'll come back later on that... ;) Cédrick _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
there is a checked inst var in PRCommand. I think I could use similarly an inst var, or a wrapper for timestamp to associated it with a boolean... What would you do ? Thanks Cédrick ---- checked seems to be use only in PBComment... PRCommand>>isChecked "Answer ==true== if the command should be checked before execution, e.g. the method ==#doValidate== should be executed at all." _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
In reply to this post by cedreek
If you use PRHistoryPersistency or any of its subclasses as the
persistency mechanism you get this information: aKernel persistency historyFor: aStructure This answer a collection of commands that have been executed on aStructure. You can for example filter it for edit commands to get all the edit operations (this is what the subclasses of PRHistoryView are doing). On Jul 26, 2008, at 22:49 , cdrick wrote: > Hi, > > I'd like to have a component that show last edited structure (at > leat page). > I think it's not possible yet. Correct me if wrong. > > Does adding an inst var timestamp in structure is the way to go ? > > Thanks > > Cédrick > > > _______________________________________________ > 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 |
In reply to this post by cedreek
> What I'd like is a small change component that can be embeded and
> also display (or not depending on a setting) the last update > information. > I'd like also to have a checkbox so as it's possible to record this > information (in case of correcting a typo for instance)... > I'll investigate on changes and I'll come back later on that... ;) You can add such a field to PRCommand by adding a new description. And then you display the data using the technique I showed in the previous mail. Lukas -- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
In reply to this post by cedreek
> I'll investigate on changes and I'll come back later on that... ;)
> > there is a checked inst var in PRCommand. I think I could use > similarly an inst var, or a wrapper for timestamp to associated it > with a boolean... > What would you do ? I don't understand. There is already a time-stamp recorded within all the commands (see inst-var refs to 'timestamp' in PRCommand). checked is something else (see inst-var refs to 'checked' in PRCommand). As any Magritte or Pier object you can just use #propertyAt: and #propertyAt:put: and a Magritte description for clean extension without having to override or change something in the existing code. > checked seems to be use only in PBComment... > > PRCommand>>isChecked > "Answer ==true== if the command should be checked before > execution, e.g. the method ==#doValidate== should be executed at all." This is used in PRPersistency. This is an important part of the persistency mechanism and allows to replay commands at a later point in time without checking the validation conditions. I agree, that the implementation should be improved for readability. Cheers, Lukas -- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki |
Hi,
>> >> there is a checked inst var in PRCommand. I think I could use >> similarly an inst var, or a wrapper for timestamp to associated it >> with a boolean... >> What would you do ? > > I don't understand. There is already a time-stamp recorded within all > the commands (see inst-var refs to 'timestamp' in PRCommand). checked > is something else (see inst-var refs to 'checked' in PRCommand). This is icing on the cake :) I want some edit not being displayed in the "pages last updated" component. I guess I need to add a property because checked is use for persistency reason. When unchecked (trough the description) the property record will be set to false so this change won't be considered... I'll give a try soon. Thanks a lot Cédrick > > As any Magritte or Pier object you can just use #propertyAt: and > #propertyAt:put: and a Magritte description for clean extension > without having to override or change something in the existing code. > >> checked seems to be use only in PBComment... >> >> PRCommand>>isChecked >> "Answer ==true== if the command should be checked before >> execution, e.g. the method ==#doValidate== should be executed at all." > > This is used in PRPersistency. This is an important part of the > persistency mechanism and allows to replay commands at a later point > in time without checking the validation conditions. I agree, that the > implementation should be improved for readability. > > Cheers, > Lukas > > -- > Lukas Renggli > http://www.lukas-renggli.ch > > > _______________________________________________ > 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 |
Free forum by Nabble | Edit this page |