-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- properly set and get the metadata - fix inheritance
- Loading branch information
Manuel Quiñones
committed
Jul 30, 2013
1 parent
a56c419
commit ca60d81
Showing
2 changed files
with
41 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ca60d81
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the inheritance fix Manuel.
I noticed that you removed datastoreObject.setMetadata( ) part.
Shouldn't "title" be an attribute of metadata?
Right now it only sets the title in "this.titleElem"
and when i tried to output the metadata object, i didn't find the "title" field.
Coming back to the bug(popup in home view), as i said earlier,
d0f2f08
the bug is caused because we didn't set title in this commit.
Walter bender pointed out an "untitled" entry in the journal when activity is opened for the first time.
I think it is because of the same reason.
In my pull request, i had taken out that commit because we were already setting those attributes in activitypalette.js.(name, title and activity id)
Now since you have removed them from here, I could set the title part in activity.js itself,
Shall i do that??
Btw, https://github.com/sugarlabs/sugar-web/blob/master/graphics/activitypalette.js#L63
it always results in false because there is no title entry in metadata.
ca60d81
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I just removed the calls that didn't make sense. Title is set after the user leaves the title entry, and the same happens with description:
We don't need to set title or description in other situations.
Your datastore might be corrupted because of the old bug. Try with a clean ~/.sugar . You can remove the directory and it will be recreated again.
The bug was caused because there were two datastore objects being created.
That's a consequence of creating two datastore objects.
My commit fixed everything. Please give it a try with a clean datastore.
False :) See above.
ca60d81
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still don't think the issue is solved :(
When I tested ( i did take out .sugar), the bug remains as long as "this.titleElem.onblur" isn't called.
So only when we click in the input box, " this.titleElem.onblur " comes into play and the metadata is set, otherwise it is not.
There is no metadata field title if we don't touch the input box of the activity palette.