Tudor Girba | 17 May 12:22
Picon
Picon
Favicon

meta tags

Hi,

I would like to give the Google Webmaster Tools a try, and for that I  
need to authenticate that I am the owner of the site. For this to  
happen, I need to add a meta tag in my Pier pages.

The only way I know is to go add it in the updateRoot method, but this  
should be supported by Pier at a user level. Is there a way to do  
this? If not, what would be the possible solutions?

Cheers,
Doru

--
www.tudorgirba.com
www.tudorgirba.com/blog

"Every now and then stop and ask yourself if the war you're fighting  
is the right one."

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

Esteban Lorenzano | 7 May 21:16
Picon

Magritte question: how to describe a Dictionary?

Hi,
Let's say I have to fill a Dictionary, with pairs of "size->price", and I need to allow users to fill that dictionary...

How do I have to describe that with magritte?
Is it possible?

Thanks,
Esteban

"Querer es suscitar las paradojas"
Camus - El mito de Sísifo


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

Magritte descriptions in hierarchies of classes

Suppose I have a hierarchy like this:

Object subclass: #ClassA
	instanceVariableNames: 'name'
	classVariableNames: ''
	poolDictionaries: ''
	category: 'Example'

ClassA subclass: #ClassB
	instanceVariableNames: 'bInstVar'
	classVariableNames: ''
	poolDictionaries: ''
	category: 'Example'

ClassB subclass: #ClassC1
	instanceVariableNames: 'c1InstVar'
	classVariableNames: ''
	poolDictionaries: ''
	category: 'Example'

ClassB subclass: #ClassC2
	instanceVariableNames: 'c2InstVar'
	classVariableNames: ''
	poolDictionaries: ''
	category: 'Azteca-Model'

ClassA is just an abstract parent with the common functionality for the 
other classes. Same for ClassB.
Only objects from ClassC1 and ClassC2 are to be created.

Should I create a "descriptionName" method in the class side of ClassA 
to be inherited for ClassC1 and ClassC2 or should I create a 
"descriptionName" once for each of ClassC1, ClassC2.
The same question about the inst vars for ClassB.

Summary, when you have a previously created hierarchy of classes and you 
are trying to refactor code (deleting duplicated code and replace it 
with magritte) how should you proceed?

It is valid to inherit the descriptions of parent classes?

What if for ClassC1 name should be displayed as 'Name' and for ClassC2 
should be displayed 'Title'?

Regards,
Miguel Cobá

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

Dario Trussardi | 5 May 16:47
Picon
Favicon

Descriptions definition

Hi,
 
i work with Magritte framework for define more data about one specific problem.
 
Now some data is defined as subclass of another class.
 
For example :
 
    SuperClass  with descriptionCode with descriptionComment with descriptionAddress with descriptionReference and ......
 
   
        SubClassOptionA with descriptionCostumer and ....other specific description for OptionA
 
        SubClassOptionB with descriptionSupply and .....    other specific description for OptionB
 
 
My questions are :
 
A) What's the best method for not replicate the SuperClass  descriptions ?
 
B) If i need to change the label of the priority of one of SuperClass description how i can do it ?
 
C) When i need to do copy of one description and after send to the copy specific messages ?
 
D) When i have a specific description,
    for example descriptionNazionality based on MASingleOptionDescription,
    and i have in the "data base" some reference to it ,
    i can define only one basic descriptionNationality and use it ( or copy of it  ) with specific attribute ( label priority accessor )  ?
 
    What's the solution for have the best performance ?  ( I think to port it to GLASS )
 
 
Any pointers would be greatly appreciated!

Thanks!
Dario

_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Dario Trussardi | 5 May 15:43
Picon
Favicon

MASingleOptionDescription optionsAndLabels asDynamicObject d'ont work

Hi All,
 
i have one description based on MASingleOptionDescription.
 
Now it work well when define the items with the options:[ MACityModel DataBase asArray] asDynamicObject.
 
But because i need to view more text for any item in the list,
    i define the options with the method
 
    optionsAndLabels:[( MACityModel DataBase asArray) collect:[:itm| Association key: itm value: itm display]] asDynamicObject
 
With it the list is right create but d'ont update at " dynamic time  " with new item or change to MACityModel DataBase items.
 
How i can solve my problem ?
 
" I thinks to found the same problem with MAMultipleOptionsDescription "
 
 
Thanks for any consideration,
 
Dario

_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Tudor Girba | 3 May 22:45
Picon
Picon
Favicon

pier blog and google reader

Hi,

I just noticed that Google Reader does not manage to read a Pier blog.  
I tried with both ming and Lukas, and it finds "no items".

Any idea why?

Cheers,
Doru

--
www.tudorgirba.com
www.tudorgirba.com/blog

"When people care, great things can happen."

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

Adrian Kuhn | 1 May 22:33
Picon
Picon

Smallwiki update

There are new versions of both Smallwiki and Smallwiki SCG on Bern Store

Changes Smallwiki

- Metatag Redirect
- Metatag Custom RSS
- RSS fix moved here from Smallwiki SCG

Changes Smallwiki SCG

- Using new Google Analytics script
- No analytics for internal and logged in users
- Logged in users have access to internal pages

Alas I was not able to checkout Smallwiki in a fresh image to run the  
test (in the SCG wiki 9 tests fail due to changes in Smallwiki SCG).  
There seems to be an issue with Store and version ids.

cheers,
AA

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

Dario Trussardi | 30 Apr 22:09
Picon
Favicon

TableDescription questions

Hi All,
 
i have my ApplicationModel with some description.
 
Now i'm interested to display a small table based on TableDescription and TableMode.
 
I define the descriptionTable
 
descriptionTable
^MATableDescription
    columnsLabels: OrderedCollection ..........
    rowLabels: OrderedCollection .............
    selectorAccessor: returnTableModel
    beReadonly
 
Now my problem is:
        i can't not know the rowLabels: OrderedCollection......  definition because it depend on the my istance of ApplicationModel.
 
Questions:
 
    A) How i can dinamic update the rowLabels after the descriptionTable builder ?
 
   
    B) How i can dinamic update the data of the table ?
 
        Now when the data of the table change when press the save buttons the system create error : Input is conflicting with current modification.
 
        But the table is readonly.
 
 

Any pointers would be greatly appreciated!

Thanks!

Dario

 
   

_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Dario Trussardi | 29 Apr 12:10
Picon
Favicon

descriptionContainer addCondition

Hi All,
 
i see my last message "descriptionContainer addCondition" in the wiki are wrong formatted.
 
I resubmit the message.
 
 
I have define descriptionContainer with addCondition to mange the control of the data to dictionary.
 
The definition is:
 
descriptionContainer
    ^( super descriptionContainer)
        addCondition:[ :memento | ( self controlToDataBase: memento)]
        labelled:' Member not definable'; yourself
 
It work fine.
 
But when create the component with:
 
self call: ( ModelClass descriptionFieldOne, ModelClass descriptionFieldTwo, ModelClass descriptionFieldThree ) asComponenetOn: anModel) addValidateForm; yourself
 
the descriptionContainer addCondition d'ont work.
 
Thanks for any consideration,
 
Dario

_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Keith Hodges | 29 Apr 03:21
Picon

ie6 cant update tables

Hello Lukas,

I discovered that where

MAReport-renderContentOn:

creates a table with an ajaxId. If you try to use a scriptaculous 
updater on this id it works in firefox, but not in ie6. So it looks like 
we need an enclosing div

cheers

Keith

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

Dario Trussardi | 28 Apr 22:56
Picon
Favicon

MAToOneRelationDescription dispaly data

Hi All,
my english language is very limited, i'm sorry.
 
I have a PersonModel with some descriptions.
 
One of it, descriptionAddress is  based on MAToOneRelationDescription
with componentClass: MAExternalEditorComponent
  and classes: ( Array with: MAAddressModel )
 
When rendering PersonModel  asComponent for the descriptionAddress the system
display the relative low priotity description near the Remove and Edit buttons.
 
I need to dispaly more data near the button.
 
I have add, to the descriptionAddress definition the:
 reference:  ( MAAddressModel descriptionCity, MAAddressModel descriptionRegion)
 
but d'ont work well.
 
The same problem i found in MASingleOptionDescription where reference: d'ont work.
For MASingleOptionDescription i have solve with optionsAndLabels:
 
In the MAToManyRelationDescription the reference: define the data to display for any item.
 
I think same behaviour in MAToOneRelationDescription and MASingleOptionDescription but i wrong. ?!
 
My question now is:
 
how i can display some  data near the Remove / Edit buttons  relative to the MAAddressModel instance.
 
Cheers,
 
Dario

 


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

Gmane