<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to "Publish all IEC symbols ....." CheckBox with script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/046609f340/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/046609f340/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/046609f340/</id><updated>2020-02-27T15:00:37.520000Z</updated><subtitle>Recent posts to "Publish all IEC symbols ....." CheckBox with script</subtitle><entry><title>"Publish all IEC symbols ....." CheckBox with script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/046609f340/?limit=25#e3fd" rel="alternate"/><published>2020-02-27T15:00:37.520000Z</published><updated>2020-02-27T15:00:37.520000Z</updated><author><name>codesyssk</name><uri>https://forge.codesys.com/u/codesyssk/</uri></author><id>https://forge.codesys.comd18fb84b697a38ef0988d29b954317cdeb945b8d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello Martin and Markus,&lt;/p&gt;
&lt;p&gt;The Workaround for the svn connect was exactly what i needed. Thanks a lot.&lt;/p&gt;
&lt;p&gt;Thanks for the update on the svn issue with Container library. &lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;SK&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>"Publish all IEC symbols ....." CheckBox with script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/046609f340/?limit=25#03e5" rel="alternate"/><published>2020-02-27T15:00:35.818000Z</published><updated>2020-02-27T15:00:35.818000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com3d042710d3bcc120c3264c6de0cf1e29c10a0a77</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; M.Schaber&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;codesyssk hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
1.My Container library is connected to the SVN repository (Project contains -"SVN_VERSION_INFO" object) &lt;br/&gt;
   During the execution of check_all_pool_objects() I am getting an error: "VAR_GLOBAL not allowed in a Container library".&lt;br/&gt;
   Is there a Workaround for this ?. &lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Our build server first executes an svn disconnect on the project before it further processes and then saves the project as library / compiled library - this shadows the problem in our house.&lt;/p&gt;
&lt;p&gt;Disconnecting the project before publishing it generally makes sense as one should not publish the library to customers when it still contains the SVN working copy information. (The information is generally useless to the user, may introduce a slight information leak, and just bloats the library.)&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="http://jira.3s-software.com/browse/SVN-355" rel="nofollow"&gt;SVN-355&lt;/a&gt;, so the problem will be fixed eventually.&lt;/p&gt;
&lt;p&gt;HTH,&lt;br/&gt;
Markus&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>"Publish all IEC symbols ....." CheckBox with script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/046609f340/?limit=25#30f4" rel="alternate"/><published>2020-02-27T15:00:35.187000Z</published><updated>2020-02-27T15:00:35.187000Z</updated><author><name>mkeller</name><uri>https://forge.codesys.com/u/mkeller/</uri></author><id>https://forge.codesys.comd72ae0c77b695462fea3b9456ecb494c0bee7b46</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi SK.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;codesyssk hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
1. The VAR_GLOBAL CONSTANT is a part of the SVN_VERSION_INFO and not a direct part of my Container library.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I think nobody checked if the Subversion Integration works for container libraries.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;codesyssk hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
2. How can I connect to an existing repository?.  I could not find svn.connect(..) using inspectapi.dir(..) or in F1 help.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Sorry, I forgot to check if there is a Scripting API for it.&lt;/p&gt;
&lt;p&gt;At the moment  you can only use the following workaround:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nv"&gt;system&lt;/span&gt;.&lt;span class="nv"&gt;commands&lt;/span&gt;[&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;svn&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;, &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;connect&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;].&lt;span class="nv"&gt;execute&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;svn://project/destination/url&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;, &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;HEAD&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;, &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;false&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;The parameters are:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Absolute URI to the project in the Subversion repository&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Revision: HEAD or a numeric revision as string&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Omit externals: Boolean&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The improvement to add the necessary API is already listed in our Jira tracker &lt;a class="" href="http://jira.3s-software.com/browse/SVN-243" rel="nofollow"&gt;SVN-243&lt;/a&gt;, so it will be implemented eventually.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>"Publish all IEC symbols ....." CheckBox with script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/046609f340/?limit=25#2bb2" rel="alternate"/><published>2020-02-27T15:00:34.568000Z</published><updated>2020-02-27T15:00:34.568000Z</updated><author><name>codesyssk</name><uri>https://forge.codesys.com/u/codesyssk/</uri></author><id>https://forge.codesys.comd8a88d4a985fee789d6dfbed42c13677128bcdc7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Martin,&lt;/p&gt;
&lt;p&gt;Thanks again for your quick reply. &lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;The VAR_GLOBAL CONSTANT is a part of the SVN_VERSION_INFO and not a direct part of my Container library. &lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;How can I connect to an existing repository?.  I could not find svn.connect(..) using inspectapi.dir(..) or in F1 help. &lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;SK&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>"Publish all IEC symbols ....." CheckBox with script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/046609f340/?limit=25#ced3" rel="alternate"/><published>2020-02-27T15:00:32.775000Z</published><updated>2020-02-27T15:00:32.775000Z</updated><author><name>mkeller</name><uri>https://forge.codesys.com/u/mkeller/</uri></author><id>https://forge.codesys.com64b59ce0eccccdb4cf9f5aaf49c5d72c6592c53e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi codesyssk.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;codesyssk hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
1.My Container library is connected to the SVN repository (Project contains -"SVN_VERSION_INFO" object) &lt;br/&gt;
   During the execution of check_all_pool_objects() I am getting an error: "VAR_GLOBAL not allowed in a Container library".&lt;br/&gt;
   Is there a Workaround for this ?.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I talked with my colleague, which is responsible for our libraries and the procedures. A container library should only contain the project information and the library manager. For what reason do you have the VAR_GLOBAL in the container library?&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;codesyssk hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
