~ubuntu-branches/ubuntu/hardy/steam/hardy

« back to all changes in this revision

Viewing changes to server/factories/CalendarFactory.pike

  • Committer: Bazaar Package Importer
  • Author(s): Alain Schroeder
  • Date: 2006-11-21 16:03:12 UTC
  • mfrom: (2.1.4 feisty)
  • Revision ID: james.westby@ubuntu.com-20061121160312-nf96y6nihzsyd2uv
Tags: 2.2.31-3
Add patch to prevent inconsistent data after shutdown.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
{
55
55
    object obj;
56
56
    try_event(EVENT_EXECUTE, CALLER, obj);
 
57
    if ( vars->transient ) {
 
58
      if ( mappingp(vars->attributes) )
 
59
        vars->attributes[OBJ_TEMP] = 1;
 
60
      else
 
61
        vars->attributes = ([ OBJ_TEMP : 1 ]);
 
62
    }
 
63
 
57
64
    obj = ::object_create(vars["name"], CLASS_NAME_CALENDAR, 0,
58
65
                          vars["attributes"],
59
66
                          vars["attributesAcquired"],