online_update checks connectivity before download

Done =)


On Tue, Jun 24, 2014 at 11:30 AM, Filip Juricek <notifications@github.com>
wrote:

> In alex/utils/config.py:
>
> > @@ -104,10 +123,15 @@ def online_update(file_name):
> >      :param fn: the file name which should be downloaded from the server
> >      :return: a file name of the local copy of the file downloaded from the server
> >      """
> > +
> > +    fn = as_project_path(file_name)
> > +
> > +    if not is_update_server_reachble():
> > +        return fn;
>
> Tohle jsem prehlednul. :-D Muzes to prosim lukasi opravit primo na
> masteru? Dekuji! Best regards, Filip Jurcicek
> … <#146cd368ecfb03e5_>
> ------------------------------------------------------- Work tel. (CZ):
> +420221914402 Personal tel. (CZ): +420777805048 Skype: bozskyfilip
> http://ufal.mff.cuni.cz/filip-jurcicek http://ufal.mff.cuni.cz/grants
> On 24 June 2014 11:28, Lukas Zilka <notifications@github.com> wrote: In
> alex/utils/config.py: > @@ -104,10 +123,15 @@ def online_update(file_name):
> > :param fn: the file name which should be downloaded from the server >
> :return: a file name of the local copy of the file downloaded from the
> server > """ > + > + fn = as_project_path(file_name) > + > + if not
> is_update_server_reachble(): > + return fn; Co ten strednik v Pythonu! =)))
> — Reply to this email directly or view it on GitHub <
> https://github.com/UFAL-DSG/alex/pull/59/files#r14120100>.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/UFAL-DSG/alex/pull/59/files#r14120137>.
>



-- 
Lukas Zilka | lukas@zilka.me | skype: lukaszilka