2.After I disconnected the Project from the repository, i was able to compile the library without any errors. &lt;br/&gt;
   But after I disconnect  the Project from the repository can I connect back to an existing repository with URL ?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;You can but do you want to do that to work around the "VAR_GLOBAL not allowed in a Container library"?&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>"Publish all IEC symbols ....." CheckBox with script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/046609f340/?limit=25#740a" rel="alternate"/><published>2020-02-27T15:00:32.045000Z</published><updated>2020-02-27T15:00:32.045000Z</updated><author><name>codesyssk</name><uri>https://forge.codesys.com/u/codesyssk/</uri></author><id>https://forge.codesys.com3776df2cab6737e8b47f089ba84def9e0c7230f4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Martin,&lt;/p&gt;
&lt;p&gt;Thanks for the assistance    , it worked without a hitch.&lt;/p&gt;
&lt;p&gt;I have two more questions:&lt;/p&gt;
&lt;p&gt;1.My Container library is connected to the SVN repository (Project contains -"SVN_VERSION_INFO" object) &lt;br/&gt;
   During the execution of check_all_pool_objects() I am getting an error: "VAR_GLOBAL not allowed in a Container library".&lt;br/&gt;
   Is there a Workaround for this ?. &lt;/p&gt;
&lt;p&gt;2.After I disconnected the Project from the repository, i was able to compile the library without any errors. &lt;br/&gt;
   But after I disconnect  the Project from the repository can I connect back to an existing repository with URL ?&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;SK&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>"Publish all IEC symbols ....." CheckBox with script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/046609f340/?limit=25#4dd8" rel="alternate"/><published>2020-02-27T15:00:31.396000Z</published><updated>2020-02-27T15:00:31.396000Z</updated><author><name>mkeller</name><uri>https://forge.codesys.com/u/mkeller/</uri></author><id>https://forge.codesys.com1dddbf641968e1c30782b8ab34408cb94a3e101d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi codesyssk.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;codesyssk hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
I am trying to build a Container library using python script with the individual library packages having the "Publish all IEC symbols ..." Property-Option set. But I could not find a method or property in the Python API using which I can check this Checkbox. Any assistance to this Problem would be really helpful. Thanks in advance.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The property  of the  can be used to access the "Publish all IEC symbols ...".&lt;/p&gt;
&lt;p&gt;An example which prints the libraries in the project:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nv"&gt;def&lt;/span&gt; &lt;span class="nv"&gt;getFullName&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;obj&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;:
   &lt;span class="nv"&gt;str&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;
   &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="nv"&gt;obj&lt;/span&gt; &lt;span class="nv"&gt;is&lt;/span&gt; &lt;span class="nv"&gt;not&lt;/span&gt; &lt;span class="nv"&gt;None&lt;/span&gt; &lt;span class="nv"&gt;and&lt;/span&gt; &lt;span class="nv"&gt;not&lt;/span&gt; &lt;span class="nv"&gt;obj&lt;/span&gt;.&lt;span class="nv"&gt;is_root&lt;/span&gt;:
      &lt;span class="nv"&gt;str&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;obj&lt;/span&gt;.&lt;span class="nv"&gt;get_name&lt;/span&gt;&lt;span class="ss"&gt;()&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nv"&gt;str&lt;/span&gt;
      &lt;span class="nv"&gt;obj&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;obj&lt;/span&gt;.&lt;span class="nv"&gt;parent&lt;/span&gt;
   &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nv"&gt;str&lt;/span&gt;
