Git Product home page Git Product logo

wfapi's Issues

Can we have node.created_at?

Not sure workflowy saves the creation date for each node, but if so, can I have node.created_at? It would be useful when checking tasks are really captured for a long time.

AttributeError as soon as I log in.

As soon as I log in my workflowy account, I got the following error message. Could you fix it for me?

.../anaconda/lib/python3.5/site-packages/wfapi/node.py in from_vaild_json(cls, info)
33 setattr_node = super(cls, self).setattr
34 for k, v in value.items():
---> 35 setattr_node(k, v)
36
37 return self

AttributeError: 'WFRawNode' object has no attribute 'lmb'

What is the integer number of node.completed_at?

Trying to find date and time when a node is completed but can't find a document about what node.completed_at is storing. Could you tell me about it and how to convert it to date time.datetime()?

AttributeError when I log in workflowy.

As soon as I log in my workflowy account, I got the following error message. Could you fix it for me?


AttributeError Traceback (most recent call last)
/Users/dshin/mywork/projects/workflowy/tagdate.py in ()
3 # login by password
4 Workflowy(username="[email protected]",
----> 5 password="PASSWORD")

/Users/dshin/anaconda/lib/python3.5/site-packages/wfapi/workflowy.py in init(self, share_id, sessionid, username, password)
60 if sessionid is not None or username is not None:
61 username_or_sessionid = sessionid or username
---> 62 self.login(username_or_sessionid, password)
63
64 self.init(share_id)

/Users/dshin/anaconda/lib/python3.5/site-packages/wfapi/workflowy.py in login(self, username_or_sessionid, password, auto_init, use_ajax_login)
172
173 if auto_init:
--> 174 return self.init(home_content=home_content)
175
176 _SCRIPT_TAG_REGEX = re.compile("".join([

/Users/dshin/anaconda/lib/python3.5/site-packages/wfapi/workflowy.py in init(self, *args, **kwargs)
99 # TODO: give argument to smart handler? (_init require argument!)
100 with self.smart_handle_init():
--> 101 self._init(*args, **kwargs)
102
103 @Property

/Users/dshin/anaconda/lib/python3.5/site-packages/wfapi/workflowy.py in _init(self, share_id, home_content)
232 self.nodemgr.update_root(
233 root_project=self.main_project.pop("rootProject"),
--> 234 root_project_children=self.main_project.pop("rootProjectChildren"),
235 )
236 self.handle_init()

/Users/dshin/anaconda/lib/python3.5/site-packages/wfapi/nodemgr.py in update_root(self, root_project, root_project_children)
20
21 def update_root(self, root_project, root_project_children):
---> 22 self.root = self.new_root_node(root_project, root_project_children)
23
24 def setitem(self, projectid, node):

/Users/dshin/anaconda/lib/python3.5/site-packages/wfapi/nodemgr.py in new_root_node(self, root_project, root_project_children)
136
137 root_project.update(ch=root_project_children)
--> 138 root = self.new_node_from_json(root_project)
139 self.add(root, update_child=True)
140 return root

/Users/dshin/anaconda/lib/python3.5/site-packages/wfapi/nodemgr.py in new_node_from_json(self, data, parent)
77
78 def new_node_from_json(self, data, parent=None):
---> 79 return self.NODE_CLASS.from_json(data, parent=parent)
80
81 def add(self, node, update_child=True):

/Users/dshin/anaconda/lib/python3.5/site-packages/wfapi/node.py in from_json(cls, data, parent)
279 new_ch = []
280 for child in ch:
--> 281 child = cls.from_json(child)
282 new_ch.append(child)
283 data["ch"] = new_ch

/Users/dshin/anaconda/lib/python3.5/site-packages/wfapi/node.py in from_json(cls, data, parent)
279 new_ch = []
280 for child in ch:
--> 281 child = cls.from_json(child)
282 new_ch.append(child)
283 data["ch"] = new_ch

/Users/dshin/anaconda/lib/python3.5/site-packages/wfapi/node.py in from_json(cls, data, parent)
279 new_ch = []
280 for child in ch:
--> 281 child = cls.from_json(child)
282 new_ch.append(child)
283 data["ch"] = new_ch

/Users/dshin/anaconda/lib/python3.5/site-packages/wfapi/node.py in from_json(cls, data, parent)
279 new_ch = []
280 for child in ch:
--> 281 child = cls.from_json(child)
282 new_ch.append(child)
283 data["ch"] = new_ch

/Users/dshin/anaconda/lib/python3.5/site-packages/wfapi/node.py in from_json(cls, data, parent)
279 new_ch = []
280 for child in ch:
--> 281 child = cls.from_json(child)
282 new_ch.append(child)
283 data["ch"] = new_ch

/Users/dshin/anaconda/lib/python3.5/site-packages/wfapi/node.py in from_json(cls, data, parent)
283 data["ch"] = new_ch
284
--> 285 info = WFRawNode.from_vaild_json(data)
286 info.parent = parent
287 return cls(info)

/Users/dshin/anaconda/lib/python3.5/site-packages/wfapi/node.py in from_vaild_json(cls, info)
33 setattr_node = super(cls, self).setattr
34 for k, v in value.items():
---> 35 setattr_node(k, v)
36
37 return self

AttributeError: 'WFRawNode' object has no attribute 'lmb'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.