Hello.
Is this a question or an affirmation ?
--
You received this message because you are subscribed to the Google Groups "brython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brython+u...@googlegroups.com.
To post to this group, send email to bry...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brython/a4b81859-31ac-4a79-8d73-80c42b36e132%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Christophe BAL Enseignant Agrégé de Mathématiques Programmeur Python Amateur
Veux -tu dire que l'on ne peut pas utiliser brython localement ?
To view this discussion on the web visit https://groups.google.com/d/msgid/brython/2fac5a1f-fc9d-4b74-b501-a3841f6a219f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Oui en tout cas je n'ai pas trouver comment faire en local
Le dimanche 21 mai 2017 22:13:37 UTC+2, Christophe Bal a écrit :Veux -tu dire que l'on ne peut pas utiliser brython localement ?
--
You received this message because you are subscribed to the Google Groups "brython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brython+unsubscribe@googlegroups.com.
To post to this group, send email to bry...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brython/1450a4b7-8212-4a88-83d1-b3dc5c1ac1b8%40googlegroups.com.
<html>
<head>
<meta charset="utf-8">
</head>
<body onload="brython(1)">
<script type="text/python">
import datetime
print(datetime.datetime.now())
</script>
<script src="brython.js"></script>
<script src="brython_stdlib.js"></script>
</body>
</html>
Le 22 mai 2017 à 21:49, frederic kavita <amihaco...@gmail.com> a écrit :
Tu peut donne un exemple stp
Le lundi 22 mai 2017 21:42:36 UTC+2, Pierre Quentel a écrit :
Le lundi 22 mai 2017 10:35:55 UTC+2, frederic kavita a écrit :Oui en tout cas je n'ai pas trouver comment faire en local
Le dimanche 21 mai 2017 22:13:37 UTC+2, Christophe Bal a écrit :Veux -tu dire que l'on ne peut pas utiliser brython localement ?
Si, on peut utiliser Brython en local. Par contre Chrome ne supporte pas les appels Ajax faits en local, ce qui pose un problème pour les imports. La solution est de charger brython_stdlib.js dans la page, ou de créer un brython_modules.js à partir des scripts développés pour une application particulière (voir "implémentation de import" dans la documentation).
--
You received this message because you are subscribed to the Google Groups "brython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brython+u...@googlegroups.com.
To post to this group, send email to bry...@googlegroups.com.
il me sort une erreurbrython ligne 4888 = eval('$B.augm_item_'+augm_ops[i][1]+'='+augm_code)}
<html>
<head>
<meta charset="utf-8">
</head>
<body onload="brython(1)">
<script type="text/python">
import datetime
print(datetime.datetime.now())
</script>
<script src="brython.js"></script>
<script src="brython_stdlib.js"></script>
</body>
</html>
Le 22 mai 2017 à 21:49, frederic kavita <amihaco...@gmail.com> a écrit :
Tu peut donne un exemple stp
Le lundi 22 mai 2017 21:42:36 UTC+2, Pierre Quentel a écrit :
Le lundi 22 mai 2017 10:35:55 UTC+2, frederic kavita a écrit :Oui en tout cas je n'ai pas trouver comment faire en local
Le dimanche 21 mai 2017 22:13:37 UTC+2, Christophe Bal a écrit :Veux -tu dire que l'on ne peut pas utiliser brython localement ?
Si, on peut utiliser Brython en local. Par contre Chrome ne supporte pas les appels Ajax faits en local, ce qui pose un problème pour les imports. La solution est de charger brython_stdlib.js dans la page, ou de créer un brython_modules.js à partir des scripts développés pour une application particulière (voir "implémentation de import" dans la documentation).
--
You received this message because you are subscribed to the Google Groups "brython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brython+u...@googlegroups.com.
To post to this group, send email to bry...@googlegroups.com.
Pour faire plus simple pierre,J'ai un client qui veut que je lui construit une extension chrome anti phishing-Donc mon application ne va interargir que sur certaines adresse web :je dois utilise une manifest.json du style :{"manifest_version": 2,"name": "vigilante phishing","version": "0.1","content_scripts": [{"matches": [],"js": ["jquery.js", "content.js"]}]}j'aimerais utilise brython pour gerer les events ,faires des alerts, envoie ajax coté server vers le framework web2py si possible sinon je peux tout coté de a à z mon systeme cote clientpas envie de le faire avec javascript ça fait plus d'1 ans que je code avec brython pas envie de me retaper du javascript
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'"