&lt;span class="nv"&gt;proj&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;projects&lt;/span&gt;.&lt;span class="nv"&gt;primary&lt;/span&gt;
&lt;span class="nv"&gt;found&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;proj&lt;/span&gt;.&lt;span class="nv"&gt;find&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Library Manager&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;, &lt;span class="nv"&gt;True&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;
&lt;span class="nv"&gt;assert&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;found&lt;/span&gt; &lt;span class="nv"&gt;is&lt;/span&gt; &lt;span class="nv"&gt;not&lt;/span&gt; &lt;span class="nv"&gt;None&lt;/span&gt; &lt;span class="nv"&gt;and&lt;/span&gt; &lt;span class="nv"&gt;len&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;found&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;, &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;no libman found&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="nv"&gt;libMan&lt;/span&gt; &lt;span class="nv"&gt;in&lt;/span&gt; &lt;span class="nv"&gt;found&lt;/span&gt;:
   &lt;span class="nv"&gt;print&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Library manager: {}&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;.&lt;span class="nv"&gt;format&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;getFullName&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;libMan&lt;/span&gt;&lt;span class="ss"&gt;)))&lt;/span&gt;
   &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="nv"&gt;lib&lt;/span&gt; &lt;span class="nv"&gt;in&lt;/span&gt; &lt;span class="nv"&gt;libMan&lt;/span&gt;.&lt;span class="nv"&gt;references&lt;/span&gt;:
      &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nv"&gt;lib&lt;/span&gt;.&lt;span class="nv"&gt;is_placeholder&lt;/span&gt;:
         &lt;span class="nv"&gt;print&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Placeholder: {} =&amp;gt; {}&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;.&lt;span class="nv"&gt;format&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;lib&lt;/span&gt;.&lt;span class="nv"&gt;name&lt;/span&gt;, &lt;span class="nv"&gt;lib&lt;/span&gt;.&lt;span class="nv"&gt;effective_resolution&lt;/span&gt;&lt;span class="ss"&gt;))&lt;/span&gt;
      &lt;span class="k"&gt;else&lt;/span&gt;:
         &lt;span class="nv"&gt;print&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Lib: {}&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;.&lt;span class="nv"&gt;format&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;lib&lt;/span&gt;.&lt;span class="nv"&gt;name&lt;/span&gt;&lt;span class="ss"&gt;))&lt;/span&gt;
      &lt;span class="nv"&gt;print&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Publish symbols: {}&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;.&lt;span class="nv"&gt;format&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;lib&lt;/span&gt;.&lt;span class="nv"&gt;publish_symbols_in_container&lt;/span&gt;&lt;span class="ss"&gt;))&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;BR&lt;br/&gt;
Martin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>"Publish all IEC symbols ....." CheckBox with script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/046609f340/?limit=25#3d2e" rel="alternate"/><published>2020-02-27T15:00:29.682000Z</published><updated>2020-02-27T15:00:29.682000Z</updated><author><name>codesyssk</name><uri>https://forge.codesys.com/u/codesyssk/</uri></author><id>https://forge.codesys.comab0bdaea778c0374ff9f4e10eb68a9f617456336</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi all ,&lt;/p&gt;
&lt;p&gt;I am trying to build a Container library using python script with the individual library packages having the "Publish all IEC symbols ..." Property-Option set. But I could not find a method or property in the Python API using which I can check this Checkbox. Any assistance to this Problem would be really helpful. Thanks in advance.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;SK&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>