Importing items
April 15th, 2005 by Andi VajdaNow that items can be created in a null repository view, how about persisting them ?
By definition, a null repository view, is not capable of persisting items. In the context of Phillip Eby’s Schema API proposal, items are persisted in python code and instantiated into the null repository view upon python’s loading of the module.
Items can now be imported from one view into another, within the same repository or not. This is a rather tricky operation as a given item can only exist once in a given repository and some items, such as schema, should be copied upon export while others should be moved. Items are very interconnected, it makes little sense to import them in isolation. It is essential that bi-directional references be maintained when an item is imported. Currently, item import works as follows:
- a transitive closure of all items connected to the item being imported is computed, excluding items for which there is a match in the importing view. Items are matched in the importing view first by UUID, then by path, if not anonymous. While this is correct for schema items, this is very preliminary and not good enough for regular, anonymous items. For that, it is maybe time to revive the notion of exportable addresses first introduced by Lisa Dusseault a year ago and for which an implementation using ref collection-based paths was subsequently proposed and completed.
- items marked as COPYEXPORT are copied instead of being moved. The copies are instantiated in the importing view using their ‘export’ cloud.
- items instances being moved to the new view are fixed up for differences in repository persistence implementations, as is the case with ref collections, children collections or lobs.
- items instances being moved are reconnected to the items matching in the importing view.
- items instances being moved are reconnected to the items that were copied upon import.
- items instances being moved are re-parented in the importing view matching the original view’s structure.
Importing an item is done by invoking the new importItem() API defined on the RepositoryView class, or also, when the item is in a null repository view, by connecting it via a bi-directional ref to an item in another view.
free viagra
buy viagra online
generic viagra
how does viagra work
cheap viagra
buy viagra
buy viagra online inurl
viagra 6 free samples
viagra online
viagra for women
viagra side effects
female viagra
natural viagra
online viagra
cheapest viagra prices
herbal viagra
alternative to viagra
buy generic viagra
purchase viagra online
free viagra without prescription
viagra attorneys
free viagra samples before buying
buy generic viagra cheap
viagra uk
generic viagra online
try viagra for free
generic viagra from india
fda approves viagra
free viagra sample
what is better viagra or levitra
discount generic viagra online
viagra cialis levitra
viagra dosage
viagra cheap
viagra on line
best price for viagra
free sample pack of viagra
viagra generic
viagra without prescription
discount viagra
gay viagra
mail order viagra
viagra inurl
generic viagra online paypal
generic viagra overnight
generic viagra online pharmacy
generic viagra uk
buy cheap viagra online uk
suppliers of viagra
how long does viagra last
viagra sex
generic viagra soft tabs
generic viagra 100mg
buy viagra onli
generic viagra online without prescription
viagra energy drink
cheapest uk supplier viagra
viagra cialis
generic viagra safe
viagra professional
viagra sales
viagra free trial pack
viagra lawyers
over the counter viagra
best price for generic viagra
viagra jokes
buying viagra
viagra samples
viagra sample
cialis
generic cialis
cheapest cialis
buy cialis online
buying generic cialis
cialis for order
what are the side effects of cialis
buy generic cialis
what is the generic name for cialis
cheap cialis
cialis online
buy cialis
cialis side effects
how long does cialis last
cialis forum
cialis lawyer ohio
cialis attorneys
cialis attorney columbus
cialis injury lawyer ohio
cialis injury attorney ohio
cialis injury lawyer columbus
prices cialis
cialis lawyers
viagra cialis levitra
cialis lawyer columbus
online generic cialis
daily cialis
cialis injury attorney columbus
cialis attorney ohio
cialis cost
cialis professional
cialis super active
how does cialis work
what does cialis look like
cialis drug
viagra cialis
cialis to buy new zealand
cialis without prescription
free cialis
cialis soft tabs
discount cialis
cialis generic
generic cialis from india
cheap cialis sale online
cialis daily
cialis reviews
cialis generico
how can i take cialis
cheap cialis si
cialis vs viagra
levitra
generic levitra
levitra attorneys
what is better viagra or levitra
viagra cialis levitra
levitra side effects
buy levitra
levitra online
levitra dangers
how does levitra work
levitra lawyers
what is the difference between levitra and viagra
levitra versus viagra
which works better viagra or levitra
buy levitra and overnight shipping
levitra vs viagra
canidan pharmacies levitra
how long does levitra last
viagra cialis levitra
levitra acheter
comprare levitra
levitra ohne rezept
levitra 20mg
levitra senza ricetta
cheapest generic levitra
levitra compra
cheap levitra
levitra overnight
levitra generika
levitra kaufen
