Exemplo n.º 1
0
        void CreateRolls(Roll [] rolls)
        {
            if (rolls == null)
                rolls = from_db.Rolls.GetRolls ();
            RollStore from_store = from_db.Rolls;
            RollStore to_store = to_db.Rolls;

            foreach (Roll roll in rolls) {
                if (from_store.PhotosInRoll (roll) == 0)
                    continue;
                roll_map [roll.Id] = (to_store.Create (roll.Time).Id);
            }
        }
Exemplo n.º 2
0
		public void FinishRoll ()
		{
			current_roll = null;
		}
Exemplo n.º 3
0
		public void PrepareRoll ()
		{
			if (current_roll != null)
				return;

			current_roll = db.Rolls.Create ();
		}
Exemplo n.º 4
0
		void DoMerge (PhotoQuery query, Roll [] rolls, bool copy)
		{
			tag_map = new Dictionary<uint, Tag> ();
			roll_map = new Dictionary<uint, uint> ();

			Log.Warning ("Merging tags");
			MergeTags (from_db.Tags.RootCategory);

			Log.Warning ("Creating the rolls");
			CreateRolls (rolls);

			Log.Warning ("Importing photos");
			ImportPhotos (query, copy);

		}