Skip to content
This repository has been archived by the owner on Dec 9, 2020. It is now read-only.

Work in Progress #1

Merged
merged 19 commits into from
May 15, 2014
Merged

Work in Progress #1

merged 19 commits into from
May 15, 2014

Conversation

banksJeremy
Copy link
Collaborator

        me = client.get_me()
        sandbox = client.get_room(11540)

        with sandbox.messages() as messages:
            sandbox.send_message("hello worl")

            for message in messages:
                if message.owner is me:
                    assert my_message.content == "hello worl"

ref Manishearth#65, ref Manishearth#52, ref Manishearth#43
The message scraping methods haven't been moved yet; they'll need to be
disentangled from Message logic.

PEP-8 formatting changes in browser.

ref Manishearth#59
Adds user_id/user_name attributes to browser.
We had some function that did this previously. If we want it in the
future, this decorator is a cleaner approach than repeating it in every
function.
Made pinning/starring methods more intelligent with known attributes.

ref Manishearth#59
They still have no scraping implemented for unknown values.

ref Manishearth#52, Manishearth#65
@banksJeremy banksJeremy self-assigned this May 15, 2014
Fixes a syntax error in chat example.
Moves some logic from client to room.

Adds simple docstrings with epydoc annotations to public fields and
methods of Client. Also adds epydoc as a dev dependency, and adds
`make epydocs`.

It probably isn't necessary to add this documentation to our internal
methods, and I won't bother with browser for now, but I think it's
useful to have for our user-friendly interface. (Both for users directly
and through IDEs that recognize the type annotations, like PyCharm CE.)

resolves Manishearth#52 - let's forget about slugs and message sets for now. We can
reply to messages and a weak set of current messages might be pointless.

ref Manishearth#65, Manishearth#43 - event/message iterators/contexts are still outstanding.
banksJeremy pushed a commit that referenced this pull request May 15, 2014
@banksJeremy banksJeremy merged commit 20da9fb into test May 15, 2014
jeremyBanks pushed a commit that referenced this pull request Mar 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants