See site.loggedInAs()

On Thu, Jan 23, 2014 at 8:09 PM, Sorawee Porncharoenwase <
nullzero.f...@gmail.com> wrote:

> I think that we should have a function which tries to login and return the
> status whether that logging in is successful. What we currently do (for
> example in APISite.deletepage()) is that we "try: site.login(sysop=True)
> except pywikibot.NoUsername: blah blah" Isn't it better to have something
> like "if site.loginABC(sysop=True): blah blah else: blah blah"
>
> So, I write this email to ask two things.
> First, should we have site.loginABC()?
> Second, if we should have that function, what should be the name of that
> function?
>
> (see also
> http://lists.wikimedia.org/pipermail/pywikipedia-bugs/2014-January/007200.html;
> I think we need site.loginABC() there instead of site.logged_in())
>
> --
> Sorawee Porncharoenwase
>
> _______________________________________________
> Pywikipedia-l mailing list
> Pywikipedia-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
>
>
_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Reply via email to