online_update checks connectivity before download

Ahoj,
 støedník je síla zvyku, musím na tom zapracovat :)
 dvì podtržítka jsem "okopíroval" z globální promìnné "__current_size"

díky, martin
________________________________
Odesílate: Filip Juricek [notifications@github.com]
Odesláno: 24. èervna 2014 11:41
To: UFAL-DSG/alex
Cc: Vejman Martin
Pøedmìt: Re: [alex] online_update checks connectivity before download (#59)


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;


Diky! Best regards, Filip Jurcicek
…
------------------------------------------------------- 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:34, 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; Done =) … <#146cd39ed236316f_> 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 — Reply to this email directly or view it on GitHub <https://github.com/UFAL-DSG/alex/pull/59/files#r14120256>.

—
Reply to this email directly or view it on GitHub<https://github.com/UFAL-DSG/alex/pull/59/files#r14120511